{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"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":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.channelRead (cyclomatic 272): HTTPHandler.channelRead has cyclomatic complexity 272 (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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96d5aad3552e6e5b43102272fb6436131d5a9a57ff7b9e981daa9a9c85892be"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleAgentRunEndpoint (cyclomatic 205): HTTPHandler.handleAgentRunEndpoint has cyclomatic complexity 205 (threshold 15). Of this number, 196 points are the body\u0027s own statements and 9 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10496}}}],"partialFingerprints":{"codehealthFindingId/v1":"488821e8a4b054f660d6d0347028b160f3b44a7ecbc36d287f00a83f07e770be"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigEvents.build (cyclomatic 188): ConfigEvents.build has cyclomatic complexity 188 (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":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"398de2ea1bfa31125a3475b88e8c2d53e5fcebd9f52bbbfc6f9e3e00d2a1a89c"}},{"ruleId":"D1","level":"warning","message":{"text":"AppleScriptLoop.run (cyclomatic 172): AppleScriptLoop.run has cyclomatic complexity 172 (threshold 15). Of this number, 170 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69a620247c8ad05ea07d1ff5eb801f6a1776aef254e497ae2fa2d65990f2a10"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigPlanner.validate (cyclomatic 172): ConfigPlanner.validate has cyclomatic complexity 172 (threshold 15). Of this number, 170 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b146edbd454c18c7dcb6d038b4704f171b65b882830d720a012cbcb4cc87e74"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolLoop.runHoldingResidency (cyclomatic 172): AgentToolLoop.runHoldingResidency has cyclomatic complexity 172 (threshold 15). Of this number, 166 points are the body\u0027s own statements and 6 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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb170235955bdf03b5f20a6e1267646e03aa73ebb7eb42daea4162a677531e3"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowValidator.validateNode (cyclomatic 161): WorkflowValidator.validateNode has cyclomatic complexity 161 (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":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"535808a0aeaaacc411bdade2d07b800e84fc9d98536a2886e611d932708feab0"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.dispatchSend::runTurn (cyclomatic 144): ChatSession.dispatchSend::runTurn has cyclomatic complexity 144 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 3 other methods here (ChatSession.dispatchSend, ChatSession.dispatchSend::runTurn::postProcessToolResult, ChatSession.dispatchSend::runTurn::executeToolBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7829}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad595c7608c59bb2277ad64f8700bf9c0e8c1cb2febc4153feb70bffaa0ebd4"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentSession.runPreparedHost (cyclomatic 124): SubagentSession.runPreparedHost has cyclomatic complexity 124 (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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdcc38338de3af37f47f6ebf71be5ce5192f12d9a28fafa8e1da97febf0a3d1"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemPromptComposer.resolveTools (cyclomatic 117): SystemPromptComposer.resolveTools has cyclomatic complexity 117 (threshold 15). Of this number, 114 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":2766}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcb0c986ff0fc2a4293b1d9c306496290fc62882a9075d5b51c7539e45c7e19"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenizerBridge.applyChatTemplate (cyclomatic 116): TokenizerBridge.applyChatTemplate has cyclomatic complexity 116 (threshold 15). Of this number, 114 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68ca66b73203af6f90c4edcb63d81de82b1d0f66de7e04f3fd9af02821d2d9a"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlock.generateBlocks (cyclomatic 113): ContentBlock.generateBlocks has cyclomatic complexity 113 (threshold 15). Of this number, 112 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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58882b085bd126583df661feae0d1b2e302d392b2fe2af2bd44150842a12c49"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXEditor.shiftRows (cyclomatic 112): XLSXEditor.shiftRows has cyclomatic complexity 112 (threshold 15). Of this number, 109 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"441647beddb37d2cde0b443bdc7c3401be3ec43349c36e263a02f39a3687a600"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runAgentLoopCaseWithSettings (cyclomatic 109): EvalRunner.runAgentLoopCaseWithSettings has cyclomatic complexity 109 (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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03016ecf83c57e716ee72c326364ef47625428de7ea112401347e6ef1d88946"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatView.chatModeContent (cyclomatic 105): ChatView.chatModeContent has cyclomatic complexity 105 (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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":11698}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6a2a60857a680ecf7d6bd9dc816d0d491857e0aafe0b5ea3a936c4d36c9cc8"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusBundle.load (cyclomatic 96): OsaurusBundle.load has cyclomatic complexity 96 (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":"Packages/OsaurusRepository/OsaurusBundle.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"accf114d3490b9a6fcf2ec1ce60dd885dac92181f0317bef44f8082524ef8478"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runCacheProofCase (cyclomatic 91): EvalRunner.runCacheProofCase has cyclomatic complexity 91 (threshold 15). Of this number, 87 points are the body\u0027s own statements and 4 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c113339d5fcacdb67cd5571cca61766e96d11035a893b140d27119d48a1ccde"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalVisionEvidence.read (cyclomatic 89): LocalVisionEvidence.read has cyclomatic complexity 89 (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":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f153c171059a267d9037125b7a02e6917f55101fa2b561a3f074315d0e1b7bb8"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoopEvaluator.runConversation (cyclomatic 89): AgentLoopEvaluator.runConversation has cyclomatic complexity 89 (threshold 15). Of this number, 59 points are the body\u0027s own statements and 30 belong to 7 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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"358b00e5aedfc0e81db78e159d4d67d2e9b9a4c4c848812984be5d601b3137b1"}},{"ruleId":"D1","level":"warning","message":{"text":"Functions.call (cyclomatic 87): Functions.call has cyclomatic complexity 87 (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":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e6791adad931a5478c23de172b86fad01cd6fb4ef55bfc1d9f807b3e612693"}},{"ruleId":"D1","level":"warning","message":{"text":"CapabilityClaimsEvaluator.runConversation (cyclomatic 86): CapabilityClaimsEvaluator.runConversation has cyclomatic complexity 86 (threshold 15). Of this number, 81 points are the body\u0027s own statements and 5 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":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c5503963244ce7ad83d5b401c65a3b3a5a66d9c896ee9a773e2ec11af55548"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.processStreamDeltas (cyclomatic 84): ChatSession.processStreamDeltas has cyclomatic complexity 84 (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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":6167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e138e154836e1accfe72b96734e5bd1a6169d75a1f14adc44e279ce67aaa7b"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemPromptComposer.appendGatedSections (cyclomatic 83): SystemPromptComposer.appendGatedSections has cyclomatic complexity 83 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a9c26bd1342b6afed77d295faa9bf75affa81307102e7687247b1a06e4be02"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTaskState.record (cyclomatic 78): AgentTaskState.record has cyclomatic complexity 78 (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":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb3921811e8dde03d8d55c36f2a243f8c4f734a2208a8c3e4661a524957f8a0"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputerUseLoop.run (cyclomatic 76): ComputerUseLoop.run has cyclomatic complexity 76 (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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b41e475fca278589503a0bd958f55404b9526edb5841edb05235a9e814d8d76"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeCellHeightEstimator.estimatedHeight (cyclomatic 73): NativeCellHeightEstimator.estimatedHeight has cyclomatic complexity 73 (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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":4290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57aca3f67f9b7edc1d0f9c05be64525266d0669ea7ce1085d631126726e2aaa"}},{"ruleId":"D1","level":"warning","message":{"text":"FileReadTool.readResolved (cyclomatic 70): FileReadTool.readResolved has cyclomatic complexity 70 (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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5b3880504be7223307b548247e416d1baa4c7a3e31555101100f43eb23f5b2"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService._streamRemote (cyclomatic 69): RemoteProviderService._streamRemote has cyclomatic complexity 69 (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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dfb02d4debc7fc39f91cb0c0036b8523c26256320005c497dab2035522d9e2"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.applyMCPServers (cyclomatic 67): ConfigApplier.applyMCPServers has cyclomatic complexity 67 (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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b329c03f01f6f7a18d67aa4615e48c2717b04d59c1d40feb7df008f8650b025"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.buildChatRequest (cyclomatic 67): RemoteProviderService.buildChatRequest has cyclomatic complexity 67 (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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":3466}}}],"partialFingerprints":{"codehealthFindingId/v1":"17083acbc1e232aaa597151e12e047cfcfda57ba8d31ecc1441fd5f834e4e961"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelDownloadService.runOrchestration (cyclomatic 66): ModelDownloadService.runOrchestration has cyclomatic complexity 66 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a826ebe8c32f717ea8f478d8d44aca74c2b2d37d10a642284b02194823fa0279"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteChatRequest.toOpenResponsesRequest (cyclomatic 64): RemoteChatRequest.toOpenResponsesRequest has cyclomatic complexity 64 (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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":6050}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e42cfd4c99ba44867ee84462a73d3b7606af9b7dd158b510b86d9149fa8e91e"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudePluginInstaller.install (cyclomatic 64): ClaudePluginInstaller.install has cyclomatic complexity 64 (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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c57d63948a2a6ca26c41fbb432d09feb5deceba0757da3de1046bc0ad26bfc"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMessageCellView.configureAsUserMessage (cyclomatic 63): NativeMessageCellView.configureAsUserMessage has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a2bd882d0e169575d51cb31d74b234acbf31c2e0d61ca926c47653907196f3"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDraftOp.parse (cyclomatic 62): WorkflowDraftOp.parse has cyclomatic complexity 62 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"9603303530a9b9f90642486a5c7421b17b14c62f76bdb24bb4322d1a8f619531"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRowCellView.configure (cyclomatic 62): ModelRowCellView.configure has cyclomatic complexity 62 (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":"Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"5830f18c71ea3264a1aebfa41586eef1771a6dee67d6e8e261e10fc907136b45"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cyclomatic 61): AppDelegate.applicationDidFinishLaunching has cyclomatic complexity 61 (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":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ea15f555c96cf988466311ff0300bad6a147a5c49ea56e835710199b000c79"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.loadContainer (cyclomatic 61): ModelRuntime.loadContainer has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":4841}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b16b0d470383b3d95e26163ac1bbdca9b162032817e5832d8e638c958594e4"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownBlockParsing.swift.parseBlocks (cyclomatic 61): MarkdownBlockParsing.swift.parseBlocks has cyclomatic complexity 61 (threshold 15). Of this number, 54 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":"Packages/OsaurusCore/Utils/MarkdownBlockParsing.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e92376fcf9ef4598d097450e1c9a45e135f3d3bc48875214fd805f73b6676c"}},{"ruleId":"D1","level":"warning","message":{"text":"MLXBatchAdapter.additionalContext (cyclomatic 60): MLXBatchAdapter.additionalContext has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"784fbe658a4d010cea1e3e3ce679be51ebe78c1c94e927b1176419b527b418fd"}},{"ruleId":"D1","level":"warning","message":{"text":"GenerationEventMapper.map (cyclomatic 59): GenerationEventMapper.map has cyclomatic complexity 59 (threshold 15). Of this number, 50 points are the body\u0027s own statements and 9 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":"Packages/OsaurusCore/Services/ModelRuntime/GenerationEventMapper.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a667752e4c6fc862486124383e5aae416236b2556cfe38d876008af9e7a4c6f"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolRegistry.execute (cyclomatic 58): ToolRegistry.execute has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"51be9cf1aa27750d4d0df970452ecda93a73370632dd42b7b0be8958202b8df7"}},{"ruleId":"D1","level":"warning","message":{"text":"CalculatorNode.exactInteger (cyclomatic 58): CalculatorNode.exactInteger has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cf6962ed719377c4709df4cc504722e4dfafc9bbdebd57d9b38a5cb78fa5d6"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestLog.title (cyclomatic 58): RequestLog.title has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db2e21d38a746f319653a7abcd9c292a3126a384a2510cd75a6f300badff164"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncManageFeed.perform (cyclomatic 58): SyncManageFeed.perform has cyclomatic complexity 58 (threshold 15). Of this number, 57 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":"Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"6114cc872fe7ce9a5da8e44469eaeb9756e8e55de0fecef1b48f1af07d3ad560"}},{"ruleId":"D1","level":"warning","message":{"text":"SetupChecker.check (cyclomatic 58): SetupChecker.check has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/SetupChecker.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d60887c885f63d96919f8bfec1a58e791f95cbd194aaaa32a2107caf10d0d2"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.dispatchSend::runTurn::postProcessToolResult (cyclomatic 58): ChatSession.dispatchSend::runTurn::postProcessToolResult has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 3 other methods here (ChatSession.dispatchSend, ChatSession.dispatchSend::runTurn, ChatSession.dispatchSend::runTurn::executeToolBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":8519}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a4f813d39e0e397a868fc75d8655673a83359dceb7242cc86d30b0aac94738"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalMatrixBuilder.build (cyclomatic 55): EvalMatrixBuilder.build has cyclomatic complexity 55 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47eeb272c3847050836a61c75a146ed849346eabe76344ac17c4c981c8db580"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleChatCompletions (cyclomatic 55): HTTPHandler.handleChatCompletions has cyclomatic complexity 55 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15297}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc5b056e4091310707a6c50824e3a2941116506d6e30711ce23ea4ba2b6a0f5"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlockKind.== (cyclomatic 55): ContentBlockKind.== has cyclomatic complexity 55 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17c9a2eae9296d2e0c8f77ca8aa00ea2a634ae148da2da6a65da5389c579a86"}},{"ruleId":"D1","level":"warning","message":{"text":"PendingImportProcessor.install (cyclomatic 55): PendingImportProcessor.install has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b08b922af2a62fadc657c23245693c5a2b7e8d2995ae511f1600ce955d33fc6"}},{"ruleId":"D1","level":"warning","message":{"text":"DesignWorkingStore.validate (cyclomatic 54): DesignWorkingStore.validate has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/DesignWorkingStore.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"85122aab0fdf6d48b061a234e0429d256899ce652dc83a85857d2ec2d9fe0fbf"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleOpenResponsesStreaming (cyclomatic 54): HTTPHandler.handleOpenResponsesStreaming has cyclomatic complexity 54 (threshold 15). Of this number, 51 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18604}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfaf209ac9d391b21e4a73078ea2b5abb94b66b09ae7c38a24f9eadace07b41"}},{"ruleId":"D1","level":"warning","message":{"text":"RenderChartTool.execute (cyclomatic 54): RenderChartTool.execute has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/RenderChartTool.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"995427a29eddf9f1e163d5138a027d189f6b78c87f0ab6ae6e4ea813a9caafe2"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatEngine.wrapStreamWithLogging (cyclomatic 54): ChatEngine.wrapStreamWithLogging has cyclomatic complexity 54 (threshold 15). Of this number, 52 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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"23123d68f3706a0d464a7389ab58ebf914c0e02e9f8f7fcbcf8efe03fe6ae37f"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowFailure.classify (cyclomatic 54): WorkflowFailure.classify has cyclomatic complexity 54 (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":"Packages/OsaurusCore/Services/Workflow/WorkflowFailure.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"374874080a7e7081da3a222ea69e4bb4fd27e564bdb1805fe2b1e674f280ecb9"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowStepRisk.badges (cyclomatic 54): WorkflowStepRisk.badges has cyclomatic complexity 54 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 18 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":"Packages/OsaurusCore/Services/Workflow/WorkflowTrust.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b3f833df7b94e7e16ce850acc324a5110eab3fdb701ba9ee4d541be38786a1"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedArchiveExtractor.inspect (cyclomatic 53): BoundedArchiveExtractor.inspect 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":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"874d6991fd7b85ce3e4880a40c5f0efdc87f86cdae1f8c37cecff2395ed9cc03"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteChatRequest.toGeminiRequest (cyclomatic 53): RemoteChatRequest.toGeminiRequest has cyclomatic complexity 53 (threshold 15). Of this number, 52 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5622}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c24a937c8827e99dfb51389c6326925fb61c48826b8f167598d1636a952537b"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaNodeExecutor.settings (cyclomatic 52): MediaNodeExecutor.settings has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1b39320a64ddc3be43cdda84768db1994db07566fb1ab2296311df7295f2d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.init (cyclomatic 52): ChatSession.init has cyclomatic complexity 52 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"87de8b0bec91e7eb3cbd5a102dc437e7fa61b0ae8c3cc82c6cdad34c28c6c0d9"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogLibraryFixture.activityContent (cyclomatic 51): CatalogLibraryFixture.activityContent has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ca94e9ef80a66a4b3db2225c31f6986ee3411c6d67bbb5f47c0342740d3f06"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageGenerationService.drive (cyclomatic 51): ImageGenerationService.drive has cyclomatic complexity 51 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf04022d93ea148671b3e17a5a10f69ba211606efb8ec62c3e3c674e7ef54ce"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteAnthropicNativeStream.consume (cyclomatic 51): RemoteAnthropicNativeStream.consume has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteAnthropicNativeStream.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"493ffb63dce9b007cde9a1247a1b1c601c0719ef0ad4cd185d5dbae7b06cf633"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteResponsesNativeStream.consume (cyclomatic 51): RemoteResponsesNativeStream.consume has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteResponsesNativeStream.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c05827c2cabba832f8116cb29f225d86cef16da4d709dccb4f90c11e9f73167"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogLibraryFixture.baseContent (cyclomatic 50): CatalogLibraryFixture.baseContent has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa34e4664099539478848cfed644efa7e83339a639765d7f5adae5f1cb45274"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusTool.agentChannelFailure (cyclomatic 50): OsaurusTool.agentChannelFailure has cyclomatic complexity 50 (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":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"377584f43268fb93dc507d7e97ca5e47e9f4f338b471f35060c34162c6363eb0"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatEngine.completeChat (cyclomatic 50): ChatEngine.completeChat has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"c713ae3bb5b4f597108fcecb0806aac056d5d5b25d3359b3299ed14674b3377f"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handlePluginRoute (cyclomatic 49): HTTPHandler.handlePluginRoute has cyclomatic complexity 49 (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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2959}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddcba458f6207ef7161f099020272c3a0955559cd9aba2c07b9d021eac1f844"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusInspectTool.describeItem (cyclomatic 49): OsaurusInspectTool.describeItem has cyclomatic complexity 49 (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":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cd2c4ddfa5492bc2b5dcfbd6e92be75d2e9f2785b4e84aded73925be47789c"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolRegistry.runPermissionGate (cyclomatic 49): ToolRegistry.runPermissionGate has cyclomatic complexity 49 (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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b25cae8c0448d6dcdfb095d853836c77e28fb8ace8e672f88fddb3fadbd926a"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatImportApplier.apply (cyclomatic 49): ChatImportApplier.apply has cyclomatic complexity 49 (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":"Packages/OsaurusCore/Services/ChatImport/ChatImportApplier.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ac6d7da7cf321b6098d350b9c7170841f194522aeacad0edf0ad02a8f32006"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.handleOpenResponsesEvent (cyclomatic 49): RemoteProviderService.handleOpenResponsesEvent has cyclomatic complexity 49 (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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ddd4fd25450c0b94feb27c3dc258150bf9a7ea5bba7d75f4b9cc6f72718312"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.buildURLRequest (cyclomatic 49): RemoteProviderService.buildURLRequest has cyclomatic complexity 49 (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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":4101}}}],"partialFingerprints":{"codehealthFindingId/v1":"28573fc2855344c610ae2a69d3e926651e60e1663dacfaef728658ec693ae2cb"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAPISummary.parse (cyclomatic 49): OpenAPISummary.parse has cyclomatic complexity 49 (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":"Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83e81712005d0c8a00aecbf4f27dfff24dd6116cc6428ce648b3dd52732569c"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeToolCallRowView.configure (cyclomatic 49): NativeToolCallRowView.configure has cyclomatic complexity 49 (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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"350ae18fea859354499d2fc24d3c444ebb38f447a81cc370ddf4c632867969f1"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputerUseLoop.act (cyclomatic 47): ComputerUseLoop.act has cyclomatic complexity 47 (threshold 15). Of this number, 46 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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acc2ac468334f88cb40bce9cab188019e2aee434868fc36e05dc78158a30c36"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDraftPatcher.apply (cyclomatic 47): WorkflowDraftPatcher.apply has cyclomatic complexity 47 (threshold 15). Of this number, 46 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":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd81dc88d96cd52552dcd2a1bedddd8ca95473c514448053393507d8908a816"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.unloadClaimed (cyclomatic 46): ModelRuntime.unloadClaimed has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":2435}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1cfbb64b5e568e6362a2f2d86f8e8c9b1a033b60519dd601b702519e9e5b18"}},{"ruleId":"D1","level":"warning","message":{"text":"CacheProofEvaluator.runConversation (cyclomatic 46): CacheProofEvaluator.runConversation has cyclomatic complexity 46 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/CacheProofEvaluator.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a12b945dde8ad775d77bec6c36c50139aaa138f163a2cca3dd3bac62c8f425"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatView.setupKeyMonitor (cyclomatic 46): ChatView.setupKeyMonitor has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":13538}}}],"partialFingerprints":{"codehealthFindingId/v1":"8420df34bf9e2d5919ee6be107011d3b92340945c8077f3092dddaa2aa432ce3"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportCommand.parse (cyclomatic 45): ImportCommand.parse has cyclomatic complexity 45 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd11dfefb94552e9aeda19ca912c8a465b1587a0036610acabbfc5c955ef4b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runToolResultGroundingCase (cyclomatic 45): EvalRunner.runToolResultGroundingCase has cyclomatic complexity 45 (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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerToolResultGrounding.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c156ffc498f5773430334049c5626c3bf1e0527b633f25b4083b58a557e024ea"}},{"ruleId":"D1","level":"warning","message":{"text":"FileSearchTool.execute (cyclomatic 45): FileSearchTool.execute has cyclomatic complexity 45 (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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4846}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f130398fdc088c8db82e31cc0d248c497c09ee856be6b2029318539f89d3120"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleConfigAdminEndpoint (cyclomatic 45): HTTPHandler.handleConfigAdminEndpoint has cyclomatic complexity 45 (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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa37dea0bfeecf3413f0a7c2a0f34bbb1a55abef506f9e035dd68b3fd51d47c"}},{"ruleId":"D1","level":"warning","message":{"text":"SafeDiskCachePurge.clear (cyclomatic 45): SafeDiskCachePurge.clear has cyclomatic complexity 45 (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":"Packages/OsaurusCore/Services/SafeDiskCachePurge.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf7525cffe05adea0037c5e495427e4f961a4b6b184ae7ff44e23dfafbb4083"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.score (cyclomatic 43): EvalRunner.score has cyclomatic complexity 43 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4172d7effad0c51a3b8cc1b68264f1aa0ea2f0aee87a2244bd40797c0a1b00"}},{"ruleId":"D1","level":"warning","message":{"text":"RedactFileTool.execute (cyclomatic 43): RedactFileTool.execute has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/RedactionTools.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"af178edc4bdf20cfd9a9c6cc21561a6919f7b6979992c5453cf707c8ac6f9073"}},{"ruleId":"D1","level":"warning","message":{"text":"Solver.polynomial (cyclomatic 43): Solver.polynomial has cyclomatic complexity 43 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"db218a212da677d14bd1253ad51b2a1e9658379852a777d45826eba395eebf15"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigPlanner.planMCPServers (cyclomatic 43): ConfigPlanner.planMCPServers has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"140be158bde65d17d404e24b4c244f072294e823b76d14cba99103377b2cfa7a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDelegationDispatcher.run (cyclomatic 43): AgentDelegationDispatcher.run has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"86548da6a242d358aa7f5288e68cb287fbb2965d15471bead3e4737a8649b416"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceAuditRow.title (cyclomatic 43): WorkspaceAuditRow.title has cyclomatic complexity 43 (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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f9b34a1e11e6943b7366d7c20dde24abf648a490cef73a6719ef098e6f360c"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runDefaultAgentCase (cyclomatic 42): EvalRunner.runDefaultAgentCase has cyclomatic complexity 42 (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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45a1f1e02212b77f78504a94c39287c170585020dad0fef3f10a294d3451c72"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.decodeWAVAudioSamples (cyclomatic 42): ModelRuntime.decodeWAVAudioSamples has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":7779}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b09be7effbbd4c2dfc047ad957a0ed3533cf22f97cbb5f0ae7a44204e3fdf69"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaValidator.validateValue (cyclomatic 42): SchemaValidator.validateValue has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SchemaValidator.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0362d227f83a4c01bd08ff1cb4125518d2d2efb5c69b224366495e7714c65ee"}},{"ruleId":"D1","level":"warning","message":{"text":"Tokenizer.tokenize (cyclomatic 42): Tokenizer.tokenize has cyclomatic complexity 42 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f8983f449af911da16d9fcc7fe63bad4299e471adfd87f593805ec3a87bd9d"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigChannelPlatform.apply (cyclomatic 42): ConfigChannelPlatform.apply has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigChannelDetails.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c26535423bd2899f99c06c216c716b4ac696e48e05f1933a97d3ed5d6db4aa"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowValidator.mediaIssues (cyclomatic 42): WorkflowValidator.mediaIssues has cyclomatic complexity 42 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ce862e55543f8b97bd1b9e09d0ec262cf37b398aa56057a21cb1dd87788c05"}},{"ruleId":"D1","level":"warning","message":{"text":"PrivacyFilterPipeline.applyOutbound (cyclomatic 42): PrivacyFilterPipeline.applyOutbound has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aee7f5562ed2ee1b7e71db95b177b91cb3e17d92d3ec101381944614d30d340"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscoveryCenter.take (cyclomatic 42): DiscoveryCenter.take has cyclomatic complexity 42 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d59aa2d4ab632234557a3e888372dc0cc3d6fff7ffcd868922e6e5fc6c1dcc"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginHostContext.completeStream (cyclomatic 42): PluginHostContext.completeStream has cyclomatic complexity 42 (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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"94de9e8f7a757c2ca55d226600a5b3ef7d4dc6e9017cc3e714f1732a6399481c"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowCondition.evaluate (cyclomatic 41): WorkflowCondition.evaluate has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e45538939f8a04a07565d03234b2d3797da808ab0d4bc0063e56d3014d44631"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.execute (cyclomatic 41): AgentChannelCustomJSONRunner.execute has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ef2ec719447d6fe0590f65480c607fcb345d853d3efe9cfdac11292d726371"}},{"ruleId":"D1","level":"warning","message":{"text":"AccessibilityManager.traverseElement (cyclomatic 41): AccessibilityManager.traverseElement has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74b798347d6e6b43ffc8792fb892befac006e82981039f77f6c9376aa70c902"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.scoreSpawnWave (cyclomatic 40): EvalRunner.scoreSpawnWave has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcae3c549f911e2a7aaae66b7a6b130b68c3c46c356ff11a3eefb9b8ed76eecf"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusBundle.select (cyclomatic 40): OsaurusBundle.select has cyclomatic complexity 40 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/OsaurusBundle.swift"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4579574e4ee667a7c2b05042e6a20dce4256a700f91ac60ca2ebb066aa553b7"}},{"ruleId":"D1","level":"warning","message":{"text":"BackgroundTaskManager.dispatchChat (cyclomatic 40): BackgroundTaskManager.dispatchChat has cyclomatic complexity 40 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea054a499eb1e87d8c01adc976a9b5d47c1d2dfafcd9fa55daa20dd3804d889"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONSchemaValidator.check (cyclomatic 40): JSONSchemaValidator.check has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/JSONSchemaValidator.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3889e26e4bc09dc5d302c2c1a0b28511c8d942fea6ab8d8cbc5790328e7ed146"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFEditor.fillForm (cyclomatic 40): PDFEditor.fillForm has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFEditor.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e419de258f3691777edd82207c03d5d9932136d71b544464ec5c7d631014c6"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.processEventPayload (cyclomatic 40): RemoteProviderService.processEventPayload has cyclomatic complexity 40 (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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7089d5d896f70f15af4294be8c193ad7411ecee6c70971c7a2f0962214e479"}},{"ruleId":"D1","level":"warning","message":{"text":"OverviewTab.summaryHeadline (cyclomatic 40): OverviewTab.summaryHeadline has cyclomatic complexity 40 (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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"536304d158991d67c9b52c00e40c2cf7b9f452c18dbe938de4a11169c5a513df"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceAuditRow.subtitle (cyclomatic 40): WorkspaceAuditRow.subtitle has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8eacb5554ef6b4ffbc313448229aa16e9183d61c4f13b659d6f10731fff5f83"}},{"ruleId":"D1","level":"warning","message":{"text":"Options.parse (cyclomatic 39): Options.parse has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"6490a7871373c3b4d4e0a9b010490f4fa64143252aa9d4d963bda77e75d10c04"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runAppleScriptCase (cyclomatic 39): EvalRunner.runAppleScriptCase has cyclomatic complexity 39 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"909d984357e66d50eea62a37bf12ee383ed9f11e26ca0f476f6b5729fdd467b5"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellCommandRiskScanner.parse (cyclomatic 39): ShellCommandRiskScanner.parse has cyclomatic complexity 39 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ShellCommandRiskScanner.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78385b845943b7307d8e66ea93d572359598943de0ef85ec32af4747b9d789a"}},{"ruleId":"D1","level":"warning","message":{"text":"Tokenizer.number (cyclomatic 39): Tokenizer.number has cyclomatic complexity 39 (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":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc3c99e58544fba42e4dce5b968edcbe622cc4f434b46d9965d132ce40dee72"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigScheduleFrequency.parse (cyclomatic 39): ConfigScheduleFrequency.parse has cyclomatic complexity 39 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigScheduleFrequency.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"41cfb66e82b37953434e9d14825dab888fb4d57df9927fe04ebd6b8f79e0da6e"}},{"ruleId":"D1","level":"warning","message":{"text":"PendingImportProcessor.prepare (cyclomatic 39): PendingImportProcessor.prepare has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d97c469f8ae73c5a90bc868dc895f98813ea1179c451ea7af6f805852221387"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteChatRequest.toAnthropicRequest (cyclomatic 39): RemoteChatRequest.toAnthropicRequest has cyclomatic complexity 39 (threshold 15). Of this number, 38 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5366}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfe26c8bbd4b7170802cf641f6ae07a5809be88e1c10a4129147dfd6c8046bc"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.send (cyclomatic 39): ChatSession.send has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7367}}}],"partialFingerprints":{"codehealthFindingId/v1":"32631a79c7ce7fc6904e8624c849e9129932efc4707d8c0f3cc3fe11ef2db091"}},{"ruleId":"D1","level":"warning","message":{"text":"FileWriteTool.execute (cyclomatic 38): FileWriteTool.execute has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":2766}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc10d42f2efbeb843c75f3610fe600c9a98d1c9b16956e1e0fc488154aeae1dc"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusConfigTool.applyDocument (cyclomatic 38): OsaurusConfigTool.applyDocument has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a8a6476d82a1da4ea35d306fa449455ece231a59b2550a5103c0938fbf6622"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelPublishService.publish (cyclomatic 38): AgentChannelPublishService.publish has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b4f65ec535ac01c40ad24821602063944f1164855f7ab88da7988bcb09cd50"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatEngine.prepareDispatch (cyclomatic 38): ChatEngine.prepareDispatch 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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82308d55180426d23da73e38dd6dc06fb67d8b6fa81927d0421d54bff7cfb33"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncHostRunner.process (cyclomatic 38): SyncHostRunner.process 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":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fa6f13684d1fdf32e710562990de55c21dc3dd9e760daa04259ee5dba7a67a"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolCategory.from (cyclomatic 38): ToolCategory.from has cyclomatic complexity 38 (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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6402cbfb9e04d31a6d2bb9f941cb50398701f3fb5b4d2a856ea712980019902"}},{"ruleId":"D1","level":"warning","message":{"text":"AssignedNativeMenuItems.body (cyclomatic 38): AssignedNativeMenuItems.body has cyclomatic complexity 38 (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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"264150e6c17da34eb5554acca4cde564b698cb5b1c8984934f6b43295776ed21"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockMemoizer.blocks (cyclomatic 37): BlockMemoizer.blocks has cyclomatic complexity 37 (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":"Packages/OsaurusCore/Managers/BlockMemoizer.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be94de36c77056c2523c2eb08f38883c879e2941a719139d313a87a377252b3"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderManager.testConnection (cyclomatic 37): RemoteProviderManager.testConnection has cyclomatic complexity 37 (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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a40e161f2c6c778562fea0190b21ad80b24b1537ea5ccee73de97a191580b9"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchAndExtractTool.enrichedResults (cyclomatic 37): SearchAndExtractTool.enrichedResults has cyclomatic complexity 37 (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":"Packages/OsaurusCore/Tools/WebSearchTools.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7ab05d80be70c55360b1b16acf229fdd3aa90903fe37d8610a48ce2ac6d90f"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelInboundActivityPresentation.guidance (cyclomatic 37): AgentChannelInboundActivityPresentation.guidance has cyclomatic complexity 37 (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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundActivity.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0321168aaf4b8aec358b30796ab8363d32e3a01a0eac30735034ee599027cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.runHarnessTurn (cyclomatic 37): ChatSession.runHarnessTurn has cyclomatic complexity 37 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSession\u002BHarness.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c99ed8b9cdb8bc656ddc1f7c7c8ae192f94d1381bb82867f5448499129d3def"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogAssignmentMenu.allows (cyclomatic 37): CatalogAssignmentMenu.allows has cyclomatic complexity 37 (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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/CatalogPreviewInspection.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37b2537fd0e8b2e75b9b00c957793f64a8129b61f950a09d43dfa62ccc74697"}},{"ruleId":"D1","level":"warning","message":{"text":"CompatibilityReport.formatMarkdown (cyclomatic 36): CompatibilityReport.formatMarkdown 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff9aca9df00220abc73f1c29bb77998fcddcdb258674e63226fc5f7508721f7"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalCaseTelemetry.isEmpty (cyclomatic 36): EvalCaseTelemetry.isEmpty has cyclomatic complexity 36 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed718a65be4c201e08af6e6c5d831ba955734ad78b7db3c874d0d054f277de9a"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runPromptSurfaceCase (cyclomatic 36): EvalRunner.runPromptSurfaceCase has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerPromptSurface.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8446d8637170e54e1533e9f86d325fe4f5da5a029e070e50130f0f3e23590099"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionGate.evaluate (cyclomatic 36): PromotionGate.evaluate 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/PromotionGate.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db71f560ff46a6b137bd281c65be734f62a4b3c475fea2fa80fe2e2aa4631d5"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogLibraryFixture.chatContent (cyclomatic 36): CatalogLibraryFixture.chatContent 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":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec873d7cdedec564f1c6a6bcf5690ac5c0e2ed348aba7e44dff4fa1066dc33b3"}},{"ruleId":"D1","level":"warning","message":{"text":"InsightsService.filterInMemory (cyclomatic 36): InsightsService.filterInMemory has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d58034cd806df727753682ab924a142ee1d1160ad02ec6e33c540bc5c6d08b"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.estimatedArchitectureKVHeadroomBytes (cyclomatic 36): ModelRuntime.estimatedArchitectureKVHeadroomBytes has cyclomatic complexity 36 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":3593}}}],"partialFingerprints":{"codehealthFindingId/v1":"283e0da0a28636041485a113c178ab20e37c6e77112edb484d345af6b0af7f9e"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusInspectTool.resolvedListEnvelope (cyclomatic 36): OsaurusInspectTool.resolvedListEnvelope has cyclomatic complexity 36 (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":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ad03eb979e760f260723205588a0be786307a4ef1966f65ba4e83353d00a61"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadKnowledgeTool.execute (cyclomatic 36): ReadKnowledgeTool.execute 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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9eca62c1985887c3a1a4b1b80ebfcb480fe8823a1ef9f5b0f7c1cac9a6cc81"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityExportService.renderMarkdown (cyclomatic 36): ActivityExportService.renderMarkdown 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":"Packages/OsaurusCore/Services/Insights/ActivityExportService.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b202a093375da1fcf632c4ab974cafa3c9f9cc281fbd0b968b951f2acf030ae5"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.finalizeRun (cyclomatic 36): ChatSession.finalizeRun 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":5881}}}],"partialFingerprints":{"codehealthFindingId/v1":"305d5c18e04ee62f0cae02a34861e4101820c0f19aa22b247348bd5451a1447a"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatModelPickerCard.modelColumn (cyclomatic 36): ChatModelPickerCard.modelColumn 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":"Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7146dbc18798100efaa1a9d7448a7764f36c2b3e7381406a95639c654ab6d1d"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runComputerUseLoopCase (cyclomatic 34): EvalRunner.runComputerUseLoopCase has cyclomatic complexity 34 (threshold 15). Of this number, 32 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"387be5665bdc7374d019e0bc478d3bbec70faa24391dcccaae65047b79132284"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handlePairInviteEndpoint (cyclomatic 34): HTTPHandler.handlePairInviteEndpoint has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9509}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe03343388f8008da35fa537941de82e373479ac2fc833dae1cc4d118031d9f"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellCommandRiskScanner.downloadSources (cyclomatic 34): ShellCommandRiskScanner.downloadSources 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":"Packages/OsaurusCore/Tools/ShellCommandRiskScanner.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"7579284286685dd3ae9792d781a1089b7f4fe71e702a6180e2b3e4d428995321"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatibleStreamParser.processChoice (cyclomatic 34): OpenAICompatibleStreamParser.processChoice has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2547fe7c1f2c99d4469328ed52610a3a82550d56839e10c437c03f346cdc44"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchDiagnostics.classifyFailure (cyclomatic 34): SearchDiagnostics.classifyFailure has cyclomatic complexity 34 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Search/SearchTypes.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf0926d97ec7ce83187f3ac0aac3193593014ea821cbc78376af0c6afff95f5"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowNodeEditor.form (cyclomatic 34): WorkflowNodeEditor.form has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a100c2d49edaab37d8c34d9af0d44c9e606dbef6a86ef320ee3c76bb73605ec"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigCommand.runPlanOrApply (cyclomatic 33): ConfigCommand.runPlanOrApply has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe0c916efa082fb0dc0c28fa5817804381ab8a0413cc08d1c00178b7df7f658"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.attentionLayerMix (cyclomatic 33): ModelRuntime.attentionLayerMix has cyclomatic complexity 33 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":3808}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1d3a4f0460c7eb856976a06b93bc7121c327b182ec20efbf2c2aa2187b42c7"}},{"ruleId":"D1","level":"warning","message":{"text":"RetainedToolResultStore.read (cyclomatic 33): RetainedToolResultStore.read has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/RetainedToolResultStore.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9be7d19c9c6f4184f4f279566bb484b1767ac2735eef99f191ab3fd3cb8b4d2"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelConnectionService.actionStatus (cyclomatic 33): AgentChannelConnectionService.actionStatus has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd70174c897bb5a0de3aa6710027f34178850b00c9f180c14d04baeaa322261a"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.normalBody (cyclomatic 33): FloatingInputCard.normalBody 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4051c91039d130bcfe730cc85e69dcf218047f38beaec401f42b68ca67682f9"}},{"ruleId":"D1","level":"warning","message":{"text":"EventEditorSheet.build (cyclomatic 33): EventEditorSheet.build has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Event/EventEditorSheet.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30018d3cc1f17c747d0c9bf67109b080c754e204301ba352ccfecc5e62856ca"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguageCatalogSource.item (cyclomatic 33): LanguageCatalogSource.item has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2bada2b6076b687d416ead8a9e9c8303fcba42a5584d279a4809da54680dc1"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowFlowCanvas.draw (cyclomatic 33): WorkflowFlowCanvas.draw has cyclomatic complexity 33 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 7 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":"Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowCanvas.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce4c40b580c0bad457b95ea2030c556016f660abe5d9c93d9d7989750f00916"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextOptimizerSearch.plan (cyclomatic 32): ContextOptimizerSearch.plan has cyclomatic complexity 32 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 4 belong to 3 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"358006d3fc393a0694c1ffc5d980bd8ada49fe8899ae5b9e53cf12d215d76673"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runCapabilityClaimsCase (cyclomatic 32): EvalRunner.runCapabilityClaimsCase has cyclomatic complexity 32 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: EvalRunner.dispatchCase (cyclomatic 33) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb5f5266e1ab627b230d5171b3801853803dbd647af8c11c497b606aed8cdb0"}},{"ruleId":"D1","level":"warning","message":{"text":"FileEditTool.editDocument (cyclomatic 32): FileEditTool.editDocument has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3999}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61666a504003f953fe0562d9bd316a0fcd09491223870d9f06da18964827b5c"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolEnvelope.fromError (cyclomatic 32): ToolEnvelope.fromError has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolEnvelope.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03b03121b954d55f7712851804ea7d5d9cc48f573628677b72ae4312c58bb29"}},{"ruleId":"D1","level":"warning","message":{"text":"ZipArchive.entries (cyclomatic 32): ZipArchive.entries has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/ZipArchive.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d609c222ab4f6736ac5966f073a65c12ef1251fac9a0637d01df97ea7a105db9"}},{"ruleId":"D1","level":"warning","message":{"text":"SharedArtifact.resolveSourcePathDetailed (cyclomatic 32): SharedArtifact.resolveSourcePathDetailed has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SharedArtifact.mimeType (cyclomatic 41) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"784148fa848724a397d101967a17cddbae4babba7f23a999806d8a6c6c57dbd8"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalVisionEvidence.tensorPayloadSizes (cyclomatic 32): LocalVisionEvidence.tensorPayloadSizes has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"571ebc199dd17806dbba18034bb454f4cf5dd21599085105e5a14f1d0e201c73"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeCodeHarnessAdapter.launchPlan (cyclomatic 32): ClaudeCodeHarnessAdapter.launchPlan has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Harness/ClaudeCodeHarnessAdapter.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f844624cda56faf1e113bc8e0cab442a647711e8c80070c4ad6275f677f0a93"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponsesGenerationStream.compatibility (cyclomatic 32): ResponsesGenerationStream.compatibility has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ResponsesCompatibilityStream.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38f69fb2c3913340e2e45fdefedcdd15d4f6f902628f119305c17d9c753f90f"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscoveryCatalog.status (cyclomatic 32): DiscoveryCatalog.status has cyclomatic complexity 32 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCatalog.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcb1226c66e440bffb68f7c9331737b23740f37b118009b1ee8ad36e865c020"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.parseResponse (cyclomatic 32): RemoteProviderService.parseResponse has cyclomatic complexity 32 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":4840}}}],"partialFingerprints":{"codehealthFindingId/v1":"40189d25912c4699f0811c8fc4cbc6f185ef46cf7d61aa0bdec0811c04a27253"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.dispatchSend::runTurn::executeToolBatch (cyclomatic 32): ChatSession.dispatchSend::runTurn::executeToolBatch has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 3 other methods here (ChatSession.dispatchSend, ChatSession.dispatchSend::runTurn, ChatSession.dispatchSend::runTurn::postProcessToolResult) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":8993}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbdc5ed350d42642ab00c165889b25598bf1b0296dcf0282b8ba8f6357a84dc"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeToolCallRowView.applyAssignedLayout (cyclomatic 32): NativeToolCallRowView.applyAssignedLayout has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"972aed2d37a0e0505237b6a3607454562a77b6f2eed8f2bc85df20499838f3e2"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.isKnownHybridModel (cyclomatic 31): ModelRuntime.isKnownHybridModel has cyclomatic complexity 31 (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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":6094}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30610de9a0da729765003340a90561c5fa9a96b11fb9a3e7ab788f106d5acca"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.bridgeToolEventStream (cyclomatic 31): ModelRuntime.bridgeToolEventStream has cyclomatic complexity 31 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":6743}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0beb31d9b4a7e9841c8cebb52b8d1d08afbc01beeec800a52c19f909f6ba41"}},{"ruleId":"D1","level":"warning","message":{"text":"Solver.solve (cyclomatic 31): Solver.solve has cyclomatic complexity 31 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 8 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":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a3de076bd1a5f5a3979e43b768894c26f8dcad84f57b489d7fb0856b56ccdb"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigPlanner.plan (cyclomatic 31): ConfigPlanner.plan has cyclomatic complexity 31 (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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8303335321abfb1c14611af85df667df5904bd29d7ac245d9a8270e4b6cde56c"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigPlanner.diffPortableSettings (cyclomatic 31): ConfigPlanner.diffPortableSettings has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b176ff12e67b8b1ac12e9c551d67c6c8f2b2cc1d65c2a1f279b149c41a83ca22"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowValidator.validate (cyclomatic 31): WorkflowValidator.validate has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ba92256bc5ff7f83449ae04cfd3a93b9d43a5fc09ab2597ceb6ba73d6b7455"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeImageJobCoordinator.runJob (cyclomatic 31): NativeImageJobCoordinator.runJob has cyclomatic complexity 31 (threshold 15). Of this number, 30 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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a44c080ac32a60b659b5e3d6f245567fb40e616294e773c1d6a364973e797ae"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPElicitationForm.convert (cyclomatic 31): MCPElicitationForm.convert has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/MCPElicitation.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b532d36d751ea8ffc174f23d10476d4089bb2604b97408a701cfdc58e63931f0"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryManagementConsoleService.diagnoseStorage (cyclomatic 31): MemoryManagementConsoleService.diagnoseStorage has cyclomatic complexity 31 (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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac166a5318564b07d828bfcf0f58aa25e1960d4223b721becedff74cbaa4257"}},{"ruleId":"D1","level":"warning","message":{"text":"MLXBatchAdapter.generate (cyclomatic 31): MLXBatchAdapter.generate has cyclomatic complexity 31 (threshold 15). Of this number, 30 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":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"379d3f6ceef8716fb6c826372e25721cc25da411a0e3da5068fa6da06299bdfd"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscoveryCenter.step (cyclomatic 31): DiscoveryCenter.step has cyclomatic complexity 31 (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":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4fa63a75bfa439b2959d9f310acf7c75f608a5a3aa47e2a3fe4367944771ff"}},{"ruleId":"D1","level":"warning","message":{"text":"TelegramConnectionService.diagnostics (cyclomatic 31): TelegramConnectionService.diagnostics has cyclomatic complexity 31 (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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"3164bc536072ceea80f58a7f13dce19f111573a1a0cef008fee48e863d6f3efe"}},{"ruleId":"D1","level":"warning","message":{"text":"DBImportTool.execute (cyclomatic 31): DBImportTool.execute has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8e9e4feaaa8a2812d90f9ffb9e2d4a5a4c07e2ee9d79b6d778355dfc272f8d"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMarkdownView.applyMixedSegments (cyclomatic 31): NativeMarkdownView.applyMixedSegments has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"e028fcb1cf5b6bfa515175a35d6caff7a35f702cc8a74186de4ee686b1bcc80e"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogElementAssignments.extendMappings (cyclomatic 31): CatalogElementAssignments.extendMappings has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/DesignLibrary/CatalogElementAssignments.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec9b22a17bbf840486e30256cced9882ce55857c8b0ea2de3d2875f2e2baefa"}},{"ruleId":"D1","level":"warning","message":{"text":"XMLFeedReader.parser (cyclomatic 31): XMLFeedReader.parser has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Feed/FeedParser.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d86f58db5db39d763ffd08ae4d925ffed0f14c1e15d03253fba143645549a7"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPOAuthService.signIn (cyclomatic 31): MCPOAuthService.signIn has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d3dcfe633aff13946441fe24946f926e19cd6e86f47b93336b0ec4c847a048"}},{"ruleId":"D1","level":"warning","message":{"text":"ServeCommand.execute (cyclomatic 30): ServeCommand.execute has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Serve.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fb733524bc35465f9e52ad133cb28153843fe35ed1200cb2d4acec2e3ded5d"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusEvalsCLI.runCaptureScreen (cyclomatic 30): OsaurusEvalsCLI.runCaptureScreen has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3249c0139dc60765ff2b3030c1c53ae4db8722c0291f979eca830771c9d611"}},{"ruleId":"D1","level":"warning","message":{"text":"FileCopyTool.execute (cyclomatic 30): FileCopyTool.execute has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FileCopyTool.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8f8ce09dd531488648bd58f501d7bfca7c4261d93462facba64ae50f187bec"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigPlanner.summarizePortableSettings (cyclomatic 30): ConfigPlanner.summarizePortableSettings has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"32183506732796b531e2eb2515997c615bfe67200ad3b4fd1bd6902e90bb80b7"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponsesItemPayload.transform (cyclomatic 30): ResponsesItemPayload.transform has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3567c0f7acc245c2fa0d63e0ddbca2d9be327ce3c8a8a9f4a0a251cafba776"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginHostContext.complete (cyclomatic 30): PluginHostContext.complete has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc5c47fbb55c1c0554898eb608bdbfd89db002e39d8d40abbc4d843c87dee0e"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.dispatchSend (cyclomatic 30): ChatSession.dispatchSend has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 3 other methods here (ChatSession.dispatchSend::runTurn, ChatSession.dispatchSend::runTurn::postProcessToolResult, ChatSession.dispatchSend::runTurn::executeToolBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7577}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6aa2b77e4cfce7b8709ebc98a7f17f4b5665cee9e15863f6fb91dc674258661"}},{"ruleId":"D1","level":"warning","message":{"text":"ShowCommand.printFormattedOutput (cyclomatic 29): ShowCommand.printFormattedOutput has cyclomatic complexity 29 (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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"74281eb44171e0de4b25ffeb6fd294f271136c4b36dae1f2df4a829587ece589"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusEvalsCLI.runCommand (cyclomatic 29): OsaurusEvalsCLI.runCommand has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"11abb325078663e222c9d356bc8baa9b33db2ddd657664cc383a99e786c10ac1"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runArchitectCase (cyclomatic 29): EvalRunner.runArchitectCase has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerWorkflow.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d38dde435b72290881e7e220baefebbbbca8f5e0ffa56df67fffd254fc71cd"}},{"ruleId":"D1","level":"warning","message":{"text":"FileEditTool.normalizingEditShapes (cyclomatic 29): FileEditTool.normalizingEditShapes has cyclomatic complexity 29 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3628}}}],"partialFingerprints":{"codehealthFindingId/v1":"71983d3e67f6c814ed74cd52072cd7d36c460be68bb49de0d132d2c850205b24"}},{"ruleId":"D1","level":"warning","message":{"text":"CNContactsService.search (cyclomatic 29): CNContactsService.search has cyclomatic complexity 29 (threshold 15). Of this number, 28 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":"Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9246f7609cd596803a5f0d6cf714680a25764b58706fd4a705528c96893cf12e"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.applyProviders (cyclomatic 29): ConfigApplier.applyProviders has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":2060}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d425e28741e4d00d67ffc9f985ea22011e2a70be98ccab991f2eb9c6fd04348"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigPlanner.planAgents (cyclomatic 29): ConfigPlanner.planAgents has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"044483e75c39aaac0e7949d0e21d2edf49d28b702ad171eea9ad1f06eca35748"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTaskState.nextStepBias (cyclomatic 29): AgentTaskState.nextStepBias has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c17208e5e4747f9477d9338ced91e8a83c450e1bc58b60246a060d8fe58b6f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatImportVerifier.verify (cyclomatic 29): ChatImportVerifier.verify has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportVerifier.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1126ba38ae6c6e8393164fa516d9766a563eee318759e49cd9c8d9ce1b415ce9"}},{"ruleId":"D1","level":"warning","message":{"text":"FoundationModelService.dynamicSchema (cyclomatic 29): FoundationModelService.dynamicSchema has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/FoundationModelService.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"7204544da243d7df2f0b3bd42bb96911e60ee79d28a3d3fa2a1ac2d9c01bdbc9"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryService.performDistillSession (cyclomatic 29): MemoryService.performDistillSession has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemoryService.swift"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"86119c01c8a6924ad0f723b4e2dd611fc64a3f8468874489f05c09637c68888b"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageModelRequestPolicy.validate (cyclomatic 29): ImageModelRequestPolicy.validate has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/ImageModelRequestPolicy.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1510f924730249c1bcf2eba864824f7d147faf439c430a18bd3806c7ebf9ff"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginHostContext.httpRequest (cyclomatic 29): PluginHostContext.httpRequest has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74920aab8ff84f3fd35e5e30ffd5c1d011af220aed903109259f9c2e0084a92"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowEvalHarness.structureChecks (cyclomatic 29): WorkflowEvalHarness.structureChecks has cyclomatic complexity 29 (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":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd266b4158e736eb49d448e203eafb653ab51a52e0bd2a0e915af22757f2363"}},{"ruleId":"D1","level":"warning","message":{"text":"RunWorkflowTool.execute (cyclomatic 29): RunWorkflowTool.execute has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"032690b9c16d4a740f8c0529ef361b5f30f88d998900e17ba46d98ac999c5ce5"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalMatrix.formatMarkdown (cyclomatic 28): EvalMatrix.formatMarkdown 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61de854992b19b07643a1eed3f3b891dffeec19abc52ba1b7cc520ab0d60069"}},{"ruleId":"D1","level":"warning","message":{"text":"Skill.parseYaml (cyclomatic 28): Skill.parseYaml 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":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad53053e6e6c34341e98f295929d01e727b6a1211e458c4ef8a48a3f07984b3"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleCompletions (cyclomatic 28): HTTPHandler.handleCompletions 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14835}}}],"partialFingerprints":{"codehealthFindingId/v1":"96de2fc2b8404ffc39a52ecb5ec2f572094f13e726afae4e33051f86490fa862"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleAnthropicMessagesStreaming (cyclomatic 28): HTTPHandler.handleAnthropicMessagesStreaming has cyclomatic complexity 28 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17931}}}],"partialFingerprints":{"codehealthFindingId/v1":"de004bdbcea39adac8e9c48ffc01b0988d6a118b5037acfafa5573a251f4bfc9"}},{"ruleId":"D1","level":"warning","message":{"text":"ListKnowledgeTool.execute (cyclomatic 28): ListKnowledgeTool.execute 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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"706929837eb5c25f3dbb3fa00b19dfcf7191a611066c037bf942912841e3c56e"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusConfigTool.handleTemplates (cyclomatic 28): OsaurusConfigTool.handleTemplates has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4d96f43ff4fd610e85846bd2006fbe79c4d4796288539f096ceead5cdc6c8e"}},{"ruleId":"D1","level":"warning","message":{"text":"DispatchEnvelope.badges (cyclomatic 28): DispatchEnvelope.badges 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":"Packages/OsaurusCore/Models/Chat/DispatchEnvelope.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"19423f9fd4c1258ddf01ada874832051a0b06205a79f6bebda24387df822f938"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelConnectionService.authorizeInboundMessage (cyclomatic 28): AgentChannelConnectionService.authorizeInboundMessage has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5197ebb4ae65aa4cf480d152fd5bbe7e980ade924e52d84e2c3c4f1f0adb53"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextBudgetManager.summarizeToolResult (cyclomatic 28): ContextBudgetManager.summarizeToolResult 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":"Packages/OsaurusCore/Services/Chat/ContextBudgetManager.swift"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6e0ea76760d96b76f85522402db947c5458b33fac6251a93fc53f2ab9201a6"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageComposerRequestBuilder.build (cyclomatic 28): ImageComposerRequestBuilder.build 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":"Packages/OsaurusCore/Services/ModelRuntime/ImageComposerRequestBuilder.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5097eecb735e3527f1cd7c6ba1c437188b9e63828250018e8c632f4bcfe796"}},{"ruleId":"D1","level":"warning","message":{"text":"SlackConnectionService.diagnostics (cyclomatic 28): SlackConnectionService.diagnostics has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a377882b9585a5572362dad693121dddf2ad5a8b6b8f6f666c549035aca117"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowTestTool.runExamples (cyclomatic 28): WorkflowTestTool.runExamples 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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"1184812e1277301eb6df26a54754f944834153d51e346746642bb07cfcf63977"}},{"ruleId":"D1","level":"warning","message":{"text":"AssignedPickerHostingView.applyRecipe::visit (cyclomatic 28): AssignedPickerHostingView.applyRecipe::visit 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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedNativePicker.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ba772d5722ba378d2b732e27cdf4317303852c4d41e6e3cbd79e3995e0ec20"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusCLI.parseCommand (cyclomatic 27): OsaurusCLI.parseCommand has cyclomatic complexity 27 (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":"Packages/OsaurusCLI/Sources/OsaurusCLI/OsaurusCLI.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85d4afe676a6cf7f59b12604d625eea47344f69022c84abfc5d5e9c98da0d3d"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportCommand.render (cyclomatic 27): ImportCommand.render has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbe52c4b23b4f44d94aefbac4a7e8d25ee9b457094c33311c1228d3e1fc8e9b"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runMicroPerfCase (cyclomatic 27): EvalRunner.runMicroPerfCase has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"087ac85dff7fea867ae05830d47f5b851cb668950774d26e38d183ca88f5b5a5"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runScreenContextCase (cyclomatic 27): EvalRunner.runScreenContextCase 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ade0d8002b934d94245b3d37d57bf723b9da96de6c713dc71ff3e13db93ab78"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellMutationPlanner.targets (cyclomatic 27): ShellMutationPlanner.targets has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/ShellMutationPlanner.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6917a443b39f87c6ec4c7e94fa2337fe99470e43ffe8c7c658ef1e95dbe25526"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalModelLocator.bundleDiagnostic (cyclomatic 27): ExternalModelLocator.bundleDiagnostic has cyclomatic complexity 27 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0bc64990b34283bb8b87d3b0ffb0377b4336c40d46f3ae085088d40d58a19c"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalGenerationDefaults.repairLagunaXS21TopKIfNeeded (cyclomatic 27): LocalGenerationDefaults.repairLagunaXS21TopKIfNeeded has cyclomatic complexity 27 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fdaaca07b308cea358ca57e9fab7b7611a58106fca38e003436604428fa40b"}},{"ruleId":"D1","level":"warning","message":{"text":"CapabilitiesDiscoverTool.execute (cyclomatic 27): CapabilitiesDiscoverTool.execute has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa25f75322e07a7bce4427c88427390fc264d6a99f2e3f7aa93481ef2e83773"}},{"ruleId":"D1","level":"warning","message":{"text":"CalculatorNode.evaluate (cyclomatic 27): CalculatorNode.evaluate has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc23e33460a0e2af3a4f61bfd7064246fb0016dbba5e94af8038dc3014fa4d7c"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.applyLocked (cyclomatic 27): ConfigApplier.applyLocked has cyclomatic complexity 27 (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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c76a364d611da5aa76a8b88e9bb59d5baa9c3cf7435de5bff3688036bb8f81d"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.applyDelegation (cyclomatic 27): ConfigApplier.applyDelegation has cyclomatic complexity 27 (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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f59d66c6aa7c3c58bc61254392023e21f2ebed9ecbd6d50eb41213dd761520e"}},{"ruleId":"D1","level":"warning","message":{"text":"FileDiff.partialToolName (cyclomatic 27): FileDiff.partialToolName has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/FileDiff.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"d216f7e39bcaa9a80dc51bc5e686d553e867c31f7813a54bab84d6224ab6bb5a"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatImportMCPBuilder.item (cyclomatic 27): ChatImportMCPBuilder.item has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f5aa926a4cd516b684763e28a802d43d4ff5c1726f06b89ea9a3921bbd3e2b"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageGenerationService.generateVideo (cyclomatic 27): ImageGenerationService.generateVideo has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c06f085d977eb9ada21796cfab7963839f4f2c5a2fd310fb5cf1052e1817d7"}},{"ruleId":"D1","level":"warning","message":{"text":"State.consume (cyclomatic 27): State.consume has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteResponsesPrivacyStream.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"428e7911bda524bfdaeb45419104a53e3bd1172283fcaae41f1ba590db52652e"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspacesService.refreshSelectedWorkspace (cyclomatic 27): WorkspacesService.refreshSelectedWorkspace has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: WorkspacesService.message (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecd9ed8a2207f10b6f8ae0cd4c1e245d461dfa913ddcc501e150f617c16b138"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncConversationMapper.fitTurnObject (cyclomatic 27): SyncConversationMapper.fitTurnObject has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"131820596546a596c53e31e1335c0e7c4495cbdf6c92c82a59e95da70ca71cec"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncConversationStore.saveTurns (cyclomatic 27): SyncConversationStore.saveTurns has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e7a953c0ea1a274633bfed4096fe2b17dc73357ffaf5b7d596f696864bd875"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPNodeExecutor.paginated (cyclomatic 27): HTTPNodeExecutor.paginated has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/HTTPNodeExecutor.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d544b1a9bea24ced75ea295fb0e4b671b47ced2e7cbfd568853c4b14350f95"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageSubagentKind.resolveModel (cyclomatic 27): ImageSubagentKind.resolveModel has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"682c874ae8b1f855a95629106e8eace089e4a82cb6e29ee5957e50e0b8339db3"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.runVideoGeneration (cyclomatic 27): ChatSession.runVideoGeneration has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7df44e3676228e6bb18af2a682dedb32d9e9925ac11df5b8c9080e326ad3a6"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageGenerationPanelView.run (cyclomatic 27): ImageGenerationPanelView.run has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d51ec5e5004bb57bcd1648f442692477e25d3d0c80b7b0acd2b88ecf9085ffc"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowRunView.nodeRow (cyclomatic 27): WorkflowRunView.nodeRow has cyclomatic complexity 27 (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":"Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"d520dac514e025fbf3bfe31297efefddac6b45f474eea40d454681a5073acc12"}},{"ruleId":"D1","level":"warning","message":{"text":"OOXMLText.replace (cyclomatic 27): OOXMLText.replace has cyclomatic complexity 27 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/OOXMLText.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"9158cf2139bf584731fa66ffcca47636911b2fcf541be22c1d1fca10ce8ba8a8"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalModelsCatalogPage.body (cyclomatic 27): LocalModelsCatalogPage.body has cyclomatic complexity 27 (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":"Packages/OsaurusCore/Views/Model/Catalog/LocalModelsCatalogPage.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbb11b19a673cff41a612b5219cb1fd660d85f6b4c082a872d1806ffbe94992"}},{"ruleId":"D1","level":"warning","message":{"text":"BenchCommand.parseOptions (cyclomatic 26): BenchCommand.parseOptions has cyclomatic complexity 26 (threshold 15). Of this number, 25 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4ac8032a9266bd0832fc2cbba61a9249edbbe01f214c849eb06e34c321b204"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalMatrixBuilder.errorCategory (cyclomatic 26): EvalMatrixBuilder.errorCategory has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3315cd533da8eb04c607d55738b824a1e51fc6b6fe20ecc68e126bab0e208a3"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.scoreSpawnResidencyLane (cyclomatic 26): EvalRunner.scoreSpawnResidencyLane has cyclomatic complexity 26 (threshold 15). Of this number, 24 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"294acff9265cffcf7d3a6100a638bd5a63fd6f1a915233e1038a86b5e0ac3ec9"}},{"ruleId":"D1","level":"warning","message":{"text":"DesignMessageChecks.run (cyclomatic 26): DesignMessageChecks.run has cyclomatic complexity 26 (threshold 15). Of this number, 24 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":"Packages/OsaurusCore/DevelopmentDesign/DesignMessageChecks.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa05c91a2094108fa662d6dcf0f87907921acdb86a201c672299cc3e2c503acd"}},{"ruleId":"D1","level":"warning","message":{"text":"FileUndoTool.execute (cyclomatic 26): FileUndoTool.execute has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4596}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9468b6c25187710f0057bb1c75235dcd176046eab4793a55c35842ecdb63ca"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderManager.connect (cyclomatic 26): RemoteProviderManager.connect has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fc0d5cd7b934ed94de303c3b89123628a6850046c9900ea83237147a45e6c8"}},{"ruleId":"D1","level":"warning","message":{"text":"SpeechService.startStreamingTranscription (cyclomatic 26): SpeechService.startStreamingTranscription has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef26de7e2592d809557fed83eb271a95e2e9fa97ac287ac34732e17fd2b9a06"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleSessionEndpoint (cyclomatic 26): HTTPHandler.handleSessionEndpoint has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8502}}}],"partialFingerprints":{"codehealthFindingId/v1":"3103fc8caf387e0a1dc3d3e8f8e08dcdf14f2c68b969e92417e8e18cbfa5dee6"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.computeWeightsSizeBytes (cyclomatic 26): ModelRuntime.computeWeightsSizeBytes has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":8011}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9403b16b2043af43fe0faf1dfd478a75ce413cb6358c9792700fb2666f44371"}},{"ruleId":"D1","level":"warning","message":{"text":"SpawnPermissionGate.authorize (cyclomatic 26): SpawnPermissionGate.authorize has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SpawnPermissionGate.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c247d8b6a401881fb4b61474ef167ab28cf38df9391c108ce3f4feafe110b48b"}},{"ruleId":"D1","level":"warning","message":{"text":"AppleScriptToolDispatch.literalsForDispatch (cyclomatic 26): AppleScriptToolDispatch.literalsForDispatch has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f848ee9749b9e02885ebc0d3e4501b00d67b293e55e922fed1c81d044790f7"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigEvents.export (cyclomatic 26): ConfigEvents.export has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a01acee0abd415ed1ac019d87e6d25a27bae7a0c9ce131049bf8fab09f889b"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigYAML.walk (cyclomatic 26): ConfigYAML.walk has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dd706151e57c51476def70ad89df37de6b428c98775a604be33e2c24eb9994"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusImportTool.execute (cyclomatic 26): OsaurusImportTool.execute has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusImportTool.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82b4fb9a1ed6800eb04f84bb0205301b62b001695ac45d25c92e2c69e0b4e8c"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicMessagesRequest.toChatCompletionRequest (cyclomatic 26): AnthropicMessagesRequest.toChatCompletionRequest has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f1918a907978e3487c581111453ae565147c3a12064b4430d3f2925708c6f2"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDraftOp.parseConnection (cyclomatic 26): WorkflowDraftOp.parseConnection has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: WorkflowDiff.plainLines::fieldName (cyclomatic 42) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"83feefd73b45bb6405a2764fbd7dbc9d7f432152814ca2e9411592c3e580860a"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedZipReader.parseEntries (cyclomatic 26): BoundedZipReader.parseEntries has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad66679a2fd7e1b5ff337395fc72641ba37470a0391de7c5a2a9882294d556c8"}},{"ruleId":"D1","level":"warning","message":{"text":"PPTXEmitter.slides (cyclomatic 26): PPTXEmitter.slides has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PPTXEmitter.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a644ac800d57487420d1ebec6d2181eea2f65d60a8f40e9b055dfb9cf68fcb5"}},{"ruleId":"D1","level":"warning","message":{"text":"FileDiffEngine.diff (cyclomatic 26): FileDiffEngine.diff has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 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":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d125922f0510bb33534b3082ac198d37d3eb9a81d8bf87929523a54f9359f416"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalVideoRequestPolicy.init (cyclomatic 26): LocalVideoRequestPolicy.init has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MediaGeneration/LocalVideoRequestPolicy.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4772cf3466d24f4fb72736772f91f7ff14e2ebe393541dee91f9424013d75127"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceAgentRunClient.prepare (cyclomatic 26): WorkspaceAgentRunClient.prepare has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceAgentRunClient.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c491ef9388ad61ff8746aae855e58042c2e159ddea3d48d36db165963c5f457e"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDraftTool.queueImport (cyclomatic 26): AgentDraftTool.queueImport has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Agent/AgentDraftTool.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3fd6d0a1e6b092c07b111c812c61de98abeab799c5f70944058e8c8da53186"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.compactBeforeToolContinuation (cyclomatic 26): ChatSession.compactBeforeToolContinuation has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":3845}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3b1937ceef1072a29da6fc185e31d525ff3a9eccf99553f672d479e3e3f19d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.runImageGeneration (cyclomatic 26): ChatSession.runImageGeneration has cyclomatic complexity 26 (threshold 15). Of this number, 24 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":6923}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b6e3b6de054d3e54f682a92b1f842a389fd6ef875c43b37ce6b2c0c6510354"}},{"ruleId":"D1","level":"warning","message":{"text":"AnchoredCardCoordinator.updatePresentation (cyclomatic 26): AnchoredCardCoordinator.updatePresentation has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Common/AnchoredCardPresenter.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ce42714378c5b6d456d14be9a2f7bcb84a2900671a147e93b70830acd5fadc"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXFormula.scan (cyclomatic 26): XLSXFormula.scan has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (XLSXFormula.scan::readCell) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXFormula.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62cdf73e2adfbc436cb43c9130d837b19cf7d7c8ac74136dabc7132fc5d9345"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguageModelCatalog.makeLists (cyclomatic 26): LanguageModelCatalog.makeLists has cyclomatic complexity 26 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 10 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":"Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b20da5003a3691d7744bd8109851d8f9964241b6321023d74f32a17e4115b3"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPCommand.execute (cyclomatic 25): MCPCommand.execute 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/MCPCommand.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ca88e3969fc44a7852e7bb6f4f2f5591ee630015f254dacab407538e021ab8"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalReport.formatTelemetryLine (cyclomatic 25): EvalReport.formatTelemetryLine has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b7191326a3a360ffdef109251f12ac4527c1d9b3dc2b46e52d0a4c1daabd43"}},{"ruleId":"D1","level":"warning","message":{"text":"BackgroundTaskManager.lookupReattachableSession (cyclomatic 25): BackgroundTaskManager.lookupReattachableSession has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6c55238127b64c4616a63bdfdc2665fc9a0b737c94969e954fae195585c9d0"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPProviderManager.performConnect (cyclomatic 25): MCPProviderManager.performConnect 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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e63749e8996d74d25ac6f095d4cf1aa4bcc3b6f9a37f7f94c5aa49503892fd"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatibleTTSClient.synthesizeStreaming (cyclomatic 25): OpenAICompatibleTTSClient.synthesizeStreaming has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"Packages/OsaurusCore/Managers/OpenAICompatibleTTSClient.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2312c989c935fb9355a4798ac7fc3893e9144ef88e8395c88c7ae6769ee620"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleChatNDJSON (cyclomatic 25): HTTPHandler.handleChatNDJSON has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15863}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c52bade60bb60971b8470c1e0f6c3e36aef28d4266f2d716a858fbc94c8c27"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenContextDistiller.sampledItem (cyclomatic 25): ScreenContextDistiller.sampledItem 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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeef70606d54f25c5713ce79a47fc19284e796d43cef088a88b152e09915f9b2"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.patch (cyclomatic 25): ConfigApplier.patch has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"1798fac54be27145e0d1487250f35cbebdecdfce92585f113eec6abc5922c3e8"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigDiff.merge (cyclomatic 25): ConfigDiff.merge 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigDiff.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1915560f11c629b71be80a19d97c17716b97cbcf7a9cc2ff6404e65a762ffc2a"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusConfigDocument.translatingLegacyEvents (cyclomatic 25): OsaurusConfigDocument.translatingLegacyEvents has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"db486737f8486b23603c9acd90f118b3e02a139fcc6e61ec77ac16c424de22b2"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenResponsesRequest.toResponsesInferenceRequest (cyclomatic 25): OpenResponsesRequest.toResponsesInferenceRequest has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2c93580f1670c58d316dfdd3e7528bc8fa7a11f2d6459dcfaad8493419d418"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenResponsesRequest.toChatCompletionRequest (cyclomatic 25): OpenResponsesRequest.toChatCompletionRequest 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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff92d18bcf6c9b7843c01f8b7569576e944a3db5eee22623ae79591d423f3f33"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalVisionEvidence.mimoAudioEvidence (cyclomatic 25): LocalVisionEvidence.mimoAudioEvidence has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5080b62b4c0bc7cece2c55875fc8f046b404fc1f3787e798332a92e01954a1"}},{"ruleId":"D1","level":"warning","message":{"text":"ScheduleFrequency.nextRunDate (cyclomatic 25): ScheduleFrequency.nextRunDate 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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a40cb6c128a701884fdc2320fee68cff3bd8c2398a53fd50f0ef5302dfb5899"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalAgentBridge.scheduleNextRun (cyclomatic 25): LocalAgentBridge.scheduleNextRun 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":"Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"53eff90935cea2d22526ab5e323498080e8c7b1993022ed50cd1f5e698621ede"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSubagentRunner.run (cyclomatic 25): AgentSubagentRunner.run has cyclomatic complexity 25 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/AgentDelegation/AgentSubagentRunner.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbe2c479aa7a2ad7c44c06f6ef0b092fddd9151dff8363fdf075be3e4fdcad5"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponsesGenerationAccumulator.consume (cyclomatic 25): ResponsesGenerationAccumulator.consume has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ResponsesGenerationAccumulator.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc4451346fd9eb26b4b2255475c900e18d0174acb32cbcf90d2b33dda1fbda7"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowRunner.runMap (cyclomatic 25): WorkflowRunner.runMap has cyclomatic complexity 25 (threshold 15). Of this number, 23 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":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"526a983ae3aa4773d29daf6abfeea0b88d6af8b87407fc185e733a62872827a2"}},{"ruleId":"D1","level":"warning","message":{"text":"CapabilityRowBuilder.build (cyclomatic 25): CapabilityRowBuilder.build has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a086ee0527af58f7f0b76abc2e756a968fa6d1ab7ae28cf61c47ae7a1261ec"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectableTextView.applyThemeStyling (cyclomatic 25): SelectableTextView.applyThemeStyling 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":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc542765cfe4677ef8a78c20f83e3086303f3e5c1570eaf315ebfa602f46ef1e"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolsManagerView.updateFilteredLists (cyclomatic 25): ToolsManagerView.updateFilteredLists has cyclomatic complexity 25 (threshold 15). Of this number, 23 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":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8865bd3dfc21c33a79c64dc3964d8c9bdf65a6d21ad0c9b77a96475821f0fef"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXEditor.renameSheet (cyclomatic 25): XLSXEditor.renameSheet 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"b428c5cc531aad14577c8cc6cd12b1669edce42464733b5bf5a563679c54d3df"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.updateStatusItemAndMenu (cyclomatic 24): AppDelegate.updateStatusItemAndMenu 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":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6592065761ee1048f6dcf7690812670897b01212fb873449b994fcb10acbf5ea"}},{"ruleId":"D1","level":"warning","message":{"text":"FileEditTool.execute (cyclomatic 24): FileEditTool.execute has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3747}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a22f612dbcb1fbb9e6a316c9b90c993e9377c28f85ea73a5b2a5b926de7c0eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ToastAction.from (cyclomatic 24): ToastAction.from 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":"Packages/OsaurusCore/Models/Toast.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea9032c9b55c563dadd4421079ece1f4b569aafebb763d239a3aae6c88e7d2b"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.workspaceKeyMayReach (cyclomatic 24): HTTPHandler.workspaceKeyMayReach has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4345}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc75e37aab08bfac12f3af000d5e86711ded48db177c83b804898c7d0d1d53b"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSSDResidency.remoteNGramBytes (cyclomatic 24): ModelSSDResidency.remoteNGramBytes 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":"Packages/OsaurusCore/Services/ModelSSDResidency.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efb53d1daff34370ecbf68fb0c8adf642239c02771ba68c1f002162f83a54ba"}},{"ruleId":"D1","level":"warning","message":{"text":"CapabilitiesLoadTool.loadTool (cyclomatic 24): CapabilitiesLoadTool.loadTool has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de365530ce5ab07e4f9e615548f28d6c10c70d4265dc445eeb9ade768fb5cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"ShareArtifactTool.execute (cyclomatic 24): ShareArtifactTool.execute has cyclomatic complexity 24 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Tools/ShareArtifactTool.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8836b3458012ddce68e14eec65c7e52c5a440ef4e2070d569d8d0da1723a7c1b"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchAndExtractTool.execute (cyclomatic 24): SearchAndExtractTool.execute 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":"Packages/OsaurusCore/Tools/WebSearchTools.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed7e3335c6e6cf0d01864a820e4779d64f7315681e96c4dd016b6d09d3e0b0f"}},{"ruleId":"D1","level":"warning","message":{"text":"EventKitCalendarService.update (cyclomatic 24): EventKitCalendarService.update has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a42c81c0ee1c091c6f4f7b48efce605f59e27e2ec77ce88fda385c8d35152ac"}},{"ruleId":"D1","level":"warning","message":{"text":"AppleScriptToolDispatch.exactReplacementLiterals (cyclomatic 24): AppleScriptToolDispatch.exactReplacementLiterals has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a24acc484d58fd0a1e39d7fc243480b249d1d99e318ee955cabc312b16c6707"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserToolExecutor.batchDo (cyclomatic 24): BrowserToolExecutor.batchDo 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":"Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"7171a90fe536f313a6d9039b58def97ed5c877dfa556f46e7ac1063cb95eb514"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginManager.loadPluginWithError (cyclomatic 24): PluginManager.loadPluginWithError 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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1386e424c3c854e9a5114b5526f9de298370224a7b71db175e3cc3e84e285b5c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionData.sameListRow (cyclomatic 24): ChatSessionData.sameListRow has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ChatSessionData.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5004a08c3f212dfb6aed1100efbb41554b4ec446ad1083633d7668e02d2fb37"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerRuntimeSettingsStore.shouldRepairPagedCacheDefault (cyclomatic 24): ServerRuntimeSettingsStore.shouldRepairPagedCacheDefault has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf9f61a86f5432a8e9be4393a792033d0b95c3fd5173f2a15519c7e9af032c1"}},{"ruleId":"D1","level":"warning","message":{"text":"PrivacyFilterEngine.detect (cyclomatic 24): PrivacyFilterEngine.detect 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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterEngine.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5bd82d21b95e908525cd30740abf08b13ab52dbe729556fb717ad8ae804fe0"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelInboundRelay.deliverReply (cyclomatic 24): AgentChannelInboundRelay.deliverReply 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de169f34d2e583817570e7664e3f860ecd7752258d2468201c9b61ec3481482"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextBudgetManager.trimMessagesReportingOverflow (cyclomatic 24): ContextBudgetManager.trimMessagesReportingOverflow has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ContextBudgetManager.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a405e86858d983448304b3d0da297ed54aca2c08df58e76e10b57f01adc4ee4"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIPromptBuilder.buildPrompt (cyclomatic 24): OpenAIPromptBuilder.buildPrompt 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":"Packages/OsaurusCore/Services/Chat/PromptBuilder.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6653f10ae54e76351b2a3aef360ea4920bc8b4086a60b468b421dfa9f44009d"}},{"ruleId":"D1","level":"warning","message":{"text":"WebhookHandshakeResponder.respond (cyclomatic 24): WebhookHandshakeResponder.respond 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":"Packages/OsaurusCore/Services/Event/WebhookProviderProfile.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"465df308b753a399b3ce78dbe181df27a7f613f13ffd8ac7e25f4300f3a00ab2"}},{"ruleId":"D1","level":"warning","message":{"text":"FileDiffEngine.canonicalLines (cyclomatic 24): FileDiffEngine.canonicalLines has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, textLines). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d9b83acea9c56a57bf227319db6f649844d0feb3deb8a6f1c14183f1f6cb8c"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeProofValidator.appendProvenClaimIssues (cyclomatic 24): RuntimeProofValidator.appendProvenClaimIssues 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":"Packages/OsaurusCore/Services/ModelRuntime/RuntimeProofValidation.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3823d9f6bb1015a911165047d77cde6dec02c1ea5cdaeb8218fd486f53b426fe"}},{"ruleId":"D1","level":"warning","message":{"text":"OnboardingFirstRun.perform (cyclomatic 24): OnboardingFirstRun.perform 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"4922056eab2a63a924dde3bec3815f1e21221a319f62bbf6c7378ecd39e197a7"}},{"ruleId":"D1","level":"warning","message":{"text":"OnboardingFirstRun.explore (cyclomatic 24): OnboardingFirstRun.explore 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4377d8c13af5bcdbab3892043eee4f1a7d2b896b5a295c7b89492d60ec9fd0"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatibleToolCallAccumulator.validateToolCallJSON (cyclomatic 24): OpenAICompatibleToolCallAccumulator.validateToolCallJSON 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":"Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f2082c8ff363ba5ad7f59e2cd37ec1dc3b1ea19eb9f6fcd62188d02eb265d8"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.handleAnthropicEvent (cyclomatic 24): RemoteProviderService.handleAnthropicEvent 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5980ca8179ea0022d8bc80cc5837eb255f1862fbdcda8cedcf100ea117a3730"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaNodeExecutor.runLocal (cyclomatic 24): MediaNodeExecutor.runLocal 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":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"452d446375f1717f9a45a75069794f35f202a5c96a3759c37dd7a47161efdc9d"}},{"ruleId":"D1","level":"warning","message":{"text":"TextSubagentKind.run (cyclomatic 24): TextSubagentKind.run 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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"127f715bb348dde2b88817702c24a9a3067f1ab48ef4d7396836f1d2b4c45d2c"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowTestTool.execute (cyclomatic 24): WorkflowTestTool.execute 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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb595294a2ce27a7483b4fbd3c75746145dcf86127231103ee16c75c65ed362"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatHistoryFilterPicker.passes (cyclomatic 24): ChatHistoryFilterPicker.passes has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf1a59b663a54f4b148b430eb254a79ea835582134f562926633ac1a539d73a"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionRow.navigatorRow (cyclomatic 24): SessionRow.navigatorRow has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":3176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21f8d1e0be24a660d230e6b4774d1ca4642118062bff7d5ec5e20ead93b8bca"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeActivityGroupView.configure (cyclomatic 24): NativeActivityGroupView.configure has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"316ddc879c8ea8d83be423519f75e1e4cbe8cff0f0bf7b673eab7550ad2f4fc8"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMessageCellView.configureAsParagraph (cyclomatic 24): NativeMessageCellView.configureAsParagraph has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2647}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e917bb7d4b85eee9386268cf129c721b43efc2606b655bfd2e7be0c4a47bda"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowRunView.details (cyclomatic 24): WorkflowRunView.details 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":"Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f37681ce00b58cf76be2066763428c722c24471205a14674b418767ce9254a3"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogPreviewInspection.label (cyclomatic 24): CatalogPreviewInspection.label has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/DesignLibrary/CatalogPreviewInspection.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5199ceb8e0dab379be6543e01cf6e13f0aac05a5aabf470b40497af3f449270e"}},{"ruleId":"D1","level":"warning","message":{"text":"LoginWithOsaurusRequest.parse (cyclomatic 24): LoginWithOsaurusRequest.parse has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Auth/LoginWithOsaurus/LoginWithOsaurusRequest.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6be1dab6321828c6c82eba8c40909e1050c37d2b7bf8912bfee82cf17aa4294"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.prefillProgressAccountingProblem (cyclomatic 23): EvalRunner.prefillProgressAccountingProblem 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"e890c2f6d4b97b8584858479b1eac041710b43d704fe22e7791c8f6162d358b1"}},{"ruleId":"D1","level":"warning","message":{"text":"RunEnvironment.summary (cyclomatic 23): RunEnvironment.summary has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/RunEnvironment.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c960e60a1d0847b868ad6ca916c44b9e219c352dcc81fe48a7b14b103531674"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogLibraryFixture.body (cyclomatic 23): CatalogLibraryFixture.body has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ac2f69756d5b40afaa6dd3d62ac0737f72087e61db326d3e2085974649d15a"}},{"ruleId":"D1","level":"warning","message":{"text":"Lines.replace (cyclomatic 23): Lines.replace has cyclomatic complexity 23 (threshold 15). 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, separate the cases: extract each independent 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":"Packages/OsaurusCore/Folder/FileEditMatcher.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cf02eeacc18a56f22424ffbd26bdfede9b889f7fbeaba00126891bce94928e"}},{"ruleId":"D1","level":"warning","message":{"text":"FolderContextService.buildFileTree::traverse (cyclomatic 23): FolderContextService.buildFileTree::traverse 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":"Packages/OsaurusCore/Folder/FolderContextService.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"adeb160bb3edc94193a957f7f8c4fbeae9f26cd4fc2b4167097bc8751e5d5551"}},{"ruleId":"D1","level":"warning","message":{"text":"FileWriteTool.writeDocument (cyclomatic 23): FileWriteTool.writeDocument 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3261}}}],"partialFingerprints":{"codehealthFindingId/v1":"9008c62aef93548dae2ce61fa1b06df95f738d5b4f9a890aac02e6fd00464e3d"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellRunTool.execute (cyclomatic 23): ShellRunTool.execute 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":5735}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3e72f9d9770d96a86977366d124fb1ae93b5575bf810464a7dc9a1c2c95c21"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptionWorker.runLoop (cyclomatic 23): TranscriptionWorker.runLoop 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":"Packages/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b4b51a79510eb32e66ab2039011105eeb2f99f63a435c4598a4ab108c69499"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelDownloadService.transferFile (cyclomatic 23): ModelDownloadService.transferFile 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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccc1cdd549a375f5d18a7f88d107f61016dda462955a16d969cc6da31a158ee"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.makeMLXChatMessages (cyclomatic 23): ModelRuntime.makeMLXChatMessages 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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":7473}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa8bc2b64ad97f50736264f710b079e52e8949d2c86f00a97bbd1a92ef134f4"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxReadFileTool.execute (cyclomatic 23): SandboxReadFileTool.execute has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1707}}}],"partialFingerprints":{"codehealthFindingId/v1":"699914316ce62535611929a8fb619369dced8d581c1c0e87e966430f2211b9be"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPProviderTool.convertMCPContent (cyclomatic 23): MCPProviderTool.convertMCPContent 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":"Packages/OsaurusCore/Tools/MCPProviderTool.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"7317aeca8083a2e91522820480c4b4bc1f500514e3a74863fa90f5663e76a9ee"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaValidator.validateObject (cyclomatic 23): SchemaValidator.validateObject 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":"Packages/OsaurusCore/Tools/SchemaValidator.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa79e547407073c0435465d29eb08e17499fe08ee43abb1a9f6220250c534a3"}},{"ruleId":"D1","level":"warning","message":{"text":"AppleJSON.serializable (cyclomatic 23): AppleJSON.serializable has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe034e9b65a6437205747f7d2214170bb4b2df35a73a84d114132096da33417"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserSnapshotFormatter.format (cyclomatic 23): BrowserSnapshotFormatter.format 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":"Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd87151c4c578a55b232df092cdb15c4f45b0f83212edd4e186cc551660ad859"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentAction.argumentsJSON (cyclomatic 23): AgentAction.argumentsJSON has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Model/AgentAction.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd86201a1e62c5bd38efb268035c2eb4dd3b32b76df57892110515fbba72fa9"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusConfigDocument.declaredSections (cyclomatic 23): OsaurusConfigDocument.declaredSections has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"63801fa98790088237b45895769edbc6053a7b644fa5b3a88c26e95e252bdb7f"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlock.knownFileContents (cyclomatic 23): ContentBlock.knownFileContents 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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c574a6e8129d20c2be18898c99233f09d9e0338cb3f3bc1540c86d9c770fe98f"}},{"ruleId":"D1","level":"warning","message":{"text":"MTPLayoutAdvisory.evaluate (cyclomatic 23): MTPLayoutAdvisory.evaluate 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":"Packages/OsaurusCore/Models/Chat/MTPLayoutAdvisory.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0b627fec972f976da75e3020e988b450beb59df4a887efd6919d4ffa0397ea"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerRuntimeSettingsStore.shouldRepairLegacyCacheDefaults (cyclomatic 23): ServerRuntimeSettingsStore.shouldRepairLegacyCacheDefaults has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"4004f0393e97712bfa928dcd035a12c26b6e259adf5e7550accc255dab75aebe"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolApprovalPresentation.guarantees (cyclomatic 23): ToolApprovalPresentation.guarantees 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":"Packages/OsaurusCore/Models/Tool/ToolApprovalPresentation.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90373861b19cb0429ab7804369fd23cd65a64dd8fa57090cb36f829941c08e4"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowNode.effectiveOutputSchema (cyclomatic 23): WorkflowNode.effectiveOutputSchema has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4ab042a8708a60c21b0e149225aa8bff15552967b506b038ab3a843cd3fc31"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSubagentRunner.consumeStream (cyclomatic 23): AgentSubagentRunner.consumeStream 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":"Packages/OsaurusCore/Services/AgentDelegation/AgentSubagentRunner.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"62eb191e75df5dad647dc827e328a46164779abf7d5bd26722ebdd1d6bc17882"}},{"ruleId":"D1","level":"warning","message":{"text":"OwnerApprovalService.request (cyclomatic 23): OwnerApprovalService.request has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Attention/OwnerApprovalService.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e06efa08ba5253b889e70bc44cce36ca28234a7023eb20d9362e63a706589b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatImportRepoWalker.collect (cyclomatic 23): ChatImportRepoWalker.collect 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":"Packages/OsaurusCore/Services/ChatImport/ChatImportSourceResolver.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3eb7b2190126592b3e40ffad230439b272a7493b83dba67a0a3dfb4f8b6bd3"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.dispatchFinal (cyclomatic 23): RemoteProviderService.dispatchFinal 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2834}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a4695e278d43f4b3a91c0cd736d822e658ee3da17b0dcccd05aaa6f373aa8b"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteResponsesNativeStream.capture (cyclomatic 23): RemoteResponsesNativeStream.capture 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":"Packages/OsaurusCore/Services/Provider/RemoteResponsesNativeStream.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1931505bbca524c73ff60bf97534ecab3854927e680dd22fa99c59455d4a8d0"}},{"ruleId":"D1","level":"warning","message":{"text":"SharedAgentStatus.derive (cyclomatic 23): SharedAgentStatus.derive has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/SharedAgentIdentity.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e606297135a65c223dbb2d600ac63575e0b2cd4cecf1e5785432f30601ab1e9d"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceAgentAccessHost.redeem (cyclomatic 23): WorkspaceAgentAccessHost.redeem has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fadddadb151c65b33e6dc5e53ea35b90bbfe1438c287a5bbd854aeea297dd9"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaModelCandidate.constraintsSummary (cyclomatic 23): MediaModelCandidate.constraintsSummary 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":"Packages/OsaurusCore/Services/Workflow/MediaModelResolver.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"448dd4426dd1656f1d8843285483a32960a0a7d5e05cb4e85b6f0bb4d0c2b3d4"}},{"ruleId":"D1","level":"warning","message":{"text":"DatabaseImport.parseXLSX (cyclomatic 23): DatabaseImport.parseXLSX 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":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f524b8d7241ceb48171cd90be0bccb255f3a48753bc8431c2c407899a8544452"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowRunsTool.nodeDetail (cyclomatic 23): WorkflowRunsTool.nodeDetail has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1e84b3d87a847c5d03e365775929ff58deaa56fcd302883ee963621ae0008a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDetailView.bodyCore (cyclomatic 23): AgentDetailView.bodyCore has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1ae3f2f6f6596818cfcc680be21057350ee541e64bc320e0bf125ca29cb041"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeThinkingView.applyAssignedLayout (cyclomatic 23): NativeThinkingView.applyAssignedLayout 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":"Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"776e501b4446e2278dda29c7f0cd632e1ee8c143d86ea655fe4dda0306b083a4"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalDisplayView.applyTheme (cyclomatic 23): TerminalDisplayView.applyTheme 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":"Packages/OsaurusCore/Views/Chat/TerminalDisplayView.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a23caf76822daf05a98f97a0cc69d1a7f03fecdfaf03dbc67c3f423976f51ff"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsFieldRow.body (cyclomatic 23): SettingsFieldRow.body has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"73855372923890eda2ebd879be5a4fac443e953babeb9f30c3abcf4768e9af61"}},{"ruleId":"D1","level":"warning","message":{"text":"N8nSettingsView.body (cyclomatic 23): N8nSettingsView.body has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c264c78cb51d2963ab086e9252a630d833151191b4a3c8a96686da91952926f"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellArgs.split (cyclomatic 23): ShellArgs.split 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":"Packages/OsaurusCore/Services/MCP/Stdio/ShellArgs.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e615aed5314b53bd5a0887f97811f29cf56e0e7baa2a9b5c62113c8b7160a1"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowNodeEditor.fromFields (cyclomatic 23): WorkflowNodeEditor.fromFields has cyclomatic complexity 23 (threshold 15). Of this number, 22 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":"Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57436ef588a519f8402137e193391aa9add3e0036da540addaa1003ffe8855a"}},{"ruleId":"D1","level":"warning","message":{"text":"RunCommand.execute (cyclomatic 22): RunCommand.execute 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Run.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b828d15f206b103eb3c927a803c08dd345169366cd4eeec391004753bbcef4"}},{"ruleId":"D1","level":"warning","message":{"text":"CentralRepositoryManager.mapFailure (cyclomatic 22): CentralRepositoryManager.mapFailure has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/CentralRepositoryManager.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afbf83a856d7c6ed37d1c6069fe2f08885117c39d3a0e0bdf710546e00c6b75"}},{"ruleId":"D1","level":"warning","message":{"text":"InspectorMessageExamples.make (cyclomatic 22): InspectorMessageExamples.make has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/InspectorMessageConfigurations.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a842926590912691bddcf8cfce002a8b7b9d35e0960efbf7e22d5739d7e08d1"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.decodeOllamaChatRequest (cyclomatic 22): HTTPHandler.decodeOllamaChatRequest 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15815}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7674ea35dbf7a219af06b9fb81903956e9e3bfe7c4b6adef6cecfb4e1252f6"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleOllamaGenerate (cyclomatic 22): HTTPHandler.handleOllamaGenerate 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b037a68ef0d07af22b72fdb6412deab2e7a17c0cd114704d0edcb99fdd8ad963"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestValidator.rawResponseSchemaReason (cyclomatic 22): RequestValidator.rawResponseSchemaReason has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/RequestValidator.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"caad13365d8514ce95fb7de490581bd5354c54b195db3bbdd026722bfd99da46"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.generateEventStream (cyclomatic 22): ModelRuntime.generateEventStream 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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":6235}}}],"partialFingerprints":{"codehealthFindingId/v1":"801da6961707e56b03d63526a830f0f359483d2ffc93653dd39ad74370a58c97"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSSDResidency.fetch (cyclomatic 22): ModelSSDResidency.fetch 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":"Packages/OsaurusCore/Services/ModelSSDResidency.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8456b7d4980357bc0d9b010b0264090a2b507dbcad02819e737b42fba14031c"}},{"ruleId":"D1","level":"warning","message":{"text":"SpawnResultCompaction.modelVisible (cyclomatic 22): SpawnResultCompaction.modelVisible has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SpawnResultCompaction.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"09756f1bccd78e6d4377a6244e7eb9e2141176d559f01dca6932b8d29b743821"}},{"ruleId":"D1","level":"warning","message":{"text":"SpawnAgentTool.execute (cyclomatic 22): SpawnAgentTool.execute has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SpawnAgentTool.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e351b1b71b67ad2aecbcc5d9359e10f15801cc7d06d1529ce6d06a138542502"}},{"ruleId":"D1","level":"warning","message":{"text":"EventKitRemindersService.update (cyclomatic 22): EventKitRemindersService.update 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":"Packages/OsaurusCore/AppleApps/Reminders/RemindersService.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c10f81976d007f3f0ae42b84e6cd162eb98389603bd24f8f22be907816a66f"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserSnapshotFormatter.line (cyclomatic 22): BrowserSnapshotFormatter.line has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c9d25575dcd7c2fad789cfc0f9cba4243af0623dcc0eb19d4848695d279f2d"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentAction.semanticProblem (cyclomatic 22): AgentAction.semanticProblem 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":"Packages/OsaurusCore/ComputerUse/Model/AgentAction.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ca3edd374f14ccf079730d26ec498899d08f2fbd28dda9cdbd9b9a548ad75d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatWindowState.loadSession (cyclomatic 22): ChatWindowState.loadSession has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"63beb5bf5221405d5819e6e7caf17ce86c0772b9b3e09ab6b254622373d19dc1"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTargetResolver.resolve (cyclomatic 22): AgentTargetResolver.resolve 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":"Packages/OsaurusCore/Models/Agent/AgentDispatchTarget.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e151486b2bd5a93370a73547d0a38042bc0ff29ef57f3d48416dd0dbf7b10751"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProvider.resolvedHeaders (cyclomatic 22): RemoteProvider.resolvedHeaders 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":"Packages/OsaurusCore/Models/Configuration/RemoteProviderConfiguration.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa4ca77c37ebeec2835853bd4c107808eddad6177754de68d5998c0090bef52"}},{"ruleId":"D1","level":"warning","message":{"text":"Template.merge (cyclomatic 22): Template.merge has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Template/Template\u002BAgent.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3fe52ca91d9e5c1cb3924703c557d198919e3dc2e2a420282924e9c1706137"}},{"ruleId":"D1","level":"warning","message":{"text":"AssignedBaseToggleStyle.makeBody (cyclomatic 22): AssignedBaseToggleStyle.makeBody 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":"Packages/OsaurusCore/Models/Theme/BaseComponentAssignments.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cb83638b2c5de8d751b7c637942d213c70b4175f39cf1225f47216650fb971"}},{"ruleId":"D1","level":"warning","message":{"text":"BindingRenderer.parse (cyclomatic 22): BindingRenderer.parse has cyclomatic complexity 22 (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":"Packages/OsaurusCore/Models/Workflow/BindingRenderer.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad41f9738a900e816021d7a1575017d23d724e3bbe5177e744427bd2cf7205b"}},{"ruleId":"D1","level":"warning","message":{"text":"RegexEntityDetector.detect (cyclomatic 22): RegexEntityDetector.detect 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":"Packages/OsaurusCore/PrivacyFilter/Core/RegexEntityDetector.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"318fa2535fbf6e43d0ab01e88753f35ace44cdd482830ad2a261efa7be2a47c7"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextCompactionService.compactionCutIndex (cyclomatic 22): ContextCompactionService.compactionCutIndex has cyclomatic complexity 22 (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":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"064a92ea9ee97624226b467345c7fd298b52cc2174555cb559dc2f2e05817a77"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelDialogRelay.interpret (cyclomatic 22): ChannelDialogRelay.interpret 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":"Packages/OsaurusCore/Services/Event/ChannelDialogRelay.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda0a68d2e41aea28f0376e53847c38ba9c53f46e29160e27c8425f63d4c4ba9"}},{"ruleId":"D1","level":"warning","message":{"text":"PiRPCCodec.decode (cyclomatic 22): PiRPCCodec.decode has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Harness/PiRPCAdapter.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cd6094f2661d3d6401266d0f68c4b6cf1c712c68653d7342d8df27bab1ae9d"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingStatsHint.decode (cyclomatic 22): StreamingStatsHint.decode has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17f18d4c8cfeefe8e44edfb10c1f1961da0a5020f13ab6b9668f2a32b3ee304"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponsesGenerationStream.native (cyclomatic 22): ResponsesGenerationStream.native 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":"Packages/OsaurusCore/Services/Inference/ResponsesGenerationEvent.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a3840baa4d8cd53ef53e48c632f66d5ab7cb2e3b1a35c1d2347b804ecc08b6"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeCurationService.approve (cyclomatic 22): KnowledgeCurationService.approve has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeCurationService.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"852c1bb44d30cdb31e1ec01bc9dc84bf1f6b1a0d1f110fd45ecc57f7d59f31e1"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenizerBridge.applyDeepseekV4NativeTemplate (cyclomatic 22): TokenizerBridge.applyDeepseekV4NativeTemplate has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"82be727d057b8cf7ad06e79437fa188b589b1db3ecb295b03e8eefc485fbc865"}},{"ruleId":"D1","level":"warning","message":{"text":"SetupChecker.check (cyclomatic 22): SetupChecker.check 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":"Packages/OsaurusCore/Services/Template/SetupChecker.swift"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"549c695b30af8e1b84252faa188cc22921b36b4524ae2dd1b6e660efec2ef550"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaNodeExecutor.describe (cyclomatic 22): MediaNodeExecutor.describe has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bce196cd884d48b78891b8eca9c76c8b8c46cf78ad404c93c9ce5865a4b1f2"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplyNodeExecutor.run (cyclomatic 22): ReplyNodeExecutor.run 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":"Packages/OsaurusCore/Services/Workflow/ReplyNodeExecutor.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd800a0f41e4a583fb0c8901f2f41a42c994cd562d31c2292b0ab82232dd5787"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolNodeExecutor.run (cyclomatic 22): ToolNodeExecutor.run 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":"Packages/OsaurusCore/Services/Workflow/ToolNodeExecutor.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"241c1caca4092bc483b2054c805508a06cef7a9f4462b5eb7687da5623a04288"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowEvalHarness.runArchitect (cyclomatic 22): WorkflowEvalHarness.runArchitect 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":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1811b8a748ee0791796e22b4da4b186bf8a19cc0e542a8c3908fa3a81829bf"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowEvalHarness.scoreArchitect (cyclomatic 22): WorkflowEvalHarness.scoreArchitect has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"beebec6763fb3e69307b6f0ccff02db8a2d5420ca03c361f87bcd131377473f0"}},{"ruleId":"D1","level":"warning","message":{"text":"DatabaseImport.detectFormat (cyclomatic 22): DatabaseImport.detectFormat has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41e81514283a2a43c7b6e95f358cd8c6919c69b1e528e0e8cf45f4289de4d22"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowTestTool.summary (cyclomatic 22): WorkflowTestTool.summary 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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1acec1233007441035a787f0adefffec91d8272f81227e369a03c5b0c45b17d"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionRow.body (cyclomatic 22): SessionRow.body 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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8ccef36172f74712c661a38ef6d29064d883dbeb7c25eb5aa8b04d4dd951de"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.startVoiceInput (cyclomatic 22): FloatingInputCard.startVoiceInput 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e403ec56f14565816d11552005bf3864021f4dbbebe58bef0acecc52b2ef23"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsTextField.body (cyclomatic 22): SettingsTextField.body has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"40eddfb1561b74e8976ce58a34455fc91891fc77705e71e7bc01a88c5218b614"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPickerOptionsSnapshot.make (cyclomatic 22): ChatPickerOptionsSnapshot.make 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":"Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57e393f672f2915cde4bda76a62f92eef3285dfbee799ab1491dda31b058bd0"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowMediaGalleryModel.settingsLines (cyclomatic 22): WorkflowMediaGalleryModel.settingsLines has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Views/Workflow/WorkflowMediaGallery.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9d30504931275ca1e401a3094d0ba45d80e6fc6dc3413dc70f3063009aa9f3"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXEditor.setCells (cyclomatic 22): XLSXEditor.setCells has cyclomatic complexity 22 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 8 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ceaaf2719849ac2f29bb4732b49b872ddc7845d514d54bf6dcc95579cdd8bd"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPOAuthURLPolicy.isLocalOrPrivateHost (cyclomatic 22): MCPOAuthURLPolicy.isLocalOrPrivateHost has cyclomatic complexity 22 (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":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthHTTPTransport.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc048d3e6ea657af62eac3c0f5b85424147b34908ff08bc33b9a336a6811c5e"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPOAuthError.errorDescription (cyclomatic 22): MCPOAuthError.errorDescription has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17aa3792303bc0e30fc21e7868e5fc1aa687c171e8961a305976ae43139ee90"}},{"ruleId":"D1","level":"warning","message":{"text":"bridge.handleLoginEvent (cyclomatic 22): bridge.handleLoginEvent has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to 2 function literals 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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb86e665ce6d463342799279e421669f641f719525b85ef695805e1ccd940167"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestValidate.validate (cyclomatic 21): ManifestValidate.validate has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestValidate.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"da573fdab579a33fee1b530cc91f4ea89c83717b8367b5aaf7b553d42bcfac8d"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolsInstall.installManual (cyclomatic 21): ToolsInstall.installManual has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"21144d241b9e9d4f94457563c8a536f0a746d22f9a6d3c84d50f9cb1356081df"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusEvalsCLI.runDiff (cyclomatic 21): OsaurusEvalsCLI.runDiff 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4014b52fc203e1ea52da0d034f6d142efa6cc1d93315d41f0379f9168299e4f5"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runHTTPAPICase (cyclomatic 21): EvalRunner.runHTTPAPICase has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e870f56fa79497e1490498e3c13d90f770fbd69832f76f5fd64b111960ce43"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runReasoningChannelCase (cyclomatic 21): EvalRunner.runReasoningChannelCase has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"73135717b084e2b8102327b66d3de9e1b1c49fafa039891b631accc04107e361"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runSubagentCase (cyclomatic 21): EvalRunner.runSubagentCase 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6856157c84278ce6160158217ed9cd9f50bc9f836d114c003b92f4dd2b3bb5"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.presentAnnouncementIfEligible (cyclomatic 21): AppDelegate.presentAnnouncementIfEligible has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":3048}}}],"partialFingerprints":{"codehealthFindingId/v1":"f035431e44427cf6e029ada24fac3da4b11212138207d533af561459f0daeb6c"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogLibraryFixture.featureContent (cyclomatic 21): CatalogLibraryFixture.featureContent 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":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"767de81f96c61912284bcf3071225c6343f3539f5a7dcb51ed6f9f0d50ddf83b"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPProviderManager.executeTool (cyclomatic 21): MCPProviderManager.executeTool 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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb84a27b8706bd9a168b0c39b8dc77d7fd82d4741d2f5c08ac2871a4163d591f"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleListSessionsEndpoint::matches (cyclomatic 21): HTTPHandler.handleListSessionsEndpoint::matches 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8255}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd93e325715c280108653d2761784720dbfec60f38ba6f7c3010c8cc78de8022"}},{"ruleId":"D1","level":"warning","message":{"text":"RelayTunnelManager.connect (cyclomatic 21): RelayTunnelManager.connect has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"12213bf90a93784ecadc86ab319b25c126058e3dd1ef2982927eb3897bffdb7f"}},{"ruleId":"D1","level":"warning","message":{"text":"NotificationService.userNotificationCenter (cyclomatic 21): NotificationService.userNotificationCenter has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/NotificationService.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da1a2d40eb9d2a12653db84d8e6805a164f2becb12eb350ff44c2d3706ba4fb"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentSession.prepare (cyclomatic 21): SubagentSession.prepare has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"783aa2f1a4a365ab3c64750c6aeccc95890e0e6c9ca29400c166443a5098a738"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolRegistry.availability (cyclomatic 21): ToolRegistry.availability has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: 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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":3235}}}],"partialFingerprints":{"codehealthFindingId/v1":"960e776c5f1aa98f16e877fbd74b778bc1843627d40e4b44a9efc6a2346f7056"}},{"ruleId":"D1","level":"warning","message":{"text":"InlineMathScanner.split (cyclomatic 21): InlineMathScanner.split has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/InlineMathScanner.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae23c42f6c90f0e9c8d04c85974bb202143d9193dacd46e6335b5fa7d4755e1"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentView.renderForModel (cyclomatic 21): AgentView.renderForModel 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":"Packages/OsaurusCore/ComputerUse/Model/AgentView.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5f7e795c4243df563e583f928101585961a9fa084d0681ce7ffb25254d3a09"}},{"ruleId":"D1","level":"warning","message":{"text":"EffectClassifier.classify (cyclomatic 21): EffectClassifier.classify has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Policy/EffectClassifier.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54e5657a17ca1b1387c6b7cf64c77ca3042df818aaca699f54e7911627e1326"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.patchCapabilities (cyclomatic 21): ConfigApplier.patchCapabilities has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e914cb366d1eb24a2d32ec865f032cf353b073d0063e5bc0f1dff1b7941e7939"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigDiff.editScript (cyclomatic 21): ConfigDiff.editScript has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigDiff.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"735668421e063c39f9bd0633bbd0d2fed67a6f526a9999b885d8d546bdc7b4de"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigYAML.checkMapping (cyclomatic 21): ConfigYAML.checkMapping 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce24492a532b51b0e8c770de84e6e15bbd5758461e7e6aec09126ffe81e1c49"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusConfigDocument.filtered (cyclomatic 21): OsaurusConfigDocument.filtered has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45060f57c32f139cde1b9332db13e328066c07d2233e9d5b0c25e3534a83c00"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusConfigTool.loadDocument (cyclomatic 21): OsaurusConfigTool.loadDocument 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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea76b8db020cb4fed3d9d76c670ac3d9dc28b38e6f74dd1656b4698ee7e0074d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionExporter.timingSuffix (cyclomatic 21): ChatSessionExporter.timingSuffix 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":"Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1dc476eafe482070abbd67cd461c276b85b900a66d9749e7e6dc7c035cb5b8"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelManager.fetchRemoteMLXModels (cyclomatic 21): ModelManager.fetchRemoteMLXModels 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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a8eefa3d5c66eadf537cbe4f4f599376f6d5128db7a5ab3db63b378047a7b5"}},{"ruleId":"D1","level":"warning","message":{"text":"TemplateRequirements.items (cyclomatic 21): TemplateRequirements.items has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Template/TemplateRequirements.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e50819fb00b0ff1cf57a420b8303cbbe13d1d9baa2184299d8b00164e0213c"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelPublishService.classifyProviderFailure (cyclomatic 21): AgentChannelPublishService.classifyProviderFailure has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"07821b42508a3348ca0c051e6c95a600f64182223335fdcd6e03443f13aef205"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatImportReportTool.parse (cyclomatic 21): ChatImportReportTool.parse has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportReader.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcfb95cf536c3459239076f398f3e961097da1a67aa69fbe8a1ad51414744dd"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentEditService.structure (cyclomatic 21): DocumentEditService.structure 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":"Packages/OsaurusCore/Services/Documents/DocumentEditService.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b54dbac4c8aea3798ee6029d847c1c04625a251ad5ba27f9a6a61e62dc915d"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownRichTextRenderer.blockDescriptor (cyclomatic 21): MarkdownRichTextRenderer.blockDescriptor 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":"Packages/OsaurusCore/Services/Documents/MarkdownRichTextRenderer.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"861bcdbaff3f2deee32c855c18a0a2db4b485a02d511f51cff73bd07a2a558ab"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFAdapter.selectionRange (cyclomatic 21): PDFAdapter.selectionRange has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d9494c4497e8e4e6ff39eed76ea5bfceae5399b4666b76cb610b7df90460cc"}},{"ruleId":"D1","level":"warning","message":{"text":"WebhookVerification.verify (cyclomatic 21): WebhookVerification.verify has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/WebhookProviderProfile.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba50d0fb34bb10945da20cb767fdc22c44d43745c3f61781b113bbd5c628eea"}},{"ruleId":"D1","level":"warning","message":{"text":"FileDiffEngine.collapse (cyclomatic 21): FileDiffEngine.collapse has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 7 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":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca908a86e0a74ded3d23bae153efdff6ab6679344fe20596944bec5119f65ee5"}},{"ruleId":"D1","level":"warning","message":{"text":"IMessageConnectionService.diagnostics (cyclomatic 21): IMessageConnectionService.diagnostics has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9dc6d882c541766c38c8a23ccc486a3dde7d3eae46085d1285ff9cb5164f52"}},{"ruleId":"D1","level":"warning","message":{"text":"PendingImportProcessor.removeItem (cyclomatic 21): PendingImportProcessor.removeItem 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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cd87d0965c2906989329e580c5a919c13244b0ead8b3d76ab98d158802652c"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeIndexService.scanIndexableFiles (cyclomatic 21): KnowledgeIndexService.scanIndexableFiles 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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"e643e80e1771e1c966a44bf6a3690132aaeda6cdc3ea34d99193cb0f59e2e20e"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeSearchService.search (cyclomatic 21): KnowledgeSearchService.search 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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeSearchService.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c358541d4044198e9226e15a21593f57c0df7b3be80806946a1858fdd09453"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaGenerationCoordinator.validateImageRequest (cyclomatic 21): MediaGenerationCoordinator.validateImageRequest has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d36bcd3aa84bc7ec8f004ea4c68c32d7fe3e55ead33cb90ff1a01289873ba8"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaGenerationCoordinator.validateVideoRequest (cyclomatic 21): MediaGenerationCoordinator.validateVideoRequest has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e441253f4de8191d480dfe4409663a38a87136e5490f14188252d21e6ca2598"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.handleGeminiEvent (cyclomatic 21): RemoteProviderService.handleGeminiEvent 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc50ddff20c6df11ce20505221ff4aa5498ece1e1cfdc6ba30c087eee28b3fb"}},{"ruleId":"D1","level":"warning","message":{"text":"InboundSharedRunBridge.mergeCompletedTurn (cyclomatic 21): InboundSharedRunBridge.mergeCompletedTurn has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd63529a9e2301bbffc3a09829fe1e50e4c2308c4e569ef59f74ed7486df5658"}},{"ruleId":"D1","level":"warning","message":{"text":"SlackConnectionService.classifyInboundEvent (cyclomatic 21): SlackConnectionService.classifyInboundEvent has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"061f1913f14e2ac1d3727a19386ed5c92d0c881ff9d22533004daa132afe06b2"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncLegacyImporter.importAll (cyclomatic 21): SyncLegacyImporter.importAll 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":"Packages/OsaurusCore/Services/Sync/SyncLegacyImporter.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f447dd7437e47d2db10209a1bebf18e3fdb006aa3d47d89e050f27afbe2a0847"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolIndexService.exposureDiagnostic (cyclomatic 21): ToolIndexService.exposureDiagnostic has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: 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":"Packages/OsaurusCore/Services/Tool/ToolIndexService.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cbf5b570beb05f76dd721595879468b49ee39559803a5f6fd04efe39575f1b"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPNodeExecutor.run (cyclomatic 21): HTTPNodeExecutor.run has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/HTTPNodeExecutor.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28ed1f9242d548febd1349d95429aee8ee9d41e47cd4a2a328a8f79e49bce45"}},{"ruleId":"D1","level":"warning","message":{"text":"HiddenAgentHandoffKind.run (cyclomatic 21): HiddenAgentHandoffKind.run has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Handoff/HiddenAgentHandoffRunner.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b4b581903a62f61e0ebbe7306e32df3f2d399ad4110e3c945c5c066dfc2337"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatHistoryList.filteredSessions (cyclomatic 21): ChatHistoryList.filteredSessions has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":4242}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fdf88cee4bd64b24c88a6f2a133dc091a60b53ee20210d02ee7a44444547f9"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.maybeGenerateFollowUps (cyclomatic 21): ChatSession.maybeGenerateFollowUps has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":5541}}}],"partialFingerprints":{"codehealthFindingId/v1":"324cce7d01de4fd661dbb90d646648eeb931d4ae875a2ae4f46e16823a0be5ed"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.modelPickerOptionsControl (cyclomatic 21): FloatingInputCard.modelPickerOptionsControl has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":3482}}}],"partialFingerprints":{"codehealthFindingId/v1":"0508c844ee08d67cc28bbd62f6559f17b029e27f98cb480fc2094890daf9e559"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeActivityGroupView.applyAssignedLayout (cyclomatic 21): NativeActivityGroupView.applyAssignedLayout 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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5890ca27c7101e5ffe0729233937b36b6aac10d4453b364da21defb999a4b4bd"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeChartView.applyInspectionStyle (cyclomatic 21): NativeChartView.applyInspectionStyle 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":"Packages/OsaurusCore/Views/Chat/NativeChartView.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b867bf8db57746e1e3b1f4b12f3968dcbb43f61b0ef498229e179994f74cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXEditor.deleteSheet (cyclomatic 21): XLSXEditor.deleteSheet 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"84da808da55542b24f8299cea935b41d652abd4d1f3ace986ba042cb4aeb40ba"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowSetupWizardView.steps (cyclomatic 21): WorkflowSetupWizardView.steps has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ea34b84380873a6d7812a9736243709df51b18a3c105260d265275bec34cc9"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowSecretsStep.oauthControls (cyclomatic 21): WorkflowSecretsStep.oauthControls has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a1036e3ec6226ff8a289389e5b3da17fb2eb2262e6ed657b4d8d2af9ac1f91"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.top-level code (cyclomatic 21): main.swift.top-level code has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/JSHost/main.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d108e4653a91488d1affdd8e6214a4ab572a3c6866575a49b10ea070921fe95b"}},{"ruleId":"D1","level":"warning","message":{"text":"Accessibility.swift.computeFocusedContent (cyclomatic 21): Accessibility.swift.computeFocusedContent has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"56986c2018788d99e3dd554c168c96fe7a9f9cada2956502656dd3c2e075b4a8"}},{"ruleId":"D1","level":"warning","message":{"text":"bridge.handleSendAttachment (cyclomatic 21): bridge.handleSendAttachment has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71841805c8e6c038ee73617719775195bef83b931e5c8329f5acead80625cf4"}},{"ruleId":"D1","level":"warning","message":{"text":"bridge.emitMessage (cyclomatic 21): bridge.emitMessage 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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d224bba4d428e84a52cdf9166a29c27c5c3bdda3684656b30341b5043646372d"}},{"ruleId":"D1","level":"warning","message":{"text":"BenchCommand.measureOnce (cyclomatic 20): BenchCommand.measureOnce 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9469f0924fdb025f9d54425bd3c099a333a34e545d8bd23b9af5a565faa3e29"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportCommand.loadAndCheck (cyclomatic 20): ImportCommand.loadAndCheck 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc658aeab790ece015fffa5ddbe4e520edd35bd495f013a598d90b5125216310"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusEvalsCLI.runOptimizeContext (cyclomatic 20): OsaurusEvalsCLI.runOptimizeContext has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/ContextOptimizeCLI.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac63aa39730f04a83125443451c617e3425669184f037c60d321425b718afe9b"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedArchiveExtractor.validateLocalHeader (cyclomatic 20): BoundedArchiveExtractor.validateLocalHeader has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75d1e8ee6b707eade759b16e7ac5c6ce1849a0ee20b598359d83032f807a5ce"}},{"ruleId":"D1","level":"warning","message":{"text":"DesignWorkingStore.init (cyclomatic 20): DesignWorkingStore.init 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":"Packages/OsaurusCore/DevelopmentDesign/DesignWorkingStore.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f683ac8ecf2bcb3eaded3b4d146649f0390ae8b0c02de50573a93e722c9b6e48"}},{"ruleId":"D1","level":"warning","message":{"text":"FileReadTool.spawnedOperationCancellationSupport (cyclomatic 20): FileReadTool.spawnedOperationCancellationSupport has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cd3b0c860f59bcf157255b58f629a24aa3e205cd64ba589037943968a4cc9b"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleDispatchEndpoint (cyclomatic 20): HTTPHandler.handleDispatchEndpoint has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12520}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a7be1be4547ecc257a7fae4ad8258a8c88c3d0665addd5b5ed43dec745fbb0"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleMCPCallTool (cyclomatic 20): HTTPHandler.handleMCPCallTool 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17425}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc94e482a86e120e97cdbfaaf0b4ac153896011f1075babad3e79e292b2e7e7"}},{"ruleId":"D1","level":"warning","message":{"text":"DeclaredReasoningEffort.nativeThinkingModes (cyclomatic 20): DeclaredReasoningEffort.nativeThinkingModes has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c974bd9b871048ba43408722e8b82874ea7c2af838321a6049167a8d68329941"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelDownloadService.makeAlert (cyclomatic 20): ModelDownloadService.makeAlert has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"978ab4084d064960b6440a90edab3634bfe5771c1a285d7148c78a4ffb38e870"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityLogStore.whereClause (cyclomatic 20): ActivityLogStore.whereClause has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"114af09a04635f9ef4c2d3f5713e4b653c39c47f0f32e694794da295ccb7fc86"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryDatabase.searchPinnedFactsText (cyclomatic 20): MemoryDatabase.searchPinnedFactsText has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (MemoryDatabase.searchEpisodesText) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"3684ecc896e4a5ef47b033e167be7476d2d83381b72dc5b19f1263769476e272"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryDatabase.searchEpisodesText (cyclomatic 20): MemoryDatabase.searchEpisodesText has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (MemoryDatabase.searchPinnedFactsText) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"441199e617cfe8c34b8684bbe883e320096936d76ce4cbba518bf1e4ec3198fc"}},{"ruleId":"D1","level":"warning","message":{"text":"RetainedToolResultStore.makeRoom (cyclomatic 20): RetainedToolResultStore.makeRoom has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/RetainedToolResultStore.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6c357ea33892e81157f0f5cc74057505b68d356bd85bb5985e41e544646685"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxWriteFileTool.execute (cyclomatic 20): SandboxWriteFileTool.execute 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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":2158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a493c443597f6e80b28e4f251a86ed7bde834298f829668c4218eadc8f45e5ed"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxInstallTool.execute (cyclomatic 20): SandboxInstallTool.execute has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3588}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1c280fd0aea753e4b177216129ae6f18407ea8da576714efe7ca081adc7a57"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.applyDefaultAgent (cyclomatic 20): ConfigApplier.applyDefaultAgent 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0152e0a6bcc2e56fe6caa8d86a4cec307ddf51cf5d87bc5ad70d1b0cc6e5ab9"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.patchToolSelection (cyclomatic 20): ConfigApplier.patchToolSelection has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"9817253be343a8d27124eba92c05d500b69a68c47e3b47af0c5c75138cfc8b37"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.addProvider (cyclomatic 20): ConfigApplier.addProvider has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":2315}}}],"partialFingerprints":{"codehealthFindingId/v1":"519e6b710d7d5879aba246ba94fb86288ff61500f5bfece1bac817b166713b27"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatWindowState.setupNotificationObservers (cyclomatic 20): ChatWindowState.setupNotificationObservers has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":3154}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af9cf055f508cac1bfcdbe3d7682bc8ca9c0dbf9687bb2b860fd902a9b2d457"}},{"ruleId":"D1","level":"warning","message":{"text":"FileDiff.partialPythonStringValue (cyclomatic 20): FileDiff.partialPythonStringValue 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":"Packages/OsaurusCore/Models/Chat/FileDiff.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"7135b7fa475d54abf5a025079d6f34408fdfbd4385dd7e096b628cfc62008010"}},{"ruleId":"D1","level":"warning","message":{"text":"FileDiff.stringValue (cyclomatic 20): FileDiff.stringValue has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/FileDiff.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"31596da96095c142891103d9a724d603031689a3a50c9e183ac6ed6a0acfa78c"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenResponsesSSEWriter.writeProviderEvent (cyclomatic 20): OpenResponsesSSEWriter.writeProviderEvent has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c93920fe883ea5e9843670a76ba869eed7d6d05156084c69c276cd6e6fd7661"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPickerItem.generateMockModels (cyclomatic 20): ModelPickerItem.generateMockModels 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":"Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"534c1d9a2700028b83dbdf02077d0839c899122633cda4727d651fb9eb262452"}},{"ruleId":"D1","level":"warning","message":{"text":"Template.document (cyclomatic 20): Template.document 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":"Packages/OsaurusCore/Models/Template/Template\u002BAgent.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9651fcb5a54a4d4554337c47fa1b51b98a8ad6c39989f69ddd66fec3f4cb0dd"}},{"ruleId":"D1","level":"warning","message":{"text":"BindingTypeResolver.type (cyclomatic 20): BindingTypeResolver.type has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/BindingTypeResolver.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf3f4e3079752548230ad6b8813ca007aaee9cb4d0f8dcd1417cef0304c3b89"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDiff.plainLines (cyclomatic 20): WorkflowDiff.plainLines has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: WorkflowDiff.plainLines::fieldName (cyclomatic 42) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c3895f095bef3563ba0abb184e156fb4eb1775df55194cb061967233c9a8ca"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeBlockMasker.mask (cyclomatic 20): CodeBlockMasker.mask 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":"Packages/OsaurusCore/PrivacyFilter/Core/CodeBlockMasker.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26826fc6e964df82c795fc16d0f854873e312d57978353d84f7eb407c30acbe"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelWebhookIngress.handleTaskPoll (cyclomatic 20): AgentChannelWebhookIngress.handleTaskPoll has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a56f0bb1b95cde7b10751272d0d4df803eba8655a124dac90148fd6a02487e"}},{"ruleId":"D1","level":"warning","message":{"text":"PairedDeviceChannel.wire (cyclomatic 20): PairedDeviceChannel.wire has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Attention/NotificationChannels.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a28863ea362b10b674bc2c973e1f991c6f2281fb1c0a4c584979d7312694851"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatImportApplier.rollBack (cyclomatic 20): ChatImportApplier.rollBack 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":"Packages/OsaurusCore/Services/ChatImport/ChatImportApplier.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f094878a7e389176010984ba5ed6ed47a911d22fe74803aa173daa7beddb03"}},{"ruleId":"D1","level":"warning","message":{"text":"MicroPerfEvaluator.runCancellation (cyclomatic 20): MicroPerfEvaluator.runCancellation 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":"Packages/OsaurusCore/Services/Context/MicroPerfEvaluator.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"697845a72177266fddcb43f9542b3c2e48e37ad3486f5fbd8e56369247303016"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXPackageArchive.readCentralDirectory (cyclomatic 20): XLSXPackageArchive.readCentralDirectory 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":"Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1ac8609a1346f0e3debe6ca0ae238fad798d7ab34cc1a113e4cb1a2c457a21"}},{"ruleId":"D1","level":"warning","message":{"text":"EventManager.replyWithWorkflowOutputIfNeeded (cyclomatic 20): EventManager.replyWithWorkflowOutputIfNeeded has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"6476f6e8c433a89a747820b3048cc5c643046937af3914669a3eb2c91d816eb4"}},{"ruleId":"D1","level":"warning","message":{"text":"EventManager.syncTask (cyclomatic 20): EventManager.syncTask 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":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cdf85d1cd7c0438226926c50d47970d53ab3339396e7062c4b8cd7842f4641"}},{"ruleId":"D1","level":"warning","message":{"text":"EventManager.ingestChannelMessage (cyclomatic 20): EventManager.ingestChannelMessage 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":"Packages/OsaurusCore/Services/Event/ChannelMessageEventSource.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2004640a0bc49181f2d09a4a1775bf27779637b0a6830dfd6dce1aeb6c91e3c"}},{"ruleId":"D1","level":"warning","message":{"text":"EventMatcher.rankChannelEvents (cyclomatic 20): EventMatcher.rankChannelEvents 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":"Packages/OsaurusCore/Services/Event/EventMatcher.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7194893f3613196e8edfa6773772cda619c0d19d9828c2bc77bb96ebaf63195a"}},{"ruleId":"D1","level":"warning","message":{"text":"WebhookEventSource.receive (cyclomatic 20): WebhookEventSource.receive has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/WebhookEventSource.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5c3b251abe3234e8d1f3a99aaf9f8001ba12e240919641f8057dc6371136e0"}},{"ruleId":"D1","level":"warning","message":{"text":"PhoneAgentEditing.apply (cyclomatic 20): PhoneAgentEditing.apply has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MobileConnect/PhoneAgentEditing.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4273716067236eec701086f557e9e844c1f34cc39eda49958cceafb16c8121d"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenizerBridge.compactCompletedDSV4ToolHistory (cyclomatic 20): TokenizerBridge.compactCompletedDSV4ToolHistory 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":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e620bfaef3caec569fe70df5658ed0c0bebdccb7d46230c50e08bd8bcbe3ec"}},{"ruleId":"D1","level":"warning","message":{"text":"InboundSharedRunBridge.resolveHostedSession (cyclomatic 20): InboundSharedRunBridge.resolveHostedSession has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"31734da76f6a9a3127cded7aeb6efb16f6cea297196701184545b3bea86d2e3c"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchReadability.fetchAndExtract (cyclomatic 20): SearchReadability.fetchAndExtract 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":"Packages/OsaurusCore/Services/Search/SearchReadability.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86a4db245dcb7abbfbee30c3bd00f463d5bd7c1c611c788855cc8cbc475c5f5"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudePluginInstaller.fetchArtifacts (cyclomatic 20): ClaudePluginInstaller.fetchArtifacts has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"695af4de57e79526c6896a6cb67ee00d35bf4b220587044dccb48027b944878f"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudePluginInstaller.rewriteSkillBody (cyclomatic 20): ClaudePluginInstaller.rewriteSkillBody 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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"4909bdd397ebcc53d7e1a899b378c070f6222d0a8ee2e043b717a2df59561b62"}},{"ruleId":"D1","level":"warning","message":{"text":"WhatsAppConnectionService.startPairing (cyclomatic 20): WhatsAppConnectionService.startPairing 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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"a516029dcda261c8ea073d9f25924324e6bdf7caf8065279a953e4422a77af82"}},{"ruleId":"D1","level":"warning","message":{"text":"ArchitectInlineEvaluator.runScoped (cyclomatic 20): ArchitectInlineEvaluator.runScoped has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/ArchitectInlineEvaluator.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2564c5fe5fba8bb6af8b14132edd7f4f6c806253be4e592a8b868ec9cd4f220"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserUseKind.run (cyclomatic 20): BrowserUseKind.run has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8e537cf4b5c22aeefdc7e7164cd992f44400650568d685166a4b6e9a67cef4"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageSubagentKind.run (cyclomatic 20): ImageSubagentKind.run 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":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"0524de7c411750f178b6e33b6f4df232d4c0e6e34801e8e0c3c0d51eb475ac3a"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.handleFileDrop (cyclomatic 20): FloatingInputCard.handleFileDrop 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5342}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b90ba796266d81aad2285fa705f5150c404ef173053bb11c405340b3c19383"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMarkdownTableView.updateCells (cyclomatic 20): NativeMarkdownTableView.updateCells 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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1be3c86aa97e3a9e186a35ae7e198a24a7a83e1d96e14b192585f472ea2a23"}},{"ruleId":"D1","level":"warning","message":{"text":"AnchoredCardCoordinator.handle (cyclomatic 20): AnchoredCardCoordinator.handle 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":"Packages/OsaurusCore/Views/Common/AnchoredCardPresenter.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4bf4842736401cbf255710c0ba5102527411f6b1d53d490e0aa19ea550eb8a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelDetailView.detailsCard (cyclomatic 20): ModelDetailView.detailsCard has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c660790b846cd06ef7865281c8bce09f74d2b1d9930580e5a7d988a76b4e6e0"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginConfigView.validateField (cyclomatic 20): PluginConfigView.validateField has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"988d934215e3b89edcf0b597eba09412e07fc27625e5d593fad4c04cdf06e9dc"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXEditor.dropCachedFormulaResults (cyclomatic 20): XLSXEditor.dropCachedFormulaResults has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abe78713fd2865bd373300e4f08a27b7948ad62932fa46b9fbaa0699a54bb24"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailMIME.addresses (cyclomatic 20): EmailMIME.addresses 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":"Packages/OsaurusCore/Services/Event/Email/EmailMIME.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1881fa36e73c7325156eeff2e9a5457b10ebb307674c59b5fc6ab6378b89baa5"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailMIME.split (cyclomatic 20): EmailMIME.split 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":"Packages/OsaurusCore/Services/Event/Email/EmailMIME.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3707d6532a3404de7da1cb6ce3aec843a508b1622e8794e52caa22f9d0084e"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPWWWAuthenticate.parseParams (cyclomatic 20): MCPWWWAuthenticate.parseParams 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":"Packages/OsaurusCore/Services/MCP/OAuth/MCPWWWAuthenticate.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4984d6fdb984b7fdb535fec73d6adff711d5f3ee27ca5ccaf52c4ba4b1c944"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportCommand.runRemove (cyclomatic 19): ImportCommand.runRemove 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"01367b2f1f02c87e3de71936f83283f9ff6a6e6f0563fbee9496de28e6a64282"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusEvalsCLI.runMatrix (cyclomatic 19): OsaurusEvalsCLI.runMatrix 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d6e50767a54d87e5a88192effd38431af60a962ed078e66e425b2e219eecbb"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalReport.formatAggregatedTelemetry (cyclomatic 19): EvalReport.formatAggregatedTelemetry 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"beeb098712f3c616119efd1948f98928e2307f46ee10cb63470df8be915745b1"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.scoreTranscriptAssertions (cyclomatic 19): EvalRunner.scoreTranscriptAssertions 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebb70d26d8bb691a0dd7ca61cbfb0ce1bad71fed56740e7c534cd03ebf7722d"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusBundle.contentHash (cyclomatic 19): OsaurusBundle.contentHash 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":"Packages/OsaurusRepository/ImportQueue.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"012ed70eaa05a813f48de944b2e50e9d01bf21901a4076e65bd8f371baad556f"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.decryptSecureCall (cyclomatic 19): HTTPHandler.decryptSecureCall 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9162}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e2b1f8f5ce4ec04c6b1913c8d700951ed716506ba46bdd6cb883075554394a"}},{"ruleId":"D1","level":"warning","message":{"text":"SecureChannelResponseEncryptor.write (cyclomatic 19): SecureChannelResponseEncryptor.write 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":"Packages/OsaurusCore/Networking/SecureChannelResponseEncryptor.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e944dc2617ec4daeaf664a33abdfba5a134b2eda1efe7b577d9b948ec47fbcfc"}},{"ruleId":"D1","level":"warning","message":{"text":"DeclaredReasoningEffort.parseReasoningModes (cyclomatic 19): DeclaredReasoningEffort.parseReasoningModes 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":"Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb2e1178d439e01252b7ea6eaf38a915b81cf01c8b1ea7e49a2884cb977d868"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubSkillService.buildManifest (cyclomatic 19): GitHubSkillService.buildManifest 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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dec63574416429d2bb364f2b5da4cf67c7d393dc41ce1d316c0d4261b81b5f"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalGenerationDefaults.repairOrnith15A3BManualMTPBlockIfNeeded (cyclomatic 19): LocalGenerationDefaults.repairOrnith15A3BManualMTPBlockIfNeeded 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":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e71e0c1217dd46a28fc82d548b403432b056101290289074dcc457e386d857b"}},{"ruleId":"D1","level":"warning","message":{"text":"RetainedToolResultStore.compactionContext (cyclomatic 19): RetainedToolResultStore.compactionContext 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":"Packages/OsaurusCore/Storage/RetainedToolResultStore.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6a36ddfe82ab2e819466ebc57727d21b430be4355ace4ca7bac9f4720d4eeb"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskQuery.matches (cyclomatic 19): TaskQuery.matches has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/TaskDatabase.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1786d671cbc441e26f6e638551a68a61658e51711b3a549649dc9db21ec34dfa"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentAdmissionLease.suspending (cyclomatic 19): SubagentAdmissionLease.suspending 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":"Packages/OsaurusCore/Subagent/SubagentAdmissionLease.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"232fb619aa3eb5135a32f37a752ff6d1d05d907a8bd8fb77730f72e5e6dd03b9"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentSession.localInPlaceCapacityDecision (cyclomatic 19): SubagentSession.localInPlaceCapacityDecision 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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e0aae9120134f16806c01b37efd15e0c2ec23fda30a63f76eac6f5915cd6c4"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateKnowledgeTicketTool.execute (cyclomatic 19): UpdateKnowledgeTicketTool.execute 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":"Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"93feeee13f4bd735c98a3b3db9852f6a5495b834642f62b9e2699dafcdbfefcc"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxSecretSetTool.execute (cyclomatic 19): SandboxSecretSetTool.execute 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":"Packages/OsaurusCore/Tools/SandboxSecretTools.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc73361880c5d811a6c5d41a26d16ca19c0cf8cd318ba93ab2054fea46ae684"}},{"ruleId":"D1","level":"warning","message":{"text":"CronParser.nextDate (cyclomatic 19): CronParser.nextDate 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":"Packages/OsaurusCore/Utils/CronParser.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"195330dc74d7be2466eb00186f685f3637352cb80e5972d4f6b8c7b6edadedf5"}},{"ruleId":"D1","level":"warning","message":{"text":"MockAppleScriptWorld.handle (cyclomatic 19): MockAppleScriptWorld.handle 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":"Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8402c1ae5219755bcba9ded184cb5a814572e4a137871fc0c174951f4e3415cd"}},{"ruleId":"D1","level":"warning","message":{"text":"AppleScriptToolDispatch.literalContractViolation (cyclomatic 19): AppleScriptToolDispatch.literalContractViolation has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"524bf263d4847ae15b25b7ccef1cf8c3e98e233b6f0befb142684de8f1b650d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenContextDistiller.focusedElement (cyclomatic 19): ScreenContextDistiller.focusedElement 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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"433a0a4218f69f32905f4ecb2cb7677057204ce0ddfe08edf5146484e17c9ef4"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.applyAgents (cyclomatic 19): ConfigApplier.applyAgents 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab8418f60e640503bf7961c50b6f6b3133fa124971e1bb19cdde596c1ea621a"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.applyChannels (cyclomatic 19): ConfigApplier.applyChannels 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c113e391af6757aa268d42750fb7de312c275bb2b7dde1f86b6ecbcca8f106"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelManager.mergeAvailable (cyclomatic 19): ModelManager.mergeAvailable 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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92fa707288b868e75a2b3d127f600a19c900c4826016f0513e53ef3e508b166"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelManager.refreshAutomaticModelUpdates (cyclomatic 19): ModelManager.refreshAutomaticModelUpdates 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":"Packages/OsaurusCore/Managers/Model/ModelUpdatePolling.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"155b06d8af98bb9b9a815c0cc5c765da01bd4657a130f4e1e9c9f6ee81071542"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCapabilityReadiness.subagent (cyclomatic 19): AgentCapabilityReadiness.subagent 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":"Packages/OsaurusCore/Models/Agent/AgentCapabilityReadiness.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1009ccc4921a95cef303c6c01934808eebe77c8a9951dcfb2d034a599388aa0f"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelCustomHTTPResponseMapping.validatePath (cyclomatic 19): AgentChannelCustomHTTPResponseMapping.validatePath 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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelCustomJSONModels.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab2f9ed2d74537818aee4c137ccc3b8901b7d1ed2905954b1571ec94b14e564"}},{"ruleId":"D1","level":"warning","message":{"text":"MLXModel.localBundleWeightSizeBytes (cyclomatic 19): MLXModel.localBundleWeightSizeBytes 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":"Packages/OsaurusCore/Models/Configuration/MLXModel.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"029a8b17f33a92be49a57deb48ed556cc4dd5bc7e79d9628c24217456b59dfbc"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.prepareRequest (cyclomatic 19): AgentChannelCustomJSONRunner.prepareRequest has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: AgentChannelCustomJSONRunnerError.errorDescription (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"df88c2148f347d0a60c390d07e6b16e6c9ea51fe7169050a097fd2bd1d2f6fdf"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.renderedURL (cyclomatic 19): AgentChannelCustomJSONRunner.renderedURL 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. This is NOT this file\u0027s highest cyclomatic complexity: AgentChannelCustomJSONRunnerError.errorDescription (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4b6ada8f28f50c152b59a1ec501380417de0541bd62a2d6e39c5ba985ba1c6"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.blockedHostReason (cyclomatic 19): AgentChannelCustomJSONRunner.blockedHostReason has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: AgentChannelCustomJSONRunnerError.errorDescription (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9d0d823be20985621cdecf872ff2f415bd2faf883aef29472bf1f7903b29a5"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelWebhookIngress.handleInbound (cyclomatic 19): AgentChannelWebhookIngress.handleInbound 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"286e632b6280e637fbbd646cfb5ffd35ac05b62b82ecd53a643b96d90a784fa3"}},{"ruleId":"D1","level":"warning","message":{"text":"OwnerDeviceAccessHost.redeem (cyclomatic 19): OwnerDeviceAccessHost.redeem has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa757315fcb9edf473e868a7e3d24de6be2805016116fd695be756b7ca47ec8c"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTaskState.classify (cyclomatic 19): AgentTaskState.classify 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":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a7c0dd50c0ef8ce409a798acab48904241f4cd6723c17cefaf477590ec8bd4"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemPromptComposer.appendProjectMemory (cyclomatic 19): SystemPromptComposer.appendProjectMemory 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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c9b2f23e938ab9cfacc4f62e01e368e504e845fcab1a2f95745e57cbc556e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolResultMediaBridge.mime (cyclomatic 19): ToolResultMediaBridge.mime has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ToolResultMediaBridge.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a96dd378db552a4d219ddb1e5e2b3866bd1b1f393156e2f3b1f8d2e95cdeb29"}},{"ruleId":"D1","level":"warning","message":{"text":"CredentialStore.save (cyclomatic 19): CredentialStore.save 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":"Packages/OsaurusCore/Services/Credentials/CredentialStore.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10eeb7038409ae2cb8565d0f800bb93530dfe27e4a838b1a9bc65ef51d0f1d9"}},{"ruleId":"D1","level":"warning","message":{"text":"CSVRowParser.parseRows (cyclomatic 19): CSVRowParser.parseRows 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":"Packages/OsaurusCore/Services/Documents/CSVRowParser.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4f7ae42741679cfbd037f4a5271c729b9441a72d376a1396554b68d7837d47"}},{"ruleId":"D1","level":"warning","message":{"text":"FolderEventSource.processCurrentState (cyclomatic 19): FolderEventSource.processCurrentState 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":"Packages/OsaurusCore/Services/Event/FolderEventSource.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad3b867e06195112fd6844f9c7c3f9a51d6523f3e5f23b4d89d6e789ccaafae"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONMemberScanner.valueEnd (cyclomatic 19): JSONMemberScanner.valueEnd 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":"Packages/OsaurusCore/Services/Inference/LocalGrammarTokenizerProbe.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bb49181f3eda3f768b10f1fcf53129356246410ba262e83bde04e2b71cc5fe"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponsesToolChoiceContract.validate (cyclomatic 19): ResponsesToolChoiceContract.validate has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"109c580bc90fc18bded8e00ea414f089f9ce2e393004b58f36c16d14ed4a8949"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponsesToolChoiceContract.enforce (cyclomatic 19): ResponsesToolChoiceContract.enforce 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":"Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f77a75927be086d5f96538923f6be77e2165b097953be1e4dacbc6625ea172"}},{"ruleId":"D1","level":"warning","message":{"text":"StructuredOutputSchema.dropNullOptionals (cyclomatic 19): StructuredOutputSchema.dropNullOptionals 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":"Packages/OsaurusCore/Services/Inference/StructuredOutput.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41ac5597e038163770ceeac083d53642f024cac7180c361fdee99190930d9f0"}},{"ruleId":"D1","level":"warning","message":{"text":"PhoneAgentEditing.patch (cyclomatic 19): PhoneAgentEditing.patch has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 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":"Packages/OsaurusCore/Services/MobileConnect/PhoneAgentEditing.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a265b3a1b79f4d35d4b903a32bd9e6b46298949be216e22a1d9b78a3c3dde184"}},{"ruleId":"D1","level":"warning","message":{"text":"OnboardingFirstRun.runRequest (cyclomatic 19): OnboardingFirstRun.runRequest 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e394a8f4e0251258c7d6a8f3b06c795eacb64f91c70d88ecc338d6b4dfdec0"}},{"ruleId":"D1","level":"warning","message":{"text":"OnboardingPanel.fillFirstTask (cyclomatic 19): OnboardingPanel.fillFirstTask 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingPanel.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2102511fa2a74bf03755789bfab16a0fdbd9e93e47ec73789985d45c1eaab2b"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.enforcingToolUseResultPairing (cyclomatic 19): RemoteProviderService.enforcingToolUseResultPairing 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":4550}}}],"partialFingerprints":{"codehealthFindingId/v1":"d641ee82e956ecf01010f4355cc1ed4926a74ccbe06e367da793dfca7a9f9fc6"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchEngine.raceFree (cyclomatic 19): SearchEngine.raceFree has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 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":"Packages/OsaurusCore/Services/Search/SearchEngine.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e8ae881fcb2c9870bd5d09d74761e8ae40cb7306aad2bec464a780e8f0845f"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.submit (cyclomatic 19): TaskScheduler.submit 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":"Packages/OsaurusCore/Services/Task/TaskScheduler.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4399df45d1d485cbc611c5f0cd1b9bfa17fc2354344ed1cf7c87e16942c2e41e"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowsRegistryAPIClient.registryTemplate (cyclomatic 19): WorkflowsRegistryAPIClient.registryTemplate has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: WorkflowsRegistryAPIError.errorDescription (cyclomatic 35) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"481f004493db76e7a0f4dede092d3ee306ba673dd088e0e85fc48ab4062801e4"}},{"ruleId":"D1","level":"warning","message":{"text":"WhatsAppConnectionService.normalizeInbound (cyclomatic 19): WhatsAppConnectionService.normalizeInbound 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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e5dc2447da212463698e14bc9407526a2be7575c9fa05ad3f7009efefcfc5e"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPNodeExecutor.fetch (cyclomatic 19): HTTPNodeExecutor.fetch 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":"Packages/OsaurusCore/Services/Workflow/HTTPNodeExecutor.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d53446bceaf9e74d46ab813f4a0a9459f2d9c3f041150a74c1c6ec077e9adc5"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaNodeExecutor.runRemote (cyclomatic 19): MediaNodeExecutor.runRemote 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":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a842d624b5701a24c280c46b7226203685b4f61f0fcd243bcc3e9bf8c7ad3d9"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowCallFeed.apply (cyclomatic 19): WorkflowCallFeed.apply has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowCallFeed.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7971c1ea996296acc70bbfed1d0b60b7050dd97f577bef798cc7b5ddd463f88"}},{"ruleId":"D1","level":"warning","message":{"text":"DatabaseImport.parseDelimited (cyclomatic 19): DatabaseImport.parseDelimited 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":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d651869846af7e5d561d6db3787d1bf64d01451da197925081f7affd1299cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDraftTool.execute (cyclomatic 19): WorkflowDraftTool.execute has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"94297ff07d1da49c5b608ecce713683ddc5df53adbb8c625e75e571c0bd7792e"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionSidebar.workspaceSections (cyclomatic 19): ChatSessionSidebar.workspaceSections 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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06301cd85ce5c240f66a3561e0ddae6fe77d02fe99c78fce8838bf9e520846c"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.sandboxToggleChip (cyclomatic 19): FloatingInputCard.sandboxToggleChip 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4039}}}],"partialFingerprints":{"codehealthFindingId/v1":"36283c00c11d5fae3886638d7bd6c7ffb7a2397d4f2bbddd16d355d1333b63f7"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.catalogMediaComposerChips (cyclomatic 19): FloatingInputCard.catalogMediaComposerChips 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5491}}}],"partialFingerprints":{"codehealthFindingId/v1":"8278ca7e14d69ebb97c4e9814a778daaec60591fd39fae1e2cf62166ab68f723"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeCodeBlockView.configure (cyclomatic 19): NativeCodeBlockView.configure 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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"a290a5684d13d74dace3c4257cda77b783cf5e441605c6a402830cd0e7069bf2"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMarkdownView.scheduleImageLoad (cyclomatic 19): NativeMarkdownView.scheduleImageLoad 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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e35fc280642a6e798084c944d472ffaaa3b920a7e8622891ffe11ddadbd6ab"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeToolCallRowView.markdownForConfigResult (cyclomatic 19): NativeToolCallRowView.markdownForConfigResult 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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"522b0606562a0ba1645aedbbc66ccf2d8d4f35207f8123dc621befd8ad3901d7"}},{"ruleId":"D1","level":"warning","message":{"text":"OverviewTab.workflowSection (cyclomatic 19): OverviewTab.workflowSection 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. This is NOT this file\u0027s highest cyclomatic complexity: OverviewTab.systemDetailLabel (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"8514903b18298ac425bbd527cbee8eaf283a87d1af651fb5d0d473a33c441d58"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPickerRow.body (cyclomatic 19): ChatPickerRow.body has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"f861b6b0e989e4e2148454958b609e8cffad0f42af0a03a4505e79b129d8b252"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsView.body (cyclomatic 19): SkillsView.body 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":"Packages/OsaurusCore/Views/Skill/SkillsView.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"998ec8e3dccd9b7f50659bc32def9411fdac414f3607b962f8ce2bb0cb94658f"}},{"ruleId":"D1","level":"warning","message":{"text":"AccessibilityManager.traverse (cyclomatic 19): AccessibilityManager.traverse 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"6835e47ee030e2561507dc1076c3b8013809057a2cf97305931f1209f3f464fe"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogComponentSpec.defaults (cyclomatic 19): CatalogComponentSpec.defaults 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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/DesignLibraryDefaults.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed8f321df151079f8e2787da3956b093c70fd27d90f4e2cff0b42e1cf62108e"}},{"ruleId":"D1","level":"warning","message":{"text":"DOCXEditor.applyParagraphRun (cyclomatic 19): DOCXEditor.applyParagraphRun 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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b6c54f3fe16cc56d63a2a99ca00b7975cd2505963ad4ecce1c81d066ba954f"}},{"ruleId":"D1","level":"warning","message":{"text":"DOCXEditor.insertParagraph (cyclomatic 19): DOCXEditor.insertParagraph 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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc74dcb778fa475d5decc2e5ccc16dd2c9003b30eb650e45ec23e216b59c2b09"}},{"ruleId":"D1","level":"warning","message":{"text":"PPTXEditor.deleteSlide (cyclomatic 19): PPTXEditor.deleteSlide 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":"Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"b105946c1e3d89a7392383c7bb16e1861bf424b726a35d5d118cc27ae3a60011"}},{"ruleId":"D1","level":"warning","message":{"text":"XMLFeedReader.parser (cyclomatic 19): XMLFeedReader.parser 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":"Packages/OsaurusCore/Services/Event/Feed/FeedParser.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c04b0fc177295fafe1ae0baca673ec8c48694e22a7a14a49e9477e715c4362c"}},{"ruleId":"D1","level":"warning","message":{"text":"SaveAgentTemplateSheet.preview (cyclomatic 19): SaveAgentTemplateSheet.preview 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":"Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"9112db4587fead7a834bc3b73fd317c15bdd12a24ab901831079b01ead51d588"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowSecretsStep.row (cyclomatic 19): WorkflowSecretsStep.row 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5dbf46e12f5ec96cf1333d1ce86d85deacb95d324897ee072f0122db9f97915"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusEvalsCLI.forensicsLabel (cyclomatic 18): OsaurusEvalsCLI.forensicsLabel 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d470a4f697a4361365e653336c4c996bcbafabe5f8f6e63c9e88959ea68760"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runComputerUseCase (cyclomatic 18): EvalRunner.runComputerUseCase 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. This is NOT this file\u0027s highest cyclomatic complexity: EvalRunner.dispatchCase (cyclomatic 33) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bf3f17c15445c4202699b11c149666f4feaa17f7db9faf37ce8adbbe5eca5b"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.scoreBrowserUseLane (cyclomatic 18): EvalRunner.scoreBrowserUseLane has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d293d5390945982763bb8a725516f7384c9d3b4602188bf8c1e38450887588d"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedArchiveExtractor.validatedPath (cyclomatic 18): BoundedArchiveExtractor.validatedPath 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":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c0bed1032528a5fc8000d7a6f09ea0b7ba84cf533cc56db5207d637e19d41d"}},{"ruleId":"D1","level":"warning","message":{"text":"MinisignVerifier.parseSignature (cyclomatic 18): MinisignVerifier.parseSignature has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/MinisignVerifier.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc427d59463b015bf6a6a6c8b57c8470ec6885b2a0dbeeae0eef34f17cf22645"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogAssignmentRow.body (cyclomatic 18): CatalogAssignmentRow.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3bbfd4572351a710aa44f6996e116c7e22b7ab014cc6994b7b01980e341215"}},{"ruleId":"D1","level":"warning","message":{"text":"FileWriteDocumentRouting.workbook (cyclomatic 18): FileWriteDocumentRouting.workbook 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":"Packages/OsaurusCore/Folder/FileWriteDocumentRouting.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87a34f9b0d1e477b36a77335b8ad2c06bfe5acc562dc76c71705ba02cca150a"}},{"ruleId":"D1","level":"warning","message":{"text":"FolderToolHelpers.resolvePath (cyclomatic 18): FolderToolHelpers.resolvePath 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e04559cc508c0cf4166a809f4b13c1b747fb74c6c00d12ca3cc21b0907b4f0"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleMemoryIngest (cyclomatic 18): HTTPHandler.handleMemoryIngest 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4703}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab140d901548fd407e977a97610cb88212b3f7632df62123de85acc3a9d5a97a"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleHostedWorkflowEndpoint (cyclomatic 18): HTTPHandler.handleHostedWorkflowEndpoint 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7261}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f0feb79fd57802e06fed0efb9f1b9951c62f1ef59428a764c4bfdfd4ebab2b"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalModelLocator.reconciledRegistry (cyclomatic 18): ExternalModelLocator.reconciledRegistry has cyclomatic complexity 18 (threshold 15). Of this number, 17 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":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e93adb8f5ecc0fff5016fc5cedc2e056fad8e69559edce509fa5c8cae4ca3b"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectDownloader.download (cyclomatic 18): DirectDownloader.download 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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8e9281823e48bd6ee5a9c31077f9e29adfa57145e68565abdcbca3cef4346c"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentBatchAdmissionPlanner.planInternal (cyclomatic 18): SubagentBatchAdmissionPlanner.planInternal 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":"Packages/OsaurusCore/Subagent/SubagentBatchAdmissionPlanner.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b52b8cc7fcf81d173f788fbae234fd4eb196ea358bec80c812c53551fe23efb"}},{"ruleId":"D1","level":"warning","message":{"text":"CapabilitiesLoadTool.execute (cyclomatic 18): CapabilitiesLoadTool.execute 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":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"4333fa951c44b1976913446f246e0ffac141da5e011fa11d52be76acc8a14f54"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenContextSnapshot.render (cyclomatic 18): ScreenContextSnapshot.render 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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextSnapshot.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd75e55c151cc4339df5881ac41936e84a1cedb5eb19ecae2bee49eef6c5ff1"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigDiff.walk (cyclomatic 18): ConfigDiff.walk has cyclomatic complexity 18 (threshold 15). Of this number, 16 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigDiff.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ee45937e50c6104cacd54ee6f7654759285595abebfcde5873e554d8e325b1"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigManifest.jsonSchema (cyclomatic 18): ConfigManifest.jsonSchema 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac5d0fc756eb5d2840dc4d3ee5c51e7127f85a17f2563ce778feae860da247b"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigPlanner.planDelegation (cyclomatic 18): ConfigPlanner.planDelegation 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1730}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1e996641df1dd019a629d392ca9414b4aaaaf2c77cbffdca8544135c4596c9"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionImporter.parse (cyclomatic 18): ChatSessionImporter.parse 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":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"356dcfa5e6c0b7bbacf4040ad449aae1550798da4a9c7430c308e964c237b5a9"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelManager.loadOsaurusAIOrgModels (cyclomatic 18): ModelManager.loadOsaurusAIOrgModels 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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc73a4b1e8c26be4f85c25ed667f420f4aa9d72aae8d6f0627c9d1f5634dc443"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusEvent.sourceSummary (cyclomatic 18): OsaurusEvent.sourceSummary 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":"Packages/OsaurusCore/Models/Event/OsaurusEvent.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7d0bdfd7a8280acc4a4cf6f2f0c6c531a26bd42fa9c657836b26f51f2822d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityFilterToken.tokens (cyclomatic 18): ActivityFilterToken.tokens 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":"Packages/OsaurusCore/Models/Insights/InsightsScope.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ac7c6e7b4c69afdc404d7f519761977350a34cbbb8f7bda265ec486dc168e1"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowCondition.issues (cyclomatic 18): WorkflowCondition.issues 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":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"448aafd9a8df662ef6dba1ebaaecaba11dc600f6334837d5a8818cef9e059b77"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowRequirementsDeriver.derive::visit (cyclomatic 18): WorkflowRequirementsDeriver.derive::visit has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowRequirementsDeriver.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35eebc1ed8b91565b8702fa2372a0cef9b136534bf674b64560231a81bbb5a2"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelConnectionService.diagnostics (cyclomatic 18): AgentChannelConnectionService.diagnostics 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9359dbfc5b0f3a398aa225c9278553e72e7051d3a49457e04af4030879413cc5"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCreationEvalHarness.run (cyclomatic 18): AgentCreationEvalHarness.run 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":"Packages/OsaurusCore/Services/AgentCreation/AgentCreationEvalHarness.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae5ab546c08ad3b2442b42e8b84ae7db01f14d54eb53d0190bc6f2dc4db631b"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceDelegationEvaluator.run (cyclomatic 18): WorkspaceDelegationEvaluator.run 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":"Packages/OsaurusCore/Services/AgentDelegation/WorkspaceDelegationEvaluator.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"05dc215bae402ded50150e887da3abee4528e5e148aa37f2f1830a7fb9a38144"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextCompactionService.summarize (cyclomatic 18): ContextCompactionService.summarize has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"def5d992e663e7b84b02f34098093c81734bdf3634a35f51a22ad51c5671a10f"}},{"ruleId":"D1","level":"warning","message":{"text":"AppleScriptEvaluator.run (cyclomatic 18): AppleScriptEvaluator.run 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":"Packages/OsaurusCore/Services/Context/AppleScriptEvaluator.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6f35aed6967e0f5899ed8805a4a445598c904eb71ce6ee9050f17c31ba049c"}},{"ruleId":"D1","level":"warning","message":{"text":"SignInSessionActions.status (cyclomatic 18): SignInSessionActions.status 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":"Packages/OsaurusCore/Services/Credentials/SignInSessionActions.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1e20b21dbb4414ecb772308e5bc442e82a9f9c94fb2406a6d4d0ed66b0254f"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentEditService.prepare (cyclomatic 18): DocumentEditService.prepare has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/DocumentEditService.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"028aa044874fff795950c602ab32543c516ede3c78c384b9d797528198e23a94"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationHistoryFeed.merge (cyclomatic 18): AutomationHistoryFeed.merge 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":"Packages/OsaurusCore/Services/Event/AutomationHistoryFeed.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"80040fd835ad73f6acfdf0152df708d3f61f61a47dcfae01c5f5db17e3e26a59"}},{"ruleId":"D1","level":"warning","message":{"text":"FileChangeJournal.convertSandboxChanges (cyclomatic 18): FileChangeJournal.convertSandboxChanges 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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9cb6d61dd15ceb69ea98ced803741bfda0fd34a56693d209e809460e19cd81"}},{"ruleId":"D1","level":"warning","message":{"text":"FileChangeJournal.apply (cyclomatic 18): FileChangeJournal.apply has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal\u002BRevert.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e056b3c3cc78a01315302ed41295163ed228052884cfb502431a69bf0266376"}},{"ruleId":"D1","level":"warning","message":{"text":"FileDiffEngine.lineDiff (cyclomatic 18): FileDiffEngine.lineDiff has cyclomatic complexity 18 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8522b390297031a236e35ebbf1c403f8a9aa71f62cdf90535decc5e255c4935"}},{"ruleId":"D1","level":"warning","message":{"text":"IMessageHelperInstaller.machOArchitectures (cyclomatic 18): IMessageHelperInstaller.machOArchitectures has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9da9aaeb2983ef8d697609197d5868c7f408a7ea2377fad2c556ecb0833ed4"}},{"ruleId":"D1","level":"warning","message":{"text":"StructuredOutputSchema.matchesType (cyclomatic 18): StructuredOutputSchema.matchesType has cyclomatic complexity 18 (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":"Packages/OsaurusCore/Services/Inference/StructuredOutput.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8de0021192a325bed2c58a1deaed473f4c5f0aac3cdb0e3f8baf27292990bb"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPProviderProbeService.mapFailure (cyclomatic 18): MCPProviderProbeService.mapFailure has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"255c8a7381318edfbc855b05874cf8cf1187aece10a6f4821dcc38142906c743"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginProcessHostCallbacks.handle (cyclomatic 18): PluginProcessHostCallbacks.handle has cyclomatic complexity 18 (threshold 15). Of this number, 16 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":"Packages/OsaurusCore/Services/Plugin/PluginProcessHost.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"475490957f1e5298ac3a885bb74c4e6f50c8208c0546da405f745820625a601d"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.streamResponses (cyclomatic 18): RemoteProviderService.streamResponses 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"03420a4eb1257884206ef4ceaae112302536fae8bcd1f77f6c80059ef55b2a39"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudePluginInstaller.extractSiblingSkillNames (cyclomatic 18): ClaudePluginInstaller.extractSiblingSkillNames has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7805ae72003161ec5d046fe10e5bae7a6d43429f9dd2f8775517b7c23191512"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncRunProgressContract.snapshot (cyclomatic 18): SyncRunProgressContract.snapshot 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":"Packages/OsaurusCore/Services/Sync/SyncRunProgress.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d80906f982d722f0c9bb68d6d3b37d1ddbd45007e5847e7935e281ccf10041"}},{"ruleId":"D1","level":"warning","message":{"text":"OAuth2ConnectionFlow.signIn (cyclomatic 18): OAuth2ConnectionFlow.signIn 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":"Packages/OsaurusCore/Services/Workflow/WorkflowConnections.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df5d40b79d2569577e1e4b628c2421e7a0cd18f6e9a1d022f59194a9ac153f0"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDraftStore.applyArchitectPatch (cyclomatic 18): WorkflowDraftStore.applyArchitectPatch has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/Workflow/WorkflowDraftStore.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"24730dc2e847fcb24de461fc50f8baf51bdb8aeabab48616087b63498efaa9f4"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageSubagentKind.localPermission (cyclomatic 18): ImageSubagentKind.localPermission has cyclomatic complexity 18 (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":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a2f151752792bc2df66e7b80d18895829d66512ad409b208afb3bb0f457566"}},{"ruleId":"D1","level":"warning","message":{"text":"DatabaseImport.isDecimalLiteral (cyclomatic 18): DatabaseImport.isDecimalLiteral 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":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"9757ca6a21900bc2da77f162afa0c87976cbedd5be27c5d85efb360a914b214f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatEmptyState.greetingBlock (cyclomatic 18): ChatEmptyState.greetingBlock 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":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c447588b08a01af38ee2e936d44a93e4b7150f750fbde45fe73979115334369"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionRow.sourceBadgeHelp (cyclomatic 18): SessionRow.sourceBadgeHelp has cyclomatic complexity 18 (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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":3695}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5430fd8676c51bc3feed4f6be4d2e3b18c6aa6314c778bb81e2851219ed575f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatHistoryList.body (cyclomatic 18): ChatHistoryList.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":4279}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d58021f5d6c09b6f52795eef7852c5db8367dfb74153a6c2112b4b2d58887f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.runRemoteImageGeneration (cyclomatic 18): ChatSession.runRemoteImageGeneration 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7055}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da15fd2ac2002459afb577a93ef77938ddb751b8a91767bd12f3d9be33b4586"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.handleBuiltInSlashAction (cyclomatic 18): FloatingInputCard.handleBuiltInSlashAction 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":2249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f53effff83cd2544680915a85cdef6152b4813da45228624b112fee77239197"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMarkdownTableView.relayoutImpl (cyclomatic 18): NativeMarkdownTableView.relayoutImpl 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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"2947ecf8119e92c281a2a5babbbfadb30a4ae342ed552f12db02310e84907438"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMarkdownView.configure (cyclomatic 18): NativeMarkdownView.configure 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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"656e384a876891e537cf602e9981779e7f32fc1c3f73b4fbc9a86112c9a4952d"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeThinkingView.configure (cyclomatic 18): NativeThinkingView.configure 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":"Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"693f5357cae9703eb27aa07edd7b49acd166e1ae24cf301741e16052a38b01c6"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsSheetFooter.body (cyclomatic 18): SettingsSheetFooter.body 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":"Packages/OsaurusCore/Views/DesignSystem/SettingsSheet.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"685eaf9bc88a9282e3bfa6ca7d78028aecec4b26239765369e5059923d2d4f11"}},{"ruleId":"D1","level":"warning","message":{"text":"OverviewTab.commonFacts (cyclomatic 18): OverviewTab.commonFacts 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. This is NOT this file\u0027s highest cyclomatic complexity: OverviewTab.systemDetailLabel (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"2735740d5a114c6c85d1601819b5a1e1e0ec2ff25e5e9c69571be2dc5e39fc4a"}},{"ruleId":"D1","level":"warning","message":{"text":"OverviewTab.whereRows (cyclomatic 18): OverviewTab.whereRows 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. This is NOT this file\u0027s highest cyclomatic complexity: OverviewTab.systemDetailLabel (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a701d257eb8e7c0369b3c8a304dff39407a42a9363a40b923287fc82795013"}},{"ruleId":"D1","level":"warning","message":{"text":"OverviewTab.interactionSection (cyclomatic 18): OverviewTab.interactionSection 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. This is NOT this file\u0027s highest cyclomatic complexity: OverviewTab.systemDetailLabel (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0031d9863a44b1310c4abd66b8c49fde7312ec76f9418d9000b952d4a1ee93d"}},{"ruleId":"D1","level":"warning","message":{"text":"OverviewTab.whoRows (cyclomatic 18): OverviewTab.whoRows 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. This is NOT this file\u0027s highest cyclomatic complexity: OverviewTab.systemDetailLabel (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd22d2d446f1b49df51f66cdfe31cf5bfd0dbc6ce4cb292a34617fdf3f83b10"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeView.body (cyclomatic 18): KnowledgeView.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2022a60f18316ade1a20dfc7805fef1d42064f9f1d0cd67be077bb5fecbaae1e"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryView.diagnosticHeadline (cyclomatic 18): MemoryView.diagnosticHeadline 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":"Packages/OsaurusCore/Views/Memory/MemoryDiagnosticsViews.swift"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8421e16183281d6d971d0d8cc5823705855fa46026b58c5339c3d02382b78a8"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRowCellView.layout (cyclomatic 18): ModelRowCellView.layout 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":"Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"096b3bac26e2e6f7a51c0985f78a4b5236deeb5ae6db6767e803129f243e362b"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginConfigView.readConfig (cyclomatic 18): PluginConfigView.readConfig 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":"Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8cf4823263b20206f506303f7e26cc802e8b679c7e100fbc929d6aab24ff70"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolsManagerView.allToolsTabContent (cyclomatic 18): ToolsManagerView.allToolsTabContent 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":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76227eb35e921480bcfeb3e19532c3cc5e9f1c5c7bdf6eb14a13c0f0eb2d5e8"}},{"ruleId":"D1","level":"warning","message":{"text":"TasksView.lane (cyclomatic 18): TasksView.lane 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":"Packages/OsaurusCore/Views/Task/TasksView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3cc95f9ea44a18c242d66275023092fe65afd799258f0373556a7163f66f5f"}},{"ruleId":"D1","level":"warning","message":{"text":"DesignLibraryPruning.pruned (cyclomatic 18): DesignLibraryPruning.pruned 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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/DesignLibraryPruning.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fd33d592aa04a988c3f32ee44f391b3be2dc1db7efaa9549fd63c66a4dd898"}},{"ruleId":"D1","level":"warning","message":{"text":"AssignedMenuPanelPresenter.show (cyclomatic 18): AssignedMenuPanelPresenter.show 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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a3b8a89dbb766701e042e2034886b002db574bc5139172d10f6d5eba7a8c8c"}},{"ruleId":"D1","level":"warning","message":{"text":"AssignedNativeMenuItems.menuRows (cyclomatic 18): AssignedNativeMenuItems.menuRows 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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"b247870b3d1d0385c850275530bca16052ea37f5633456701f67b425bc052de7"}},{"ruleId":"D1","level":"warning","message":{"text":"LoginAssertion.verify (cyclomatic 18): LoginAssertion.verify 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":"Packages/OsaurusCore/Services/Auth/LoginWithOsaurus/LoginAssertion.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7bffeea86a9e5b1dd745a575b176ddb4725663f88c6b8063b822a0573a94ce"}},{"ruleId":"D1","level":"warning","message":{"text":"DOCXEditor.replaceText (cyclomatic 18): DOCXEditor.replaceText 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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66ae5a7518f466e780b27629cadd8f4dbd7901576dfc78f2e406e31c21485d8"}},{"ruleId":"D1","level":"warning","message":{"text":"PPTXEditor.replaceText (cyclomatic 18): PPTXEditor.replaceText 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":"Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1ee7d376b422cf38d670919cc7fb09693026bc3407ca40eafa764c79acb23c"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXEditor.setCell (cyclomatic 18): XLSXEditor.setCell 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39d9d3a921f59f7e82ed6752cbb20a9fb2e308eb0d5d1ece5b7452b490a71cc"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXEditor.shiftAnnotations (cyclomatic 18): XLSXEditor.shiftAnnotations 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9ac8f263713353eb3a33e9d1802ec8cd0188f67df5d56080510f8aeca1f60d"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageCatalogSource.item (cyclomatic 18): ImageCatalogSource.item 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":"Packages/OsaurusCore/Views/Model/Catalog/ImageCatalogSource.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f23db3def8dc7280337d430703045c6d58f67295a3e3fdb6884a695c32c1e13"}},{"ruleId":"D1","level":"warning","message":{"text":"ArchitectSidebarPanel.designSections (cyclomatic 18): ArchitectSidebarPanel.designSections 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":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"762d542b36c409f8620f9a0789879765e92b8ce1cd527c77989706a92beb18f8"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowBundleSetupView.stepContent (cyclomatic 18): WorkflowBundleSetupView.stepContent 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afc27720d0bb84fe601b4a9469e9c085c2f8dd91c3b6539639685425879f2e8"}},{"ruleId":"D1","level":"warning","message":{"text":"PullCommand.execute (cyclomatic 17): PullCommand.execute 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc618682cb89e593907a5572b9aa04f0b8a7d5b63ba2f6c9b8766d09440bf9e"}},{"ruleId":"D1","level":"warning","message":{"text":"InstallationDiagnostics.classify (cyclomatic 17): InstallationDiagnostics.classify 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/InstallationDiagnostics.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42187ecc1f5688ed4f30b280468db986870781d629fd0709cdfa63975d45296"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalDiff.classifyPerf (cyclomatic 17): EvalDiff.classifyPerf 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"0046c819bad37243ad758fdea1553da5483872cb172365ee107d8a749cd2d9c1"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.scoreDbState (cyclomatic 17): EvalRunner.scoreDbState 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f06b470a758b07d4ffcf18faa2bdaf8c029a9a723aad1d730d0e4659e38733"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.scoreComputerUseLane (cyclomatic 17): EvalRunner.scoreComputerUseLane has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d8812d15f38aaad1a4d89768c4705b8f2afcc7f99f0495ff8029a3331ebba1"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRemoteProviderBootstrap.preset (cyclomatic 17): EvalRemoteProviderBootstrap.preset 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/RemoteProviderBootstrap.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffee76787b1b5fe09249524de4b6bd6cc6e8907ae9c97525e6bf4c2dcf3d6c0"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogTokenButtonStyle.makeBody (cyclomatic 17): CatalogTokenButtonStyle.makeBody 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":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb720ef12f3e90b9aef2f6254d5ece2b9f9dac14dbde253fbf4b21e934def8e"}},{"ruleId":"D1","level":"warning","message":{"text":"FileTreeTool.buildTree (cyclomatic 17): FileTreeTool.buildTree has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (traverse). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d501603d455b10d6c4acc8b52dea77e6e7fb4b2bcb4f5018aeccb867eaf676"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillArchiveProcessRunner.run (cyclomatic 17): SkillArchiveProcessRunner.run 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":"Packages/OsaurusCore/Managers/SkillImportPolicy.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fde30a32b4a35bc5e83ba02235107ac2783147738a8c83f81805f5047a53998"}},{"ruleId":"D1","level":"warning","message":{"text":"ToastManager.handleBuiltInAction (cyclomatic 17): ToastManager.handleBuiltInAction 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":"Packages/OsaurusCore/Managers/ToastManager.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"0727ab2249e632c4cf8bf71fde9963f89ecf08ae2ac40aabc49c4ec571ed1a01"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleUpdateAgentToolEndpoint (cyclomatic 17): HTTPHandler.handleUpdateAgentToolEndpoint 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9795aee1cf6eea32dd084068d3b167aad6683e749cbf09be5de536bbe194a83"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleAnswerWorkflowDialogEndpoint (cyclomatic 17): HTTPHandler.handleAnswerWorkflowDialogEndpoint has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7432}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52e2e9562fc241368e3e95af6e7784da074e9881d9e863145e42e0e1bc0cccc"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleAnthropicMessagesNonStreaming (cyclomatic 17): HTTPHandler.handleAnthropicMessagesNonStreaming 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18083}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaf3fc83a23d58d66db71d6f11ba9267d2f6b940d96dd520de971fe45ad3abe"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.parseMultipartFormData (cyclomatic 17): HTTPHandler.parseMultipartFormData 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":19013}}}],"partialFingerprints":{"codehealthFindingId/v1":"64de031bbb2b1f3ed9bef24765b947f8a60ba56765ca9d850a435b7b7094cfc5"}},{"ruleId":"D1","level":"warning","message":{"text":"BundledModelSeeder.seed (cyclomatic 17): BundledModelSeeder.seed 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":"Packages/OsaurusCore/Services/BundledModelSeeder.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1b2d229b3e64171721ce881ba170973b817ef24e1aa55228e98813d4147efa"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubSkillService.parseGitHubURL (cyclomatic 17): GitHubSkillService.parseGitHubURL 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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b57dcbeb48bfb468ab19be58cc7081ecb19af694ecad8edb05340e66f653fd"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubSkillService.detectDefaultBranch (cyclomatic 17): GitHubSkillService.detectDefaultBranch 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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72970bc51f3190738c88561f10faf553947d80b75161404d8884b8897a6ed74"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelCompatibilityDiagnostics.evidenceRows (cyclomatic 17): ModelCompatibilityDiagnostics.evidenceRows 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":"Packages/OsaurusCore/Services/ModelCompatibilityDiagnostics.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea0b486f3b9c91a46b9c38046a1270eba0cd05ac79e20c6f17b63517d32e13b"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDatabase.createTable (cyclomatic 17): AgentDatabase.createTable 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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"751254ce8d5924da6386a4d7e1ceb9f5e0338f13654bf905bcb09837097e75cc"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDatabase.forbiddenReason (cyclomatic 17): AgentDatabase.forbiddenReason 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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89cac98e1b63a3879ac6703ef989fc5ea8cbf16c93286b695bc457628a639b3"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxExecTool.run (cyclomatic 17): SandboxExecTool.run 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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb6044cea29ab16baf491a6b66a05844cddd6fa2f373db418441b02e37ecddd"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusInspectTool.statusEnvelope (cyclomatic 17): OsaurusInspectTool.statusEnvelope 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. This is NOT this file\u0027s highest cyclomatic complexity: ConfigurationReadNextStep.shapeSections (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"5784da7d7245753e32bfa942c0d726cbb271ae5ed4554f0b672e3c55c0dbae79"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchKnowledgeTool.execute (cyclomatic 17): SearchKnowledgeTool.execute 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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"699eb7226bc7549c4c8985c488b2f7aabab61d284f001bd88058aad31578ece3"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolRegistry.normalizeToolResult (cyclomatic 17): ToolRegistry.normalizeToolResult 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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"3117ef8192b612ecb26067b91c0ff04acbae7ff0c6268d4738f41e01fdc92137"}},{"ruleId":"D1","level":"warning","message":{"text":"CNContactsService.apply (cyclomatic 17): CNContactsService.apply 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":"Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"4997978bbcf109b24d0004b4c4aded9a05b6727681ab979039c3a3f04f63869d"}},{"ruleId":"D1","level":"warning","message":{"text":"MapsToolFactory.placeReference (cyclomatic 17): MapsToolFactory.placeReference 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":"Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72ce32e9248d3ff35c8e169d703fe21fa5efb452c0314a626a2f8e382fe39d8"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenContextDistiller.statusToken (cyclomatic 17): ScreenContextDistiller.statusToken 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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"957f3d1065744474afa89c3a824d0921102f60d3c1b403faccab0f0386f0298a"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginManager._loadAll (cyclomatic 17): PluginManager._loadAll 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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1372de22d9c96a6b664f82ea3f2cd4ef09aa8e8f93960350b1217513269c10"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginManager.deliverInitialConfig (cyclomatic 17): PluginManager.deliverInitialConfig 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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3695cfab93ef3e679a545bf778c19f4ea42a7d3556803bedce1d09a535b193"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerRuntimeSettingsStore.shouldRepairMemorySafetyOwnedCacheDefaults (cyclomatic 17): ServerRuntimeSettingsStore.shouldRepairMemorySafetyOwnedCacheDefaults 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":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde7cf3d89a869f3e5335d41af035d1b070228280832be3bf2a4bffdbf55e9cc"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolApprovalPresentation.make (cyclomatic 17): ToolApprovalPresentation.make 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":"Packages/OsaurusCore/Models/Tool/ToolApprovalPresentation.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c8e89266c7a4b1e3c9ba5ec9ee30e8ab7561e891baa069811ea30a9cfb2fd1"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONSchemaValidator.schemaIssues (cyclomatic 17): JSONSchemaValidator.schemaIssues 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":"Packages/OsaurusCore/Models/Workflow/JSONSchemaValidator.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b739121d163e9e73dcced5bee297bc2dae7a400daa424218c95569216f0d63a2"}},{"ruleId":"D1","level":"warning","message":{"text":"SpokenDigitRuns.find (cyclomatic 17): SpokenDigitRuns.find 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":"Packages/OsaurusCore/PrivacyFilter/Core/SpokenNumberDetector.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d2e5f71b16fc049c3e07db0ed34187f4da15a78af3fcffe9013dbd8556c085"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentBundleService.resolveImportIdentity (cyclomatic 17): AgentBundleService.resolveImportIdentity 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":"Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a4eb08a0fb7fb4db95e642b137f5d5225ecaec913d463854c7ab794b2b48c2"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.mapResult (cyclomatic 17): AgentChannelCustomJSONRunner.mapResult has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: AgentChannelCustomJSONRunnerError.errorDescription (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdef6deba8218f6e3aafc95b447cf335fd10bcfc530fc16ee2cc8d2ed797f6ac"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelInboundRelay.submit (cyclomatic 17): AgentChannelInboundRelay.submit 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58c8a8fbe24096ee48c2cc6f0d2a9eeba6b1a2702a210eab2d9efb49c85d771"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelAccountMigration.splitTriggers (cyclomatic 17): ChannelAccountMigration.splitTriggers 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":"Packages/OsaurusCore/Services/AgentChannel/ChannelAccountMigration.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9a9732e0d0fa663405c9a5364922f0f41393ce15e47caf7359ae6375ac8d22"}},{"ruleId":"D1","level":"warning","message":{"text":"AttentionActivityLogger.details (cyclomatic 17): AttentionActivityLogger.details 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":"Packages/OsaurusCore/Services/Attention/AttentionActivityLogger.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cb44b01b6fa70dc82fa20ade51dfbdce32a84ec0724c12f9951410d30a7947"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoopModelStep.classifyTerminal (cyclomatic 17): AgentLoopModelStep.classifyTerminal 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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c25a2f789b0e54d929a50621ccfc0380edab696a5f6fb32970c966bab5b6a12"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolLoop.completedDesktopSummaryBeforeMalformedRepeat (cyclomatic 17): AgentToolLoop.completedDesktopSummaryBeforeMalformedRepeat 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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c87805aad4dd04c1f14ecce276787de4929abd2011b21e3dca70562b49b39d"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextCompactionService.renderTranscript (cyclomatic 17): ContextCompactionService.renderTranscript 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":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ff83bd179b49febdb5768f6c158bcbf9abd8665146e83c308b61636120a0ba"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemPromptComposer.hasAnyConfiguredAgentChannel (cyclomatic 17): SystemPromptComposer.hasAnyConfiguredAgentChannel 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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c69eb6e7b41eac254b8fabfcf406215117c513577273fc38bbcc1557078def9"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatImportEvalHarness.run (cyclomatic 17): ChatImportEvalHarness.run 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":"Packages/OsaurusCore/Services/ChatImport/ChatImportEvalHarness.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b679433ccfbf7a25dafb7984f62847d937c7b2a324472272714ad52770a0d60"}},{"ruleId":"D1","level":"warning","message":{"text":"MicroPerfEvaluator.measureRep (cyclomatic 17): MicroPerfEvaluator.measureRep 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":"Packages/OsaurusCore/Services/Context/MicroPerfEvaluator.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e40b5ecf6ad370cff3f900d63b69087b6f2d328e16e05db2be8c005a07c660"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkbookWorkflowValidator.validateCell (cyclomatic 17): WorkbookWorkflowValidator.validateCell 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":"Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5a00b2d091413022a635cacb7547582e7a2587a4d9a5ebaddde1454edda947"}},{"ruleId":"D1","level":"warning","message":{"text":"FolderEventSource.reconcile (cyclomatic 17): FolderEventSource.reconcile 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":"Packages/OsaurusCore/Services/Event/FolderEventSource.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e181f52704e64b43232e169a4bcc2476bc8937dff90f53b3502d22bc69751d4"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeCodeHarnessCodec.decode (cyclomatic 17): ClaudeCodeHarnessCodec.decode 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":"Packages/OsaurusCore/Services/Harness/ClaudeCodeHarnessAdapter.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f17c593ac6e462478130c5e0153254164f051fe2ae0a695ecc82806c9d899a"}},{"ruleId":"D1","level":"warning","message":{"text":"PendingImportProcessor.decideSetting (cyclomatic 17): PendingImportProcessor.decideSetting 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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6070310d4754ec728e2c32465913cb96896a0200248991714caa4edcbd2c06"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeCodeStreamDecoder.decodeStreamEvent (cyclomatic 17): ClaudeCodeStreamDecoder.decodeStreamEvent 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":"Packages/OsaurusCore/Services/Inference/ClaudeCodeStreamDecoder.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"57784318e94dd49bef340d41f948079cfa8a5f287d0f301d9cbcf33b9a6fa1ee"}},{"ruleId":"D1","level":"warning","message":{"text":"MemorySearchService.searchTranscript (cyclomatic 17): MemorySearchService.searchTranscript 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":"Packages/OsaurusCore/Services/Memory/MemorySearchService.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4575947328bef46682fdc46bb099e37835fe33e6e8338a51b360ebddb66a93"}},{"ruleId":"D1","level":"warning","message":{"text":"Registry.snapshotDiagnostics (cyclomatic 17): Registry.snapshotDiagnostics 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":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"64efe6475f649c9635793076be07521752f76b1b0818ee806d7c21ad46f4b291"}},{"ruleId":"D1","level":"warning","message":{"text":"OnboardingFirstRun.runEnded (cyclomatic 17): OnboardingFirstRun.runEnded 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba34a557803be37333e8bd38c27ee5705c62e91916e56add74e48071427b247"}},{"ruleId":"D1","level":"warning","message":{"text":"InstalledClaudePluginsAggregator.buildPlugins (cyclomatic 17): InstalledClaudePluginsAggregator.buildPlugins has cyclomatic complexity 17 (threshold 15). Of this number, 15 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":"Packages/OsaurusCore/Services/Plugin/InstalledClaudePluginsAggregator.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ead80dff63250b53b7e54b40d2fe4611dfd3980bc76ef7b300bfdb01ad8e21c"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginHostContext.ssrfBlockedIPv4 (cyclomatic 17): PluginHostContext.ssrfBlockedIPv4 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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":3071}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8e4a6dd0f779842f05aeb51ad8f06da6a48014ad695688629d7641f9eb5ba4"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderNetworkDiagnostics.remoteModelDiscoveryRow (cyclomatic 17): ProviderNetworkDiagnostics.remoteModelDiscoveryRow 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":"Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"4407450dbc8307b25006b41dc975d3b987e498bd8b2fa6aa082b19929bbde18f"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderService.geminiImageGenerateContent (cyclomatic 17): RemoteProviderService.geminiImageGenerateContent 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":3949}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebad491b7873c2892e276bf6881d7c3ef79825d2fc40eb3d38c8d52ebaf4779"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceAgentLiveness.classify (cyclomatic 17): WorkspaceAgentLiveness.classify 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":"Packages/OsaurusCore/Services/Router/WorkspaceAgentLiveness.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"26179791512e34700fc2c9153020d82af340559aa28d5c1de10581a8793dd6fb"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceRosterStore.refresh (cyclomatic 17): WorkspaceRosterStore.refresh 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":"Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87a97013f12e77624e3f9ee7db9282cfb0277906ac925de98e6eeb3cfb20cd3"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceSyncService.startStream (cyclomatic 17): WorkspaceSyncService.startStream 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":"Packages/OsaurusCore/Services/Router/WorkspaceSyncService.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a017b05da24ee1678befe06436f06aaf10e03c3b7b6177c3e589054a04f15342"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchHTML.blockedIPv4Reason (cyclomatic 17): SearchHTML.blockedIPv4Reason 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":"Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9485feb47b9d6ad85feae8fffa50e74777145e1f339e2a787d646aac745b8ea"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncAttentionFeed.apply (cyclomatic 17): SyncAttentionFeed.apply 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":"Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e784b0bcd4e912a6101ec5ddb54d8fbbb83d79270642f8d5e18aa5caa6cab0"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncConversationMapper.detailWrite (cyclomatic 17): SyncConversationMapper.detailWrite has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a838691ac8ee47c6fa48243895721788f7a5d2e30026d6c581539c9e79d255d3"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncConversationMapper.attachment (cyclomatic 17): SyncConversationMapper.attachment has cyclomatic complexity 17 (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":"Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8fa8c0eb47e4a0a0075f7af5b8f242ea474734d1e3264e89e53176ee9d45f4"}},{"ruleId":"D1","level":"warning","message":{"text":"TemplateImportRouter.fetch (cyclomatic 17): TemplateImportRouter.fetch 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":"Packages/OsaurusCore/Services/Template/TemplateImportRouter.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0dcffd83b4e56fc3872d18e1dbc0ab71afda132b1f5b734bf2f90fda4c875b"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaNodeExecutor.resolveParameters (cyclomatic 17): MediaNodeExecutor.resolveParameters has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 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":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"f285b2d83d5de1dad7a98fb8e61636342c7c2ea6804c519c0d7d75926851a29b"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowNodeError.isRetryable (cyclomatic 17): WorkflowNodeError.isRetryable 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":"Packages/OsaurusCore/Services/Workflow/WorkflowNodeExecutor.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbb5b97568c6c51bcf03b0bbf1e1f66654f00b9838840e0b4208c47c962524a"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowRunner.attempt (cyclomatic 17): WorkflowRunner.attempt 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":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1281fd74ae677a980b9157a0b54992c17cda4ba0614d52f296be33a43a28461"}},{"ruleId":"D1","level":"warning","message":{"text":"TextSubagentKind.matchesApprovedAuthority (cyclomatic 17): TextSubagentKind.matchesApprovedAuthority 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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a0e4123cd87fedbd66835af74ef8c6dc33a25d7fbbf23e6ad9b4690f3525cd"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowTestTool.runFromNode (cyclomatic 17): WorkflowTestTool.runFromNode 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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"0238a9ddb4ffc13f6bad0f69df7a1b6c29116d17a4a1232bcbeb2cc27d296839"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowProposeSaveTool.execute (cyclomatic 17): WorkflowProposeSaveTool.execute 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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5154c7de243c2e3a5c164c3f7632866c922fb07777d7f48990b54b4c272c899"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCrossSelection.updateSelection (cyclomatic 17): ChatCrossSelection.updateSelection 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":"Packages/OsaurusCore/Views/Chat/ChatCrossSelection.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ec1df5342cdc21c19ed9093f682c27ee052763db3714b24181ce7abb0d5578"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatTabContextMenu.makeMenu (cyclomatic 17): ChatTabContextMenu.makeMenu 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":"Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d47a8f805c654774225b294af7759ea576481747ecad75cd4f70a2f9ecef002"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.applyPickerItems (cyclomatic 17): ChatSession.applyPickerItems 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e950671239042afbe60281a22bf6f9ceeea93a7d897d42fb4a12682d5378d2"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.modelVisibleAssistantMessage (cyclomatic 17): ChatSession.modelVisibleAssistantMessage 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":2822}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9baf042042f780a274eaee040307600574374eaf2e892eae4a0bbb8f46c07e"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSession.stop (cyclomatic 17): ChatSession.stop 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":3070}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e75ae406a7479a74304e6368db2dd6e177d9146e790efd7ed324186a139a19e"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatView.pinRemoteAgentModelAfterConnect (cyclomatic 17): ChatView.pinRemoteAgentModelAfterConnect 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":12425}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3077d55152bd36c8b7e664c3da3cdc8c5888875ea3311050613ca1e9a48eb6"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputerUseConfirmOverlay.confirmCard (cyclomatic 17): ComputerUseConfirmOverlay.confirmCard 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":"Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c915b73f803e7fe3ecb63f6a4721f9e2791f5e1a8fa25519e0c2e0525461fa65"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.refreshMTPLayoutAdvisory (cyclomatic 17): FloatingInputCard.refreshMTPLayoutAdvisory 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4588}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb9d7a041cd40e85a27263347b2ed631045925a5f8e794578856f33c82f5f36"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceStateSyncObservers.body (cyclomatic 17): VoiceStateSyncObservers.body 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":9052}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72af9a2d74b38766d0c32d45b863e3fd8aedb40e553b65205d4773ba6cf1529"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeArtifactCardView.buildPreview (cyclomatic 17): NativeArtifactCardView.buildPreview 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":"Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8809a271292bbdf7102924ae431099fcbb50f194659378e5f42188088f21db1"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeCompactionMarkerView.configure (cyclomatic 17): NativeCompactionMarkerView.configure 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":"Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa04900a7e719dbd1de2369804d4cf3d2f60fac812addefc4dadf74025b0512"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMarkdownView.configureWithBlocks (cyclomatic 17): NativeMarkdownView.configureWithBlocks 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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fce0e90a960fd6ee17c59b9414a74270d18871562e19785939441c9d933f284"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMarkdownView.measureMixedSegmentHeight (cyclomatic 17): NativeMarkdownView.measureMixedSegmentHeight 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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a1ce98eea149d6dbde16eb66197f11f4a8416cf4713a36975f5771c2279606"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewGenerator.resultPreview (cyclomatic 17): PreviewGenerator.resultPreview 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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c13a28ad321a6e51954fffe0c2f3079a8de2d60550a5642b5f78301f3013d2"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeToolCallGroupView.configure (cyclomatic 17): NativeToolCallGroupView.configure 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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"6890964d5edc2fc3ac8a2b8aab8ec945829ab7277093e37ace4785b60e0afd05"}},{"ruleId":"D1","level":"warning","message":{"text":"CredentialEditorSheet.body (cyclomatic 17): CredentialEditorSheet.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":"Packages/OsaurusCore/Views/Credentials/CredentialEditorSheet.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"071aa74ebde9b1beb4f6706599f9714b11530869a65f69ad674918d50c7b8878"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsLanding.prepare (cyclomatic 17): SettingsLanding.prepare has cyclomatic complexity 17 (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":"Packages/OsaurusCore/Views/Management/SettingsLanding.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1803581f7241f980174eb38bc40cdbe56d95f5ce14eb48bae8ade1f1f7ed5e0f"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarLensBar.segmentButton (cyclomatic 17): SidebarLensBar.segmentButton 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":"Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"4223b620cc5c74a159e27ae5b5d79b885ab703292ee869859c1a0728807aaaa1"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryConsoleInspectSheet.metadataGrid (cyclomatic 17): MemoryConsoleInspectSheet.metadataGrid 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":"Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48ad8f5373f1f7de2d71e519456619805df9be2f3c7279af1ee050bf9e4b364"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelDetailView.manifestStatus (cyclomatic 17): ModelDetailView.manifestStatus 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":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56998a870904ec4f11d7903c323308fc658e62a77dedf0636ddee04e5d8121c"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPickerView.thinkingOptionRow (cyclomatic 17): ModelPickerView.thinkingOptionRow 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":"Packages/OsaurusCore/Views/Model/ModelPickerView.swift"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"12930758757fa28b2c783d998fcf0b516768f3a6b2899c0199e9ebe54e6b0437"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandLineToolSection.resolveCLIExecutableURL (cyclomatic 17): CommandLineToolSection.resolveCLIExecutableURL 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":"Packages/OsaurusCore/Views/Settings/CommandLineToolSection.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d175cff2b2d2f09c5ae0254ea8dab39f8f4e340de67a08475e0ffb6c24322f29"}},{"ruleId":"D1","level":"warning","message":{"text":"PublishedWorkflowDashboard.saveListing (cyclomatic 17): PublishedWorkflowDashboard.saveListing 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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e058a195b625b3befdd8847e9848feb6b11a1b5a3a25d168eeb04abf3604835"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceDetailView.poolSection (cyclomatic 17): WorkspaceDetailView.poolSection 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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e801352429672213be639eeecf8de53640814b831fc8108bd85b96d743a46a"}},{"ruleId":"D1","level":"warning","message":{"text":"CreateWorkspaceSheet.body (cyclomatic 17): CreateWorkspaceSheet.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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"96acc44b58f7f84015a01e4cffd23755489cf6a932850157be34eedd9c9d90ce"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivateWorkspaceSheet.body (cyclomatic 17): ActivateWorkspaceSheet.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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"2205941a02bdeff39a5be00ebd34acb0bbc67c3d94e6b4d532b75fa6039f10b2"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenshotController.capture (cyclomatic 17): ScreenshotController.capture 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"708751f1d0d93f6c0866030fd2e2c0b7c659cc7c2f9ee740ca5b674bc417b9ea"}},{"ruleId":"D1","level":"warning","message":{"text":"InspectorAssignedTextField.updateNSView (cyclomatic 17): InspectorAssignedTextField.updateNSView 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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedTextField.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"38389a0309622adc893604bcf5cd18c28fdc10e1265150c93c0324a3a59146c0"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXEditor.expandSharedFormulas (cyclomatic 17): XLSXEditor.expandSharedFormulas 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"7502f9fab1ace362ca7fb5bdda53093c41243b133ea0f2d61d85612c286d5668"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailMIME.collect (cyclomatic 17): EmailMIME.collect 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":"Packages/OsaurusCore/Services/Event/Email/EmailMIME.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f06f982fd779729855a8ad9ea20f923ea31f54dde85024d01da332217363550"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDetailPage.beforeItRuns (cyclomatic 17): WorkflowDetailPage.beforeItRuns 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowDetailPage.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4c28c7232c6a6d6d605fd54720fd794a8c2ab1b7ee31ba2d3bfda9bcfc46fd"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.buildHelperHostAPI (cyclomatic 17): main.swift.buildHelperHostAPI 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":"Packages/OsaurusCore/PluginHost/main.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85d7596f1b3ee36485484ac6dc14314178efa3e0cffdc32fefcca51ca9a16dd"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownMessageView.swift.groupBlocksIntoSegments::emitBlock (cyclomatic 17): MarkdownMessageView.swift.groupBlocksIntoSegments::emitBlock has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/MarkdownMessageView.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b31fb1da0da7846b0b9fff3fdb74d249ee0b8b0082b7f55b3566e883a7dc32"}},{"ruleId":"D1","level":"warning","message":{"text":"Accessibility.swift.focusedViewport (cyclomatic 17): Accessibility.swift.focusedViewport 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f15ef8061057910aead37973cb77377569089ba5e410d697e1f5488ae19400"}},{"ruleId":"D1","level":"warning","message":{"text":"Accessibility.swift.listWindowsForPid (cyclomatic 17): Accessibility.swift.listWindowsForPid 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"9855f9091fa83dc6b73f7cb10fa7128d8834ea957339706b10fd98abf0062d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"CoordCommand.runLock (cyclomatic 16): CoordCommand.runLock has cyclomatic complexity 16 (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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Coord/CoordCommand.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1799b351df5b5ffa671ed59f784fb908c99d082eb2fd7176edd93b285f9189"}},{"ruleId":"D1","level":"warning","message":{"text":"OsaurusEvalsCLI.runCompat (cyclomatic 16): OsaurusEvalsCLI.runCompat 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36d41d8796d3addb554393371c99cc4c748533f74cfadf0b744698a8c79dbb1"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalBootstrap.applyKVRegimeOverrideIfRequested (cyclomatic 16): EvalBootstrap.applyKVRegimeOverrideIfRequested 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff247bc5c41fb41cec508ee2e810ec2241f0c5dae05165824b252d305b2199b"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalMatrix.comparabilityWarnings (cyclomatic 16): EvalMatrix.comparabilityWarnings 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"366bbe2e9a7694d51143d7e323580aedd8d07f5e71e3df9adcf5f76b368f7420"}},{"ruleId":"D1","level":"warning","message":{"text":"EvalRunner.runArchitectInlineCase (cyclomatic 16): EvalRunner.runArchitectInlineCase has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerArchitectInline.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e127c845b3b30b1734c1f6983b5031b6a574b617778f7f716dafb2c84cce70c0"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalProxyConfiguration.init (cyclomatic 16): GlobalProxyConfiguration.init 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":"Packages/OsaurusNetworking/Sources/GlobalProxyConfiguration.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"545b03bd2e08557232c590f56dad316e47b545e2a6de989a26baf3232876cb1f"}},{"ruleId":"D1","level":"warning","message":{"text":"BundleSetting.originProblem (cyclomatic 16): BundleSetting.originProblem has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/BundleSettings.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4abb2263bb227b9e9cc80bcfc21c65514dee36acd82658dee7f12a8c05fd50"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogExpandedAssignments.sharedParts (cyclomatic 16): CatalogExpandedAssignments.sharedParts 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":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5b0653a6e54a4a1bf7c635697154ef12238c1b7c52f63158280526f399bf8e"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogContentView.body (cyclomatic 16): CatalogContentView.body 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":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d690dc3f0aa2b67f3057680ed8b1294edd9653cd79ae1fcf50e776b0a71f057"}},{"ruleId":"D1","level":"warning","message":{"text":"FileReadImageSupport.load (cyclomatic 16): FileReadImageSupport.load has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FileReadImageSupport.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14f8ee54f96fefb79cfde20bc9689a05511dc7fc211795638527293f97bb6f7"}},{"ruleId":"D1","level":"warning","message":{"text":"FileTreeTool.entries::traverse (cyclomatic 16): FileTreeTool.entries::traverse 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ed9e0273e8fe1d7220ceb6f4e7044cafd7253d9e555b6518bb05ab86908907"}},{"ruleId":"D1","level":"warning","message":{"text":"BackgroundTaskManager.schedulingStatusChanged (cyclomatic 16): BackgroundTaskManager.schedulingStatusChanged 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":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"7090e6691456f9f84332ea85ef513f128f47e525fe98c7f76086ac2a6f2fd8c3"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatibleTTSClient.decodeCompressedAudio (cyclomatic 16): OpenAICompatibleTTSClient.decodeCompressedAudio 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":"Packages/OsaurusCore/Managers/OpenAICompatibleTTSClient.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3cd885c914c3edd0581ffca76772eb8b62de3282cded7d26ba48a5b4ebfe55"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.pickerModels (cyclomatic 16): HTTPHandler.pickerModels has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5529}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b37c26cfbbbc1f2a17815d4a68f163deaba70906c560dd78b2ac39ef886fb6"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleWorkspaceAgentRunEndpoint (cyclomatic 16): HTTPHandler.handleWorkspaceAgentRunEndpoint 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6588}}}],"partialFingerprints":{"codehealthFindingId/v1":"5323bd76b201dd5fd0243df23c501e3cc85dfdecc2d3bf5e646e218c2bbbbd59"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleAnswerPhonePromptEndpoint (cyclomatic 16): HTTPHandler.handleAnswerPhonePromptEndpoint 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7674}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08d940a579bfa01eebc7c0354262073d53c748c205afa7b2435d66602e79b33"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleEventWebhookEndpoint (cyclomatic 16): HTTPHandler.handleEventWebhookEndpoint has cyclomatic complexity 16 (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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9901}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56231ebb9c68b6eb748ed23334c94df48477da92121d371e93a8b28261bd164"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPHandler.handleImageGenerations (cyclomatic 16): HTTPHandler.handleImageGenerations 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13601}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc3774ce9e5304b4911036cabcb5aebded61a55c3fb634732ef1b9c7e4a4826"}},{"ruleId":"D1","level":"warning","message":{"text":"RelayTunnelManager.handleMessage (cyclomatic 16): RelayTunnelManager.handleMessage has cyclomatic complexity 16 (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":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e0c9c3969883f074966c4a8a6a76820b0bd570be2a86a7f58f66aa8aaeed51"}},{"ruleId":"D1","level":"warning","message":{"text":"RelayTunnelManager.relayStreamingResponse (cyclomatic 16): RelayTunnelManager.relayStreamingResponse has cyclomatic complexity 16 (threshold 15). Of this number, 14 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":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"49acb069265c33e2cbdfb05814eaee69e61b723736cecb4456d71c7b61be8fbe"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaJSONSlices.valueEnd (cyclomatic 16): SchemaJSONSlices.valueEnd 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":"Packages/OsaurusCore/Networking/RequestValidator.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b34d376d7f124b0ab256874605501dad3c8650c78ed9be1ee113c2cbdf8ae5"}},{"ruleId":"D1","level":"warning","message":{"text":"DeclaredReasoningEffort.fixedNativeEffort (cyclomatic 16): DeclaredReasoningEffort.fixedNativeEffort has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee59a4c1d71f426817eb8042ffe40a40c2d9eeb4a4f46d43e749058336b52a2a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRuntime.resolveLocalModelDirectory (cyclomatic 16): ModelRuntime.resolveLocalModelDirectory has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (scan, loadableBundle, withoutCrackSuffix). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":8700}}}],"partialFingerprints":{"codehealthFindingId/v1":"e803f6f7a2c79e9c860e6d9ab9695e7ad7aeaa5c7f8d3c55c3ec14b17087f4a0"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityLogStore.verify (cyclomatic 16): ActivityLogStore.verify 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":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79a38b7945ba21211486281ec8d6589a00b3fd0976ea0b5f8bde5bb5197ab6f"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryDatabase.searchTranscriptText (cyclomatic 16): MemoryDatabase.searchTranscriptText 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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":2377}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e4ada493ececd2851680b1631c854b16fe3f991bb4d1349259ec1274da3886"}},{"ruleId":"D1","level":"warning","message":{"text":"StorageExportService.recoverInterruptedRotation (cyclomatic 16): StorageExportService.recoverInterruptedRotation 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":"Packages/OsaurusCore/Storage/StorageExportService.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ce9908e124186033048b8e7f0f217f24d3b4b6f9c76d14236af2fa2c2b907f"}},{"ruleId":"D1","level":"warning","message":{"text":"CapabilitiesLoadTool.loadSkill (cyclomatic 16): CapabilitiesLoadTool.loadSkill 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":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ebab4585dede015859c1a7c1679da8f558661f986e1a1f68ec330e706f3020"}},{"ruleId":"D1","level":"warning","message":{"text":"EditKnowledgeTool.execute (cyclomatic 16): EditKnowledgeTool.execute 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":"Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"3142609d8eb7d9c520a0494ea41ad7031587979510326f34224141e1f8ff4ac6"}},{"ruleId":"D1","level":"warning","message":{"text":"RenderChartTool.unwrapQuotedDelimitedPayload (cyclomatic 16): RenderChartTool.unwrapQuotedDelimitedPayload has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/RenderChartTool.swift"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cc04379602b47bc603e530a68e49e45c296fc2b80f04a249466e28bbff2077"}},{"ruleId":"D1","level":"warning","message":{"text":"SecretArgumentScrubber.scrubForPersistence (cyclomatic 16): SecretArgumentScrubber.scrubForPersistence 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":"Packages/OsaurusCore/Tools/SandboxSecretTools.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1142c411d53876026366f620711d7de1aa73ff876f7b2b3b8b0d38e0c579b71"}},{"ruleId":"D1","level":"warning","message":{"text":"LoginShellPath.probe (cyclomatic 16): LoginShellPath.probe has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/LoginShellPath.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16a49f1425c9677ae7edfc03a4550a35a19d92e5e01a72d75664ed3aab33c87"}},{"ruleId":"D1","level":"warning","message":{"text":"CalendarUpdateEventTool.run (cyclomatic 16): CalendarUpdateEventTool.run 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":"Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df1c1565c793a0326ce7178eba534b5b88d27dc38961385538291ac03a05999"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatDBMessagesService.send (cyclomatic 16): ChatDBMessagesService.send 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":"Packages/OsaurusCore/AppleApps/Messages/MessagesService.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae69a80b880a37bc2d3ba918a36ff84a6cdd638337aec4e0cfbdb64a00b742c7"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMacDriver.perform (cyclomatic 16): NativeMacDriver.perform 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":"Packages/OsaurusCore/ComputerUse/Driver/NativeMacDriver.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5898756c5da24bbae91f3e345640a9468902f84f1c30d96f49734953119fa908"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolSelectionResolver.apply (cyclomatic 16): AgentToolSelectionResolver.apply 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":"Packages/OsaurusCore/Configuration/Declarative/AgentToolSelectionResolver.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a0b23d3c13f224bed3db11ecd912a8525ae8e2aaebbc02615f7b676adbfa4e"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigApplier.normalizeAgentEntry (cyclomatic 16): ConfigApplier.normalizeAgentEntry 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0458ad21983942e4e9b42cf4229938e4bb632be78f632b6b27bb24d0de5be6"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSessionImportCoordinator.run (cyclomatic 16): ChatSessionImportCoordinator.run 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":"Packages/OsaurusCore/Managers/Chat/ChatSessionImportCoordinator.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3ea402ac5733b237bb0bed2fefce44d7ba2c56b0b05442a408a2158c72a78b"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelManager.scanLocalModels::scanDir (cyclomatic 16): ModelManager.scanLocalModels::scanDir 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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7eedcf4cf0f0d1c43bd419c82176fb081b8bd73e1f68cef13d00b25cc05ce85"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelLiveProofReadiness.telegram (cyclomatic 16): AgentChannelLiveProofReadiness.telegram 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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8069722e16345138a2c15c3b4ea39a54a9c1f795e7ee5e0dd17f10aa916710a2"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelLiveProofReadiness.imessage (cyclomatic 16): AgentChannelLiveProofReadiness.imessage 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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8f152565f3c2a91c3397fd3df35925551f53bffa01e9eaa3b30b7fc66c251e"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelInfo.findModelDirectory (cyclomatic 16): ModelInfo.findModelDirectory 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":"Packages/OsaurusCore/Models/Configuration/ModelInfo.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"87090dee55a6d7d076cfac249b72a1254832722aa7c515bbe2f684c8879316dd"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityFilter.activeCount (cyclomatic 16): ActivityFilter.activeCount 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":"Packages/OsaurusCore/Models/Insights/ActivityFilter.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8750853df6365356be4250f98580118d80fdc3599c4561ce7fd8c17644525ff4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.blockedIPv4Reason (cyclomatic 16): AgentChannelCustomJSONRunner.blockedIPv4Reason 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. This is NOT this file\u0027s highest cyclomatic complexity: AgentChannelCustomJSONRunnerError.errorDescription (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6f6fb3ed979c17d296ec70c7979fc63607b86eccaf7940402d24ad5476c846"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelMessageFormatter.stripInlineMarkdown (cyclomatic 16): AgentChannelMessageFormatter.stripInlineMarkdown has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (AgentChannelMessageFormatter.telegramInlineHTML) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c66cede21a8a3ee9b507a689a30464d00f2baab74bf5a0f4efed4c5562f143"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelMessageFormatter.markdownBlocks (cyclomatic 16): AgentChannelMessageFormatter.markdownBlocks has cyclomatic complexity 16 (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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"798c2dcf2e6924f26d0d92bee2a87ddffec8d89bbad5a6985fae51544bfac7b9"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelMessageFormatter.telegramInlineHTML (cyclomatic 16): AgentChannelMessageFormatter.telegramInlineHTML has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (AgentChannelMessageFormatter.stripInlineMarkdown) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec35c49612f946904cfe0fcab3684c5ce1f22628318abe84361b118df845653"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentChannelPublishService.operatorSend (cyclomatic 16): AgentChannelPublishService.operatorSend 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83d878f4926e493f8e7cc1ada76e3a6703dd1887df5ad6afd8c8d40831a37eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelAccountMigration.runIfNeeded (cyclomatic 16): ChannelAccountMigration.runIfNeeded 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":"Packages/OsaurusCore/Services/AgentChannel/ChannelAccountMigration.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"289d29f3a9050f2dae538b496a61345acc9764d272d3f22f6a07b39b30fe4d8c"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopNotificationChannel.handle (cyclomatic 16): DesktopNotificationChannel.handle 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":"Packages/OsaurusCore/Services/Attention/DesktopNotificationChannel.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f83ec7c33c3ca1eb879142e29a62f6812b11171144e3d9ab7911872438264ab"}},{"ruleId":"D1","level":"warning","message":{"text":"OwnerDeviceAccessHost.handle (cyclomatic 16): OwnerDeviceAccessHost.handle has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c0275b3de547467725d063afb5f35e101e52b39dfc5d2148c01c69aceb4186"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelReplyTokenService.validateToken (cyclomatic 16): ChannelReplyTokenService.validateToken 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":"Packages/OsaurusCore/Services/Channels/ChannelReplyTokenService.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbf5ca613cc331afa9ffbd4bae78bb79a0c8021736bbd2a6ab08dcdbc258ab7"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscordGatewayPresenceRuntime.runSession (cyclomatic 16): DiscordGatewayPresenceRuntime.runSession 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":"Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"31264a30536f07e6fcf376f12f49fdb20816cee35ae10452c8d77272cb9b0b42"}},{"ruleId":"D1","level":"warning","message":{"text":"PDFAdapter.glyphs (cyclomatic 16): PDFAdapter.glyphs has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6a2b847b928e5a902571eecf521416968d4f2322b2fc1530ac8a03f07abe64"}},{"ruleId":"D1","level":"warning","message":{"text":"PPTXAdapter.securityMetadata (cyclomatic 16): PPTXAdapter.securityMetadata 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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e27f8d0693e7370c11abeb69ae606b1b204bd694799aa227f5ce69c125dd7b"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailChannelTransportRuntime.tick (cyclomatic 16): EmailChannelTransportRuntime.tick has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Email/EmailChannelTransportRuntime.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7279986c7765992df428ee7190ff56cf2117563e19e61d53d919e774411ab6"}},{"ruleId":"D1","level":"warning","message":{"text":"EventMatcher.filterRejection (cyclomatic 16): EventMatcher.filterRejection 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":"Packages/OsaurusCore/Services/Event/EventMatcher.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"148e31ad07cfb7b573ece771b2c211f8e749fb31656246652aef1780ae28027c"}},{"ruleId":"D1","level":"warning","message":{"text":"FileChangeJournal.markEntries (cyclomatic 16): FileChangeJournal.markEntries 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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal\u002BRevert.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0efdff1dc256b79ef1b7010f64a2284c0cf151c96120568d9bff89a9ec16aa"}},{"ruleId":"D1","level":"warning","message":{"text":"FileDiffEngine.wordRanges (cyclomatic 16): FileDiffEngine.wordRanges 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":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"98feac7129f2d7f219f2697c2df5b952b33dd777a6635de503f4438fdb887844"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDescriptionBackfill.run (cyclomatic 16): AgentDescriptionBackfill.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/AgentDescriptionBackfill.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"575bcf2055568ef5e12d033f80c6c5fed070c70a02257eecee4a6190ba9ac630"}},{"ruleId":"D1","level":"warning","message":{"text":"DecisionService.execute (cyclomatic 16): DecisionService.execute has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/DecisionService.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a3abeeaec3d33d898cfd2ef9479ed45a391f43078c566d4ca96c0ae2bd5625"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenizerMetadata.init (cyclomatic 16): TokenizerMetadata.init 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":"Packages/OsaurusCore/Services/Inference/LocalGrammarTokenizerProbe.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"96636655167dc5652747d6449b241c2c4b3d5f3f5dd114cc9e1968ad3ae3a595"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingStatsHint.encode (cyclomatic 16): StreamingStatsHint.encode 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":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"0631ee174ecfa0696db5113750ac6cff7c45888f57892b0d79457b2ead2a75b6"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaJob.finish (cyclomatic 16): MediaJob.finish 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":"Packages/OsaurusCore/Services/Insights/MediaActivityLogger.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d52359e3f3f6cdc860cb65ddf4a3d66373a6ecf7265dd03c6b9c8322c358e6"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaGenerationCoordinator.scheduleRecovery (cyclomatic 16): MediaGenerationCoordinator.scheduleRecovery 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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9254b466d2ab82ed7c7cb8602306e47c8b38d91b8e59ed6aa48cb836d0b6f3f"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginHostContext.taskStateDict (cyclomatic 16): PluginHostContext.taskStateDict 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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":3205}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c58ee8ceb538af88e33bafaf14f85595855ab59c9bf9c355ff99c4ff4c68bbd"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteChatRequest.isStrictResponsesToolSchema::isStrict (cyclomatic 16): RemoteChatRequest.isStrictResponsesToolSchema::isStrict 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5977}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9532e0a192a908e72742270b24ad1a9565615f4e023f155c7e81b7abd58f9e5"}},{"ruleId":"D1","level":"warning","message":{"text":"InboundSharedRunBridge.isUnchangedPrefix (cyclomatic 16): InboundSharedRunBridge.isUnchangedPrefix has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d185b3543efdbcd7f55a0b3abc25668c32497e88b25061924d618a300ea39b2"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspacesService.migrateShares (cyclomatic 16): WorkspacesService.migrateShares has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: WorkspacesService.message (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"964bf9e8d0f30a9849e64c1ff21281cf22ec14f7e04802b1b3c78dff1bc9b00a"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspacesService.pollConfirmation (cyclomatic 16): WorkspacesService.pollConfirmation has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: WorkspacesService.message (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d72b1ad27175ff7f4ea8bc34165385aa1df664019433dc6670e3a792ef8613"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncConversationMapper.attachment (cyclomatic 16): SyncConversationMapper.attachment has cyclomatic complexity 16 (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":"Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"e082d5b3f6fcbec3a29b49eebceba819a2323eb83178b18b12ec4895352f6ea1"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncTurnStreamer.tick (cyclomatic 16): SyncTurnStreamer.tick 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":"Packages/OsaurusCore/Services/Sync/SyncTurnStreamer.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1898e9b957b583658bdf208d6b7c98693bf6a303527c40c46195bc05e60cf656"}},{"ruleId":"D1","level":"warning","message":{"text":"TelegramConnectionService.processUpdates (cyclomatic 16): TelegramConnectionService.processUpdates 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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0ef865f236fe257ba4458400360fa9557dba5d4d722e9ffba69450952a8222"}},{"ruleId":"D1","level":"warning","message":{"text":"TemplateCascadePlan.make (cyclomatic 16): TemplateCascadePlan.make 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":"Packages/OsaurusCore/Services/Template/TemplateCascadePlan.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a2514c60ef2e9a8e24bccfc31d6331a00eb879be08557eac2245cd1abe8683"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDraftTester.reusePlan (cyclomatic 16): WorkflowDraftTester.reusePlan 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":"Packages/OsaurusCore/Services/Workflow/WorkflowDraftTester.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0a2aa1b3c8a79bb2c0dc8454366a4184f2c0eb07a135c89c68ef4246c3de9b"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentDraftTool.patch (cyclomatic 16): AgentDraftTool.patch 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":"Packages/OsaurusCore/Tools/Agent/AgentDraftTool.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9baf480fe07792f8c4f5e8da13e5dd7488d1e34d678fa135ce1ae87bcf7348"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDiscoverTool.execute (cyclomatic 16): WorkflowDiscoverTool.execute has cyclomatic complexity 16 (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":"Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e13ac3ce34e5e1b8102604417531895c580dbf88a49a93543b8661109fc5840"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowRunsTool.execute (cyclomatic 16): WorkflowRunsTool.execute has cyclomatic complexity 16 (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":"Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5593fa6f9c3c47195e6e31a245a1d35e8a2dc66c7641ae9b6bba709277d9c2b6"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentGenerationInheritedValues.resolve (cyclomatic 16): AgentGenerationInheritedValues.resolve has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Views/Agent/AgentGenerationInheritedValues.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d77dbcae60fc5373bfde768962498b116090c53f1ae9095d2bb692f87adc258"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentGenerationSettingsEditor.body (cyclomatic 16): AgentGenerationSettingsEditor.body 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":"Packages/OsaurusCore/Views/Agent/AgentGenerationSettingsEditor.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"811ee3e7c4cd062d802db45c2997ec6917f8a51ad1dc47b0f2ed5795dde0bb41"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentsView.body (cyclomatic 16): AgentsView.body 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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"260804a4abda09e98efa380eb81b8f683f7f71371f4a8ceaf4591603bbceb703"}},{"ruleId":"D1","level":"warning","message":{"text":"EmptyStateContent.== (cyclomatic 16): EmptyStateContent.== has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff941345fab12ea3ccec6540cfeb8cd4ea9f159eb28d77ef4f73968e0c4e710a"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.checkForSilenceTimeout (cyclomatic 16): FloatingInputCard.checkForSilenceTimeout 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7e59431ef0d11c45fa596f73f9dcb35851f8f19883b90a1cc7a0597daef2e7"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingInputCard.textInputArea (cyclomatic 16): FloatingInputCard.textInputArea has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":6069}}}],"partialFingerprints":{"codehealthFindingId/v1":"17880fc218ded7d4f0be8c3c3b960a055a173cceb4b1a949f4df3a5bbe94c53c"}},{"ruleId":"D1","level":"warning","message":{"text":"PasteMonitorView.handlePasteIfImage (cyclomatic 16): PasteMonitorView.handlePasteIfImage 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":6643}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2714f46f0feb260f4323681e048732b2ceb652d49d2e9c11ccbf97e6854cc47"}},{"ruleId":"D1","level":"warning","message":{"text":"VaultSessionSheet.add (cyclomatic 16): VaultSessionSheet.add 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":"Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"03631ea779785ebf1faf2619ac7ebd87127c4f8f508057a8997ce36717a3261d"}},{"ruleId":"D1","level":"warning","message":{"text":"SlackSettingsView.body (cyclomatic 16): SlackSettingsView.body has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b501d222e50dd70775142108f1fe1561b2785fcfcaf8f479fcbc2997ec7aa05"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskDetailSheet.summary (cyclomatic 16): TaskDetailSheet.summary 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":"Packages/OsaurusCore/Views/Task/TaskDetailSheet.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"500fc377ac0a77529939fb7caf60e99fb83d5f6436101d237f2f19536b691bf6"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskPresentation.statusLine (cyclomatic 16): TaskPresentation.statusLine 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":"Packages/OsaurusCore/Views/Task/TaskRow.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b86563a6f0d77c03685bd1e91775ef8f377465be591229965fb35ad32579956"}},{"ruleId":"D1","level":"warning","message":{"text":"PublishedWorkflowDashboard.whoCanSeeIt (cyclomatic 16): PublishedWorkflowDashboard.whoCanSeeIt 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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"710b1865075f59b5fafed4e277be6214e62c6eb4e9dda8e9e155830be9e08eb4"}},{"ruleId":"D1","level":"warning","message":{"text":"ShareWorkflowSheet.liveView (cyclomatic 16): ShareWorkflowSheet.liveView 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":"Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1f5c0bdbf918857ec7ad72899224a44457102ee040672cfbba063949379946"}},{"ruleId":"D1","level":"warning","message":{"text":"ShareWorkflowSheet.footer (cyclomatic 16): ShareWorkflowSheet.footer has cyclomatic complexity 16 (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":"Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e313e258acc37cd75a84f9e7589af495630c166df57a1b58e8dac6d0690c02"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceSharedAgentRow.statusText (cyclomatic 16): WorkspaceSharedAgentRow.statusText 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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"573ddf25661e049dd917e23fbf8ce4ac124234c7b0bc44c430eef0839de632eb"}},{"ruleId":"D1","level":"warning","message":{"text":"XLSXFormula.scan::readCell (cyclomatic 16): XLSXFormula.scan::readCell has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (XLSXFormula.scan) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXFormula.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba96278e836b95bf978e589e53b1a5fc16c89adcb0cde2bf422c2accbb35fbb6"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPOAuthService.performRefresh (cyclomatic 16): MCPOAuthService.performRefresh 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":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2970a60389ccf4c11aacb8fbb01ca5ccc92f105691805dce7885f35bfea720b6"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSetupWizardView.finish (cyclomatic 16): AgentSetupWizardView.finish 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":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ef74fe122eb0e0cd5c1f5fcbeb959858f1dceac9bf7301599b51548a533abd"}},{"ruleId":"D1","level":"warning","message":{"text":"ArchitectSidebarPanel.normalBody (cyclomatic 16): ArchitectSidebarPanel.normalBody 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":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e57c812d5ab3edc719e5cd4e95a15f90a069be1c578142388d9909df5b6dc65"}},{"ruleId":"D1","level":"warning","message":{"text":"DraftStepList.card (cyclomatic 16): DraftStepList.card 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":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"0109cc9b0816aef7c1c1d306e4e7b387a621a875d8c7efe791feca3101beeed0"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaStepEditor.imageParameters (cyclomatic 16): MediaStepEditor.imageParameters 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":"Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbef839312de856d347518c554f9179d5f0cd846704e5c798edfb5fa9672da6b"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowDetailPage.hero (cyclomatic 16): WorkflowDetailPage.hero 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowDetailPage.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a48339aefcfa61a39c938d67695d92cd044c66e6346211674c85fd4fe7b377"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.handleRequest (cyclomatic 16): main.swift.handleRequest 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":"Packages/OsaurusCore/PluginHost/main.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"69476fe7b14c9e6d28b0b9fb79856ea5d38618a112b0a17ace1e3a7a010a28d6"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteProviderEditSheet.swift.parsePastedEndpoint (cyclomatic 16): RemoteProviderEditSheet.swift.parsePastedEndpoint has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"096b55a439a1db893a26abb44afc8c5be4407826da9d92fe698eaf2827fa0e7f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolLoop.runHoldingResidency (cognitive 448): AgentToolLoop.runHoldingResidency has cognitive complexity 448 (threshold 15). Drivers by points: if/else 100 (362 pts), boolean chains 57, loops 6 (21 pts), ternaries 2 (6 pts), match/switch 1 (2 pts) (nesting depth added 282). Of this number, 439 points are the body\u0027s own statements and 9 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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f586d1668a0c88457f749beeac51bcf1861272ef74e675c6675424602a35b0c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.validate (cognitive 406): ConfigPlanner.validate has cognitive complexity 406 (threshold 15). Drivers by points: if/else 103 (294 pts), loops 22 (54 pts), boolean chains 43, match/switch 2 (7 pts), ternaries 1 (5 pts), error handling 1 (3 pts) (nesting depth added 234). Of this number, 403 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe5a6d0ee6916f3b5aded333f1bd7c114011c81de5bf9a27b6f7577a4300d76"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigEvents.build (cognitive 337): ConfigEvents.build has cognitive complexity 337 (threshold 15). Drivers by points: if/else 113 (239 pts), ternaries 15 (41 pts), boolean chains 36, match/switch 5 (13 pts), loops 3 (8 pts) (nesting depth added 165). 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b941a8d93115567ddb0d7518d4545f393afa68711110d4ea4bd568243eac2f"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.channelRead (cognitive 319): HTTPHandler.channelRead has cognitive complexity 319 (threshold 15). Drivers by points: if/else 118 (157 pts), boolean chains 145, ternaries 3 (10 pts), match/switch 2 (5 pts), loops 1 (2 pts) (nesting depth added 50). 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"86896e49fe6d89470e82f8131c5990985e21c9e10865331706536002d138ed42"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleScriptLoop.run (cognitive 307): AppleScriptLoop.run has cognitive complexity 307 (threshold 15). Drivers by points: if/else 82 (176 pts), boolean chains 66, ternaries 20 (51 pts), match/switch 4 (11 pts), error handling 1 (2 pts), loops 1 (nesting depth added 133). Of this number, 305 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3c79f9f215a182de84008308a02693dbd3420b2069a34cc4d947d7786d817c"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentSession.runPreparedHost (cognitive 292): SubagentSession.runPreparedHost has cognitive complexity 292 (threshold 15). Drivers by points: if/else 75 (189 pts), ternaries 17 (54 pts), boolean chains 20, error handling 8 (16 pts), match/switch 4 (13 pts) (nesting depth added 168). 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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01add2c558158a3c19f7e781f924ee8b63edd188ecb532e2bc2fb2d4ade9ebc"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowValidator.validateNode (cognitive 289): WorkflowValidator.validateNode has cognitive complexity 289 (threshold 15). Drivers by points: if/else 89 (212 pts), boolean chains 32, loops 14 (31 pts), match/switch 6 (11 pts), ternaries 1 (3 pts) (nesting depth added 147). 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":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4105ffd6ad45b63674c9121a11d683219f054e920099034d64a4ce0a04ddd18"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.dispatchSend::runTurn (cognitive 288): ChatSession.dispatchSend::runTurn has cognitive complexity 288 (threshold 15). Drivers by points: if/else 78 (168 pts), ternaries 26 (66 pts), boolean chains 34, loops 5 (13 pts), error handling 5 (7 pts) (nesting depth added 140). 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. This shape REPEATS in the file: 3 other methods here (ChatSession.dispatchSend, ChatSession.dispatchSend::runTurn::postProcessToolResult, ChatSession.dispatchSend::runTurn::executeToolBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7829}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda4ac2892f04e375817708ef2f1a7673eb368a1f143eeef7389acaba0e91c2c"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleAgentRunEndpoint (cognitive 279): HTTPHandler.handleAgentRunEndpoint has cognitive complexity 279 (threshold 15). Drivers by points: if/else 121 (167 pts), boolean chains 47, ternaries 30 (46 pts), loops 7 (11 pts), error handling 3 (4 pts), match/switch 3 (4 pts) (nesting depth added 68). Of this number, 270 points are the body\u0027s own statements and 9 belong to 4 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10496}}}],"partialFingerprints":{"codehealthFindingId/v1":"882f2e83eeb179a367cf88f68ff62cf92de1a38e5e97b1cedc663bb54105a74f"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudePluginInstaller.install (cognitive 219): ClaudePluginInstaller.install has cognitive complexity 219 (threshold 15). Drivers by points: if/else 26 (120 pts), loops 12 (51 pts), ternaries 4 (18 pts), match/switch 4 (14 pts), boolean chains 12, error handling 1 (4 pts) (nesting depth added 160). 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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"204dda93c41141801929da36db5dbb6ba061a4dd17975da47648e2c059f7299f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.processStreamDeltas (cognitive 218): ChatSession.processStreamDeltas has cognitive complexity 218 (threshold 15). Drivers by points: if/else 61 (162 pts), ternaries 7 (21 pts), boolean chains 14, match/switch 3 (12 pts), loops 2 (8 pts), error handling 1 (nesting depth added 130). 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":6167}}}],"partialFingerprints":{"codehealthFindingId/v1":"554025a9e5781d3b7a8726b9d480a348b0bcb61d46f0769b8beef6064aa3c0e3"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilityClaimsEvaluator.runConversation (cognitive 203): CapabilityClaimsEvaluator.runConversation has cognitive complexity 203 (threshold 15). Drivers by points: if/else 42 (127 pts), ternaries 15 (29 pts), boolean chains 23, loops 4 (11 pts), error handling 4 (10 pts), match/switch 1 (3 pts) (nesting depth added 114). Of this number, 195 points are the body\u0027s own statements and 8 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":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"4158f6703f5b193c90b33d07091ff0fa655b549c5c370753528d090683cc5e41"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyMCPServers (cognitive 199): ConfigApplier.applyMCPServers has cognitive complexity 199 (threshold 15). Drivers by points: if/else 46 (140 pts), ternaries 8 (28 pts), loops 6 (17 pts), boolean chains 11, match/switch 1 (3 pts) (nesting depth added 127). 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aed5d9a8bbac519fa6bc8b04db385f14a2c5c902d055b7f4d187c6adaaaf599"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemPromptComposer.resolveTools (cognitive 188): SystemPromptComposer.resolveTools has cognitive complexity 188 (threshold 15). Drivers by points: if/else 65 (112 pts), loops 21 (44 pts), boolean chains 27, ternaries 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 72). Of this number, 184 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":2766}}}],"partialFingerprints":{"codehealthFindingId/v1":"b125c66e2765b8dbce1a7f97b4b7078bffb8a256d5d39df9fd9a4513f98226a4"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService._streamRemote (cognitive 188): RemoteProviderService._streamRemote has cognitive complexity 188 (threshold 15). Drivers by points: if/else 45 (143 pts), boolean chains 18, loops 5 (16 pts), error handling 3 (9 pts), ternaries 2 (nesting depth added 115). 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"592754fea472ba08fa697c07d39d7fa471c52280d314f56d219fc3e8554f1c7a"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXEditor.shiftRows (cognitive 185): XLSXEditor.shiftRows has cognitive complexity 185 (threshold 15). Drivers by points: if/else 54 (105 pts), loops 26 (40 pts), boolean chains 30, ternaries 7 (10 pts) (nesting depth added 68). Of this number, 182 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d59036fa9401c42edb1c54011ea27746559c4eb5af158079b999e1561cec666"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputerUseLoop.run (cognitive 172): ComputerUseLoop.run has cognitive complexity 172 (threshold 15). Drivers by points: if/else 51 (132 pts), match/switch 4 (14 pts), boolean chains 9, error handling 4 (9 pts), ternaries 3 (7 pts), loops 1 (nesting depth added 100). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"387743eb36a5976973af723b73a035e11471d52f32e34d41ef423e5396a7c299"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusBundle.load (cognitive 169): OsaurusBundle.load has cognitive complexity 169 (threshold 15). Drivers by points: if/else 66 (124 pts), loops 14 (21 pts), boolean chains 14, error handling 5 (7 pts), match/switch 1 (2 pts), ternaries 1 (nesting depth added 68). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/OsaurusBundle.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e815952b1c30bca36e1fb7421deed45559d3054b28dceed1292bad4d1a0acad2"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatView.chatModeContent (cognitive 163): ChatView.chatModeContent has cognitive complexity 163 (threshold 15). Drivers by points: if/else 58 (94 pts), ternaries 30 (44 pts), boolean chains 23, loops 1 (2 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":11698}}}],"partialFingerprints":{"codehealthFindingId/v1":"1628ad3c433453394221dc18b0013c433684562fb102878788c4d2d48ce2b54a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlock.generateBlocks (cognitive 160): ContentBlock.generateBlocks has cognitive complexity 160 (threshold 15). Drivers by points: boolean chains 72, if/else 30 (61 pts), ternaries 8 (20 pts), loops 3 (7 pts) (nesting depth added 47). Of this number, 157 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a744cc2af713c7f20e9cfd97467f264adbc871ac102e1bce933a9338f6dd19a"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runAgentLoopCaseWithSettings (cognitive 138): EvalRunner.runAgentLoopCaseWithSettings has cognitive complexity 138 (threshold 15). Drivers by points: if/else 54 (77 pts), boolean chains 27, loops 15 (20 pts), ternaries 5 (7 pts), match/switch 2 (4 pts), error handling 2 (3 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efbc3076c52648a199f5fef50c35e20e5ef6896b018170bbd22a396009583f3"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenizerBridge.applyChatTemplate (cognitive 137): TokenizerBridge.applyChatTemplate has cognitive complexity 137 (threshold 15). Drivers by points: boolean chains 76, if/else 30 (40 pts), ternaries 4 (10 pts), error handling 5 (9 pts), loops 1 (2 pts) (nesting depth added 21). Of this number, 135 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"db00edf010af70a0170da785936dd254603845395b57948378af4ecbb78fb3a8"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownBlockParsing.swift.parseBlocks (cognitive 135): MarkdownBlockParsing.swift.parseBlocks has cognitive complexity 135 (threshold 15). Drivers by points: if/else 33 (88 pts), loops 8 (22 pts), boolean chains 18, ternaries 3 (7 pts) (nesting depth added 73). Of this number, 125 points are the body\u0027s own statements and 10 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":"Packages/OsaurusCore/Utils/MarkdownBlockParsing.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10ddf7d75deb239b682d56068ad7734fc0cdf6184fca220eb7bf2f0147e0052"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatEngine.completeChat (cognitive 132): ChatEngine.completeChat has cognitive complexity 132 (threshold 15). Drivers by points: if/else 19 (72 pts), ternaries 10 (33 pts), boolean chains 14, error handling 2 (6 pts), loops 2 (6 pts), match/switch 1 (nesting depth added 84). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d71e846b4184b6d14a372b1c83db592f4e01e5a1a3dea934e8ca13e76fad1ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDownloadService.runOrchestration (cognitive 125): ModelDownloadService.runOrchestration has cognitive complexity 125 (threshold 15). Drivers by points: if/else 35 (80 pts), ternaries 7 (17 pts), boolean chains 12, loops 3 (7 pts), match/switch 2 (6 pts), error handling 3 (nesting depth added 63). 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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee52af67216de2fbb09c979e80e6a9263dc286720c9317675c9c3c5af14b53c"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleChatCompletions (cognitive 123): HTTPHandler.handleChatCompletions has cognitive complexity 123 (threshold 15). Drivers by points: if/else 34 (86 pts), loops 4 (12 pts), boolean chains 8, match/switch 2 (7 pts), error handling 3 (5 pts), ternaries 2 (5 pts) (nesting depth added 70). Of this number, 119 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15297}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ba6ca82bec40c3f98bde4790734ec4b6c182bc0e66bdbd1dacc0fa15cadb82"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemPromptComposer.appendGatedSections (cognitive 123): SystemPromptComposer.appendGatedSections has cognitive complexity 123 (threshold 15). Drivers by points: if/else 45 (70 pts), boolean chains 30, ternaries 8 (21 pts), loops 1 (2 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc9bdd612a66fbaa9617046ae74e78c01a24d3d1cb30a678d88d06bd1f9d13e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatEngine.wrapStreamWithLogging (cognitive 121): ChatEngine.wrapStreamWithLogging has cognitive complexity 121 (threshold 15). Drivers by points: if/else 38 (100 pts), boolean chains 11, ternaries 2 (4 pts), error handling 3, loops 1 (2 pts), match/switch 1 (nesting depth added 65). Of this number, 119 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0e722489ac4082880fc176c337f1c15a32891ff24413a7e76d41b518d798df"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.loadContainer (cognitive 116): ModelRuntime.loadContainer has cognitive complexity 116 (threshold 15). Drivers by points: if/else 39 (83 pts), error handling 8 (16 pts), boolean chains 11, ternaries 2 (4 pts), loops 2 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":4841}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cad0c2170e744bf6b2d45067a614b7e3ac5603a324fd5f8e4cfdfad32688007"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleOpenResponsesStreaming (cognitive 115): HTTPHandler.handleOpenResponsesStreaming has cognitive complexity 115 (threshold 15). Drivers by points: if/else 28 (78 pts), boolean chains 11, ternaries 4 (10 pts), match/switch 2 (6 pts), error handling 2 (5 pts), loops 2 (5 pts) (nesting depth added 66). Of this number, 112 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18604}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6b5a716f869aab5e30a9f5cb2e05b9f662b718b3d8c324f0e1e0704e52c4dd"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalVisionEvidence.read (cognitive 112): LocalVisionEvidence.read has cognitive complexity 112 (threshold 15). Drivers by points: if/else 38 (56 pts), boolean chains 44, ternaries 4 (7 pts), error handling 3 (5 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4156650657183c81b9c5ab5d38323e594dc61cacc0d9100d980d25bcd3dd8f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoopEvaluator.runConversation (cognitive 110): AgentLoopEvaluator.runConversation has cognitive complexity 110 (threshold 15). Drivers by points: if/else 42 (59 pts), boolean chains 21, ternaries 17, error handling 4 (6 pts), loops 3 (4 pts), match/switch 2 (3 pts) (nesting depth added 21). Of this number, 78 points are the body\u0027s own statements and 32 belong to 7 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, 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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"657732e46d73b0f3eb3f2a0a3fbd2422c3c047957cb5aa04647016e349310790"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskState.record (cognitive 109): AgentTaskState.record has cognitive complexity 109 (threshold 15). Drivers by points: if/else 40 (58 pts), boolean chains 33, ternaries 8 (15 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5fc2b620c468d0b98e733bbdb80d3ea39ab2136be007b96120b21d3c86d1e8"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runCacheProofCase (cognitive 108): EvalRunner.runCacheProofCase has cognitive complexity 108 (threshold 15). Drivers by points: if/else 49 (56 pts), boolean chains 32, ternaries 8 (14 pts), loops 5, match/switch 1 (nesting depth added 13). Of this number, 105 points are the body\u0027s own statements and 3 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, 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97ca00e63843b791598fab2771d35107182e8e7ca60f9f014b2ba8e9a47be6e"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenerationService.drive (cognitive 108): ImageGenerationService.drive has cognitive complexity 108 (threshold 15). Drivers by points: if/else 33 (84 pts), error handling 4 (7 pts), boolean chains 6, loops 2 (5 pts), match/switch 1 (4 pts), ternaries 1 (2 pts) (nesting depth added 61). Of this number, 104 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c399c14066920cc6c1b1eb52fe72cc97421148b9a4c69de9ed9fb84e9955009"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMessageCellView.configureAsUserMessage (cognitive 108): NativeMessageCellView.configureAsUserMessage has cognitive complexity 108 (threshold 15). Drivers by points: if/else 36 (64 pts), boolean chains 20, loops 6 (12 pts), ternaries 7 (12 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03153b1f3b90c4aa0e80ca3348acfdcc881329b9819f1e5914c2d25f5e9bfe7"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.planMCPServers (cognitive 107): ConfigPlanner.planMCPServers has cognitive complexity 107 (threshold 15). Drivers by points: if/else 22 (71 pts), loops 6 (18 pts), boolean chains 12, match/switch 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"35617c690cb608793006f391a03afa2f263eb3d7a0ea97abcbaa840581cbd188"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteChatRequest.toOpenResponsesRequest (cognitive 107): RemoteChatRequest.toOpenResponsesRequest has cognitive complexity 107 (threshold 15). Drivers by points: if/else 32 (68 pts), boolean chains 16, loops 3 (9 pts), match/switch 3 (9 pts), ternaries 4 (5 pts) (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":6050}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55ad851fbf32465ecdd97e2aa0427775aaecfec0348fef4025f0d652c627e9d"}},{"ruleId":"D2","level":"warning","message":{"text":"CalculatorNode.exactInteger (cognitive 106): CalculatorNode.exactInteger has cognitive complexity 106 (threshold 15). Drivers by points: if/else 19 (51 pts), ternaries 11 (32 pts), loops 4 (11 pts), boolean chains 7, match/switch 3 (5 pts) (nesting depth added 62). 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":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e070092549b4fd063867e7443cfc7c2751c454e71f1c28cced874c0cc297377"}},{"ruleId":"D2","level":"warning","message":{"text":"GenerationEventMapper.map (cognitive 104): GenerationEventMapper.map has cognitive complexity 104 (threshold 15). Drivers by points: if/else 33 (74 pts), boolean chains 15, ternaries 6 (12 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 48). Of this number, 94 points are the body\u0027s own statements and 10 belong to 4 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":"Packages/OsaurusCore/Services/ModelRuntime/GenerationEventMapper.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1605806fa6f4ea137e22184f444ff3f8163c54010008ea0d1dffd1c162fa4d65"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeCellHeightEstimator.estimatedHeight (cognitive 102): NativeCellHeightEstimator.estimatedHeight has cognitive complexity 102 (threshold 15). Drivers by points: if/else 31 (65 pts), ternaries 8 (20 pts), boolean chains 12, loops 2 (4 pts), match/switch 1 (nesting depth added 48). 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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":4290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9782571bd5b365dfb7bcc1c2582601ea00da6ac50a7a0f1721d8bdf6e3002b9"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAPISummary.parse (cognitive 99): OpenAPISummary.parse has cognitive complexity 99 (threshold 15). Drivers by points: if/else 25 (66 pts), boolean chains 16, loops 5 (11 pts), ternaries 2 (6 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d8938bd7ca3906f48516c3a7b546cf790769aae6430d45a24d678e94a0543d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileReadTool.readResolved (cognitive 98): FileReadTool.readResolved has cognitive complexity 98 (threshold 15). Drivers by points: if/else 48 (65 pts), boolean chains 18, ternaries 3 (7 pts), error handling 2 (4 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"443306f822c3214d8b7404a1404617baf7f2b2031dfdb8166f79b427eaba9599"}},{"ruleId":"D2","level":"warning","message":{"text":"SetupChecker.check (cognitive 95): SetupChecker.check has cognitive complexity 95 (threshold 15). Drivers by points: if/else 27 (53 pts), boolean chains 15, ternaries 6 (15 pts), loops 8 (9 pts), match/switch 1 (3 pts) (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/SetupChecker.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe68ff4b1e5a9240c99877de54e00216d8c671a0b71744433beb5235ffe50fb"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncManageFeed.perform (cognitive 93): SyncManageFeed.perform has cognitive complexity 93 (threshold 15). Drivers by points: if/else 22 (47 pts), error handling 7 (17 pts), boolean chains 11, match/switch 4 (10 pts), ternaries 3 (8 pts) (nesting depth added 46). Of this number, 92 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":"Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06d89a25c10a2564840779719cb9323d939cd0b6df30d89c11b2ab6a7d9d21d"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runToolResultGroundingCase (cognitive 91): EvalRunner.runToolResultGroundingCase has cognitive complexity 91 (threshold 15). Drivers by points: if/else 34 (73 pts), loops 7 (13 pts), boolean chains 3, ternaries 2 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerToolResultGrounding.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ac2018bbba3012195f48db62a20291773950ede98c9665c521bfd111716a29"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchAndExtractTool.enrichedResults (cognitive 91): SearchAndExtractTool.enrichedResults has cognitive complexity 91 (threshold 15). Drivers by points: if/else 22 (69 pts), boolean chains 15, ternaries 1 (6 pts), loops 1 (nesting depth added 52). 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":"Packages/OsaurusCore/Tools/WebSearchTools.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"975d8499dfc0ce9ff4002846e0c669e54f834a5fcf00aeaeefab74dcc7be4bf9"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteChatRequest.toGeminiRequest (cognitive 91): RemoteChatRequest.toGeminiRequest has cognitive complexity 91 (threshold 15). Drivers by points: if/else 23 (57 pts), boolean chains 18, loops 3 (9 pts), match/switch 2 (4 pts), ternaries 3 (nesting depth added 42). Of this number, 90 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5622}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3d3d2966c430591fb1eae7b3c2be72d2c5a3073009c4ea28886b7d154f0461"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handlePluginRoute (cognitive 89): HTTPHandler.handlePluginRoute has cognitive complexity 89 (threshold 15). Drivers by points: if/else 32 (64 pts), boolean chains 11, ternaries 2 (8 pts), loops 2 (4 pts), error handling 1, match/switch 1 (nesting depth added 40). 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2959}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d07b8ea7c554b0cc8482c9c07d18bd004afa2355d0624d1e362945fbb361173"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolRegistry.runPermissionGate (cognitive 87): ToolRegistry.runPermissionGate has cognitive complexity 87 (threshold 15). Drivers by points: if/else 30 (59 pts), boolean chains 12, loops 2 (6 pts), match/switch 2 (6 pts), ternaries 1 (4 pts) (nesting depth added 40). 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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"435ba9327ba74b68b02d33aecfdc2b4ff6d68f68475b6a85967a3a2be2fbe72f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolRegistry.execute (cognitive 87): ToolRegistry.execute has cognitive complexity 87 (threshold 15). Drivers by points: if/else 30 (48 pts), boolean chains 20, ternaries 6 (18 pts), match/switch 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b999feae63e35dac45770bbf23a41ae0163786d98a966b6f6247d88ab88e9b9"}},{"ruleId":"D2","level":"warning","message":{"text":"DesignWorkingStore.validate (cognitive 86): DesignWorkingStore.validate has cognitive complexity 86 (threshold 15). Drivers by points: if/else 18 (44 pts), boolean chains 30, loops 5 (12 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/DesignWorkingStore.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78760ead4a71d9f8eaaccd976d889e5928ee4dd5dee66411cad99ac288700a9"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaNodeExecutor.settings (cognitive 85): MediaNodeExecutor.settings has cognitive complexity 85 (threshold 15). Drivers by points: if/else 37 (70 pts), boolean chains 13, ternaries 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49933416192b4467492219eccb21598846964b484964e5df51fceb3fb8315ca"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRowCellView.configure (cognitive 83): ModelRowCellView.configure has cognitive complexity 83 (threshold 15). Drivers by points: if/else 36 (46 pts), boolean chains 23, ternaries 5 (10 pts), match/switch 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1dd8fc7e933622616d65081e32d9681a770a3aebd6c5574c7a55be25079c3f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportApplier.apply (cognitive 82): ChatImportApplier.apply has cognitive complexity 82 (threshold 15). Drivers by points: if/else 18 (34 pts), ternaries 7 (16 pts), loops 9 (14 pts), boolean chains 10, error handling 3 (6 pts), match/switch 1 (2 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportApplier.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa61b3474c32326087635b00530c7919ff5a813d15ceb323076e144f138d1aac"}},{"ruleId":"D2","level":"warning","message":{"text":"Functions.call (cognitive 80): Functions.call has cognitive complexity 80 (threshold 15). Drivers by points: if/else 24 (49 pts), ternaries 10 (18 pts), loops 3 (8 pts), boolean chains 4, match/switch 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c344f63bf9fdcb52fc5b277fec7e1756f796c411a5be97fbf7d0112a41e331"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFEditor.fillForm (cognitive 80): PDFEditor.fillForm has cognitive complexity 80 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 8 (23 pts), ternaries 6 (19 pts), boolean chains 7, match/switch 3 (7 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFEditor.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"0332953571ed0fb7e2797554290cc7764b9d60274a03deecdee77dfd792c63c8"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cognitive 79): AppDelegate.applicationDidFinishLaunching has cognitive complexity 79 (threshold 15). Drivers by points: if/else 43 (52 pts), boolean chains 10, error handling 5 (7 pts), loops 4 (7 pts), ternaries 2 (3 pts) (nesting depth added 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3db01e15dd6c1190265097c6c41d73805cc914698460f9e9418e5cd5febaee"}},{"ruleId":"D2","level":"warning","message":{"text":"Solver.polynomial (cognitive 79): Solver.polynomial has cognitive complexity 79 (threshold 15). Drivers by points: if/else 18 (45 pts), loops 4 (11 pts), boolean chains 10, ternaries 3 (10 pts), match/switch 2 (3 pts) (nesting depth added 42). Of this number, 75 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7c165a95bd6cc86dfcc289da5e4c522bbba292031dec0159fa5519d9b83d04"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXBatchAdapter.additionalContext (cognitive 79): MLXBatchAdapter.additionalContext has cognitive complexity 79 (threshold 15). Drivers by points: if/else 37 (49 pts), boolean chains 12, match/switch 3 (8 pts), ternaries 3 (7 pts), loops 1 (3 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a7e6ab6bd06eb4564418d0871339f7b171dbb515160e7c9d305cd45c6958e5"}},{"ruleId":"D2","level":"warning","message":{"text":"CompatibilityReport.formatMarkdown (cognitive 78): CompatibilityReport.formatMarkdown has cognitive complexity 78 (threshold 15). Drivers by points: if/else 20 (49 pts), loops 8 (16 pts), ternaries 3 (8 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfd6495632707a5046fc3f00008bfafdbb3f9aa236571e4d2fb7a112edc9eb2"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderChartTool.execute (cognitive 77): RenderChartTool.execute has cognitive complexity 77 (threshold 15). Drivers by points: if/else 33 (45 pts), ternaries 6 (13 pts), boolean chains 12, loops 3 (4 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/RenderChartTool.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0418b6a0596431d2664d0f22022e356c2100744688cbd601673ad7f5e499c9"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXFormula.scan (cognitive 77): XLSXFormula.scan has cognitive complexity 77 (threshold 15). Drivers by points: if/else 17 (40 pts), boolean chains 25, loops 6 (12 pts) (nesting depth added 29). Of this number, 54 points are the body\u0027s own statements and 23 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXFormula.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43c05a1afd15257d3dbae278c9655726da5270409f47f37fc04a45d14b429d3"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDraftOp.parse (cognitive 76): WorkflowDraftOp.parse has cognitive complexity 76 (threshold 15). Drivers by points: if/else 27 (55 pts), boolean chains 12, error handling 4, match/switch 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 30). Of this number, 70 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06cd1923988dbbd3316540ed45bdffe4a054b05e3c1a102c20af5c11af13935"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatView.setupKeyMonitor (cognitive 76): ChatView.setupKeyMonitor has cognitive complexity 76 (threshold 15). Drivers by points: if/else 27 (57 pts), boolean chains 17, loops 1 (2 pts) (nesting depth added 31). 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":13538}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f32bee59ffe8d0e449c290accf89608ec895c8f97a75781507d0597d7d2954"}},{"ruleId":"D2","level":"warning","message":{"text":"ZipArchive.entries (cognitive 75): ZipArchive.entries has cognitive complexity 75 (threshold 15). Drivers by points: if/else 19 (61 pts), boolean chains 9, loops 3 (5 pts) (nesting depth added 44). 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":"Packages/OsaurusCore/Utils/ZipArchive.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15005410119067b00e8a6ddd829937ce4cb54853df80993ea5dda32db19524f"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedArtifact.resolveSourcePathDetailed (cognitive 75): SharedArtifact.resolveSourcePathDetailed has cognitive complexity 75 (threshold 15). Drivers by points: if/else 20 (57 pts), ternaries 2 (7 pts), loops 2 (6 pts), boolean chains 4, match/switch 1 (nesting depth added 46). 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":"Packages/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"1356945c4a2f40b3d2840e6f63d1ffd25e0b58a5a4afa0d44a0323e1daf3e561"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDraftPatcher.apply (cognitive 75): WorkflowDraftPatcher.apply has cognitive complexity 75 (threshold 15). Drivers by points: if/else 20 (52 pts), loops 4 (11 pts), boolean chains 7, ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 42). Of this number, 74 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":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42dccc5cec9e7fcb839a3122ff648885d2d74396d3942a729bbd6d7bae12d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheProofEvaluator.runConversation (cognitive 75): CacheProofEvaluator.runConversation has cognitive complexity 75 (threshold 15). Drivers by points: if/else 20 (38 pts), boolean chains 10, ternaries 5 (10 pts), error handling 3 (8 pts), match/switch 3 (8 pts), loops 1 (nesting depth added 33). Of this number, 70 points are the body\u0027s own statements and 5 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":"Packages/OsaurusCore/Services/Context/CacheProofEvaluator.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda5d8791ff89a7492c0e8ee635495827f11fb9f08c69dd9b13a393e1cfc6f48"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingImportProcessor.install (cognitive 75): PendingImportProcessor.install has cognitive complexity 75 (threshold 15). Drivers by points: if/else 17 (33 pts), ternaries 11 (21 pts), boolean chains 13, error handling 3 (4 pts), match/switch 3 (4 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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1f6c3efba61f2ee8e463b22f9cce8a3a400984437540c916a2fc8491e6d2da"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogLibraryFixture.activityContent (cognitive 74): CatalogLibraryFixture.activityContent has cognitive complexity 74 (threshold 15). Drivers by points: ternaries 27 (54 pts), if/else 9 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 35). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0df6807037a0b57a1a539362db90f9ab7f5ac49014eb42472038776d2d3e521"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaValidator.validateValue (cognitive 74): SchemaValidator.validateValue has cognitive complexity 74 (threshold 15). Drivers by points: if/else 26 (60 pts), boolean chains 8, loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SchemaValidator.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe1bdcb6476f030fe9dd978369305d97bf03106b22f7b2e09a397d0d40b06b9"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteAnthropicNativeStream.consume (cognitive 74): RemoteAnthropicNativeStream.consume has cognitive complexity 74 (threshold 15). Drivers by points: if/else 24 (53 pts), boolean chains 9, match/switch 4 (7 pts), loops 2 (5 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteAnthropicNativeStream.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bed98bd49ae7344c08d6f334487ec6ec101a8bd55bf1b1a6e5a61d66b9df8e"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.buildChatRequest (cognitive 74): RemoteProviderService.buildChatRequest has cognitive complexity 74 (threshold 15). Drivers by points: boolean chains 27, if/else 20 (24 pts), ternaries 19 (20 pts), loops 1 (3 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":3466}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6e6b3adaf294605d1c90cf70c65ea93955fd4bd691f8852d39f0dc0b833dd4"}},{"ruleId":"D2","level":"warning","message":{"text":"Skill.parseYaml (cognitive 73): Skill.parseYaml has cognitive complexity 73 (threshold 15). Drivers by points: if/else 20 (53 pts), loops 4 (12 pts), boolean chains 8 (nesting depth added 41). 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":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1300a812a9f76af86446b607f72b33e1475d13df17cbb2095fe1e819553f13c"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteResponsesNativeStream.consume (cognitive 73): RemoteResponsesNativeStream.consume has cognitive complexity 73 (threshold 15). Drivers by points: if/else 27 (53 pts), boolean chains 10, loops 2 (6 pts), ternaries 1 (3 pts), match/switch 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteResponsesNativeStream.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b28fce6b830578e43713ae2b8afaf520817216bcb36e78952478f698bae53e4"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedArchiveExtractor.inspect (cognitive 72): BoundedArchiveExtractor.inspect has cognitive complexity 72 (threshold 15). Drivers by points: if/else 29 (49 pts), boolean chains 20, error handling 2, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd62632713831cd517f58583b1bb0379826bfca20c51bb5f386cfc11aa3d23f"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSearchTool.execute (cognitive 72): FileSearchTool.execute has cognitive complexity 72 (threshold 15). Drivers by points: if/else 31 (52 pts), ternaries 4 (7 pts), boolean chains 6, match/switch 2 (5 pts), loops 1 (2 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4846}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52a1817011972734cf61032ddc5ebebd2d6397c2af3aa3e316ad7d316b33bcc"}},{"ruleId":"D2","level":"warning","message":{"text":"SafeDiskCachePurge.clear (cognitive 72): SafeDiskCachePurge.clear has cognitive complexity 72 (threshold 15). Drivers by points: if/else 18 (42 pts), boolean chains 21, loops 4 (8 pts), error handling 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":"Packages/OsaurusCore/Services/SafeDiskCachePurge.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"96897a49cdcb12dbfd933fe791e3fd1f31c2775826c74a766ae0e6c8217348f1"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.planAgents (cognitive 71): ConfigPlanner.planAgents has cognitive complexity 71 (threshold 15). Drivers by points: if/else 20 (55 pts), ternaries 2 (7 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"523e13d272d9b46c9ed6f723520d44273db5f31ee25f54f63af5885d85e5405a"}},{"ruleId":"D2","level":"warning","message":{"text":"PrivacyFilterPipeline.applyOutbound (cognitive 71): PrivacyFilterPipeline.applyOutbound has cognitive complexity 71 (threshold 15). Drivers by points: if/else 27 (44 pts), error handling 3 (11 pts), loops 4 (7 pts), match/switch 3 (4 pts), ternaries 2 (3 pts), 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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de0320a2e52717fa663c7412dab2689bac189b49dbe024e249d74153358f9be"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteChatRequest.toAnthropicRequest (cognitive 71): RemoteChatRequest.toAnthropicRequest has cognitive complexity 71 (threshold 15). Drivers by points: if/else 17 (41 pts), match/switch 3 (9 pts), loops 3 (8 pts), boolean chains 7, ternaries 5 (6 pts) (nesting depth added 36). Of this number, 70 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5366}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ecc6ecc9c3274f79907b8439bc02d62963cd93785fdb823ca3fa5b83428c17"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogLibraryFixture.baseContent (cognitive 70): CatalogLibraryFixture.baseContent has cognitive complexity 70 (threshold 15). Drivers by points: ternaries 25 (56 pts), if/else 7 (12 pts), boolean chains 1, match/switch 1 (nesting depth added 36). 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":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"543e8d8ae6ad9873c5d732a2cfb6cb3cf4d686249885dfe6a0442723f8f0e1dd"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderManager.testConnection (cognitive 70): RemoteProviderManager.testConnection has cognitive complexity 70 (threshold 15). Drivers by points: if/else 22 (48 pts), error handling 7 (15 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df15b8843628e00c6436c29aaaa9c8c2f2b438593fedacded1993cbe379f41b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.dispatchSend::runTurn::postProcessToolResult (cognitive 70): ChatSession.dispatchSend::runTurn::postProcessToolResult has cognitive complexity 70 (threshold 15). Drivers by points: if/else 28 (39 pts), boolean chains 28, ternaries 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (ChatSession.dispatchSend, ChatSession.dispatchSend::runTurn, ChatSession.dispatchSend::runTurn::executeToolBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":8519}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b38816531ec649090e9c1ac579fb55cfe8d836f224d86d532057abb71375487"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeToolCallRowView.configure (cognitive 70): NativeToolCallRowView.configure has cognitive complexity 70 (threshold 15). Drivers by points: if/else 31 (43 pts), boolean chains 20, ternaries 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4e3e7c582854eaafa91aa9d7d66a26498d645269f95ccad47c03c1e0cb841f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigChannelPlatform.apply (cognitive 69): ConfigChannelPlatform.apply has cognitive complexity 69 (threshold 15). Drivers by points: if/else 33 (66 pts), boolean chains 2, match/switch 1 (nesting depth added 33). 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigChannelDetails.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c26c838088f8b2c56a21eaef0316554ce795100bfdbd86ce90c26cba99c784b"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalMatrixBuilder.build (cognitive 68): EvalMatrixBuilder.build has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 21 (23 pts), boolean chains 18, if/else 8 (15 pts), loops 8 (12 pts) (nesting depth added 13). Of this number, 67 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e19716259d6a98378544e025d5f29d86bb39d53a40947933173ac60218b8537"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.scoreSpawnWave (cognitive 68): EvalRunner.scoreSpawnWave has cognitive complexity 68 (threshold 15). Drivers by points: if/else 23 (47 pts), boolean chains 14, loops 3 (7 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"65828a11c3f615050b06f304398568f10e7a5efc6de87a74091e34f09219d833"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleConfigAdminEndpoint (cognitive 68): HTTPHandler.handleConfigAdminEndpoint has cognitive complexity 68 (threshold 15). Drivers by points: if/else 22 (39 pts), error handling 5 (10 pts), boolean chains 9, match/switch 4 (9 pts), ternaries 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcec0d2623056aa91986a4ab9d123deffc5c038c622c9cacf3a3d99fb033f351"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.buildURLRequest (cognitive 67): RemoteProviderService.buildURLRequest has cognitive complexity 67 (threshold 15). Drivers by points: if/else 34 (48 pts), boolean chains 12, ternaries 3 (5 pts), loops 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":4101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe9ced843009afdfb95c293abdb7d0caaefbe3b03fad12db1bd5a2292d8efea"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runAppleScriptCase (cognitive 65): EvalRunner.runAppleScriptCase has cognitive complexity 65 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 10 (13 pts), ternaries 7 (13 pts), boolean chains 4 (nesting depth added 24). Of this number, 63 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"760fb9916400f0befcde9ea1e9faed70f0de270818bf72e6b59e370230b4aa6f"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.unloadClaimed (cognitive 65): ModelRuntime.unloadClaimed has cognitive complexity 65 (threshold 15). Drivers by points: if/else 32 (49 pts), boolean chains 16 (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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":2435}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4ff107fe41d7fcd5333445555281c96d8c93b93b091579a0171d09948050f8"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusInspectTool.describeItem (cognitive 65): OsaurusInspectTool.describeItem has cognitive complexity 65 (threshold 15). Drivers by points: if/else 30 (48 pts), boolean chains 10, match/switch 3 (4 pts), ternaries 1 (2 pts), 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":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a08c9c025ad9b1af1b5b2df2a4ac72fe26f12164868ec8d7f47d91de82fe90"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.execute (cognitive 65): AgentChannelCustomJSONRunner.execute has cognitive complexity 65 (threshold 15). Drivers by points: if/else 22 (37 pts), ternaries 9 (18 pts), error handling 5, boolean chains 3, match/switch 1 (2 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"b904f5aebc1c498c6b0f39fad1c7fb47be70cec008603fcdc0cb8d75da4c0eee"}},{"ruleId":"D2","level":"warning","message":{"text":"AssignedPickerHostingView.applyRecipe::visit (cognitive 65): AssignedPickerHostingView.applyRecipe::visit has cognitive complexity 65 (threshold 15). Drivers by points: if/else 21 (53 pts), loops 3 (7 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 38). 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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedNativePicker.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f3b14f7f6ceaf7ffc4d0484626dda0af83c79761cea18b79c4df5adc9b6e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusBundle.select (cognitive 63): OsaurusBundle.select has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 12, loops 6 (10 pts), match/switch 2 (6 pts), ternaries 1 (nesting depth added 26). Of this number, 58 points are the body\u0027s own statements and 5 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":"Packages/OsaurusRepository/OsaurusBundle.swift"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9cfdfd8e03fec7d0ad93fae23cea529ae6b3ede13db66b6c38d085267d6b11f"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityExportService.renderMarkdown (cognitive 63): ActivityExportService.renderMarkdown has cognitive complexity 63 (threshold 15). Drivers by points: if/else 15 (30 pts), ternaries 6 (13 pts), loops 6 (12 pts), boolean chains 8 (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":"Packages/OsaurusCore/Services/Insights/ActivityExportService.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"c531b387884e13444a97a366e39e6726359ccb3587b2c799dec9c1880d4f0725"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatibleStreamParser.processChoice (cognitive 63): OpenAICompatibleStreamParser.processChoice has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (41 pts), boolean chains 11, match/switch 2 (6 pts), loops 2 (5 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c79b36ccdfaa7976d4c17845f8e95ce6967dbc8ef4794b8ba3f953c4b1e6f8"}},{"ruleId":"D2","level":"warning","message":{"text":"RedactFileTool.execute (cognitive 62): RedactFileTool.execute has cognitive complexity 62 (threshold 15). Drivers by points: if/else 28 (44 pts), boolean chains 8, loops 5 (7 pts), match/switch 2, ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/RedactionTools.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8d2bb68797373191519ce7158afd44d36fbf84614adea057d7e4103cc05123"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelInboundRelay.deliverReply (cognitive 62): AgentChannelInboundRelay.deliverReply has cognitive complexity 62 (threshold 15). Drivers by points: ternaries 9 (26 pts), if/else 6 (18 pts), error handling 3 (11 pts), loops 1 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 40). 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b307d6d58b130676489b1f0d61da3858c3a13f256ceeddc621048f428a19f4"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleCompletions (cognitive 61): HTTPHandler.handleCompletions has cognitive complexity 61 (threshold 15). Drivers by points: if/else 17 (41 pts), ternaries 5 (10 pts), loops 2 (5 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14835}}}],"partialFingerprints":{"codehealthFindingId/v1":"761bd3a49ac4e007b3a25e8962742e9a6dff64d36b82ac88d7976ce36130d8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDelegationDispatcher.run (cognitive 61): AgentDelegationDispatcher.run has cognitive complexity 61 (threshold 15). Drivers by points: if/else 19 (42 pts), ternaries 6, match/switch 3 (5 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0c0f15d537567a1f1b75c2ad4f81bc0053f74743c2193ca7341ea02e4d2fa4"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeSearchService.search (cognitive 61): KnowledgeSearchService.search has cognitive complexity 61 (threshold 15). Drivers by points: if/else 11 (36 pts), loops 5 (18 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 40). 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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeSearchService.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"701989a0b84d9aade39d0022a69c666be0e8c409812ac6b4f25c15b4032997df"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogElementAssignments.extendMappings (cognitive 61): CatalogElementAssignments.extendMappings has cognitive complexity 61 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 14 (21 pts), ternaries 3 (10 pts), boolean chains 3 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/DesignLibrary/CatalogElementAssignments.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bc772cfa1bf96e4e62d5ebe6258aaab721eac3233787da5ceda7f70d89eb54"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyProviders (cognitive 60): ConfigApplier.applyProviders has cognitive complexity 60 (threshold 15). Drivers by points: if/else 14 (44 pts), boolean chains 10, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":2060}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7fb71d8b921b5010dc0bee19606ab18c5455f489968dd6d8bd82df9788aa666"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestLog.title (cognitive 60): RequestLog.title has cognitive complexity 60 (threshold 15). Drivers by points: if/else 14 (26 pts), ternaries 10 (21 pts), match/switch 4 (8 pts), boolean chains 5 (nesting depth added 27). 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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bb88f35ac05544ae64f302fa1a1b50697ae7d40fac0a56609aea566fc5b0ff"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvalsCLI.runCommand (cognitive 59): OsaurusEvalsCLI.runCommand has cognitive complexity 59 (threshold 15). Drivers by points: if/else 19 (39 pts), error handling 5 (10 pts), loops 2 (6 pts), boolean chains 3, ternaries 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1afdc580117beef207fb1ff7d44a73bea1bf10ff0184bbf5666abcafe1f9024"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaValidator.check (cognitive 59): JSONSchemaValidator.check has cognitive complexity 59 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 12, loops 4 (9 pts), match/switch 2 (5 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/JSONSchemaValidator.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3a117229192d2ca80613794d188669e939690e0d719882c1a2a57d94b6882d"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.handleOpenResponsesEvent (cognitive 59): RemoteProviderService.handleOpenResponsesEvent has cognitive complexity 59 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 14, match/switch 3 (6 pts), ternaries 1 (2 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2427}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca33d4db1fc32d85efa72b94b83f24ccfd9f7f7c69d1c6f3d721b830e975ff02"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProviderManager.performConnect (cognitive 58): MCPProviderManager.performConnect has cognitive complexity 58 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 6, error handling 2 (5 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 32). 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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce41a1e37ba50434313eada12183cda6063d0b2fae520c8f051352db86e5a23c"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellCommandRiskScanner.parse (cognitive 57): ShellCommandRiskScanner.parse has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (35 pts), boolean chains 11, loops 3 (7 pts), match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 24). Of this number, 55 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ShellCommandRiskScanner.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ffaef9b0a153e27a65e3384bed9051c670d3b617078de728082f6c06c555c1"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runDefaultAgentCase (cognitive 56): EvalRunner.runDefaultAgentCase has cognitive complexity 56 (threshold 15). Drivers by points: if/else 27 (33 pts), boolean chains 10, loops 5 (7 pts), ternaries 3 (4 pts), error handling 1 (2 pts) (nesting depth added 10). 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bb58d4f17fe6dcf297c53a2cd116a194e4467957483944c3bee80d11ddb173"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.bridgeToolEventStream (cognitive 56): ModelRuntime.bridgeToolEventStream has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (46 pts), match/switch 1 (3 pts), boolean chains 2, error handling 2, loops 1 (2 pts), ternaries 1 (nesting depth added 32). Of this number, 53 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":6743}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaec61967f63b5c727d86728d7739a82c49308cb30829dbb9ef4a9bc6b6deefb"}},{"ruleId":"D2","level":"warning","message":{"text":"RetainedToolResultStore.read (cognitive 56): RetainedToolResultStore.read has cognitive complexity 56 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 13, ternaries 4 (9 pts), loops 2 (4 pts), error handling 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/RetainedToolResultStore.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4b5c55a6f55bd518e8b047e2e9441ab569a9dbbd489539d39938cbc0141ecd"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingImportProcessor.prepare (cognitive 56): PendingImportProcessor.prepare has cognitive complexity 56 (threshold 15). Drivers by points: if/else 12 (23 pts), error handling 6 (12 pts), ternaries 5 (11 pts), boolean chains 7, match/switch 2 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c20336551d46eb28f6080517e0725c26034466a6c336f535278d9b9c789d58c"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowStepRisk.badges (cognitive 56): WorkflowStepRisk.badges has cognitive complexity 56 (threshold 15). Drivers by points: if/else 26 (34 pts), ternaries 7 (14 pts), boolean chains 4, match/switch 3 (4 pts) (nesting depth added 16). Of this number, 39 points are the body\u0027s own statements and 17 belong to 4 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":"Packages/OsaurusCore/Services/Workflow/WorkflowTrust.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"198404bf595fa266774ff3cd53cb7bafa06ab3a9aab31426624c5dbfa560bd81"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.init (cognitive 56): ChatSession.init has cognitive complexity 56 (threshold 15). Drivers by points: if/else 32 (35 pts), boolean chains 19, loops 2 (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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"a536ded380ac1f40af4c0f4ba7db6b80446317212ad8fea50d0850792cad2d1c"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownView.applyMixedSegments (cognitive 56): NativeMarkdownView.applyMixedSegments has cognitive complexity 56 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 6, ternaries 2 (6 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"df32e58e5693ed7748ecf9addbfbd6a83f407244778e3f8119cee7d1e0adb44d"}},{"ruleId":"D2","level":"warning","message":{"text":"RunCommand.execute (cognitive 55): RunCommand.execute has cognitive complexity 55 (threshold 15). Drivers by points: if/else 12 (34 pts), loops 3 (9 pts), error handling 3 (8 pts), boolean chains 4 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Run.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fcfebfade7ccdd3ec143a03defa232736a2e7c8b89b1a4f414ff73443e5c6d"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatibleTTSClient.synthesizeStreaming (cognitive 55): OpenAICompatibleTTSClient.synthesizeStreaming has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (37 pts), loops 3 (8 pts), boolean chains 5, match/switch 1 (4 pts), error handling 1 (nesting depth added 32). Of this number, 53 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":"Packages/OsaurusCore/Managers/OpenAICompatibleTTSClient.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f996b6ce64e63f3f31627ef4c0b58120f68f95c99c8494c4f94cb5a9af713cd"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelConnectionService.actionStatus (cognitive 55): AgentChannelConnectionService.actionStatus has cognitive complexity 55 (threshold 15). Drivers by points: if/else 16 (42 pts), match/switch 3 (5 pts), boolean chains 4, ternaries 1 (4 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d580e09fde451ef4e8c60f4d08ea5f276b301bb16dcc2b0e5f3196b933f347"}},{"ruleId":"D2","level":"warning","message":{"text":"DBImportTool.execute (cognitive 55): DBImportTool.execute has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (35 pts), error handling 3 (6 pts), boolean chains 5, ternaries 2 (5 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa925a376666689b7ea5b33a088ef950b2fabc085b039b21f6dd18b533a49fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.dispatchSend::runTurn::executeToolBatch (cognitive 55): ChatSession.dispatchSend::runTurn::executeToolBatch has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 9, loops 4 (7 pts), error handling 1 (2 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (ChatSession.dispatchSend, ChatSession.dispatchSend::runTurn, ChatSession.dispatchSend::runTurn::postProcessToolResult) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":8993}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f0c83d3449030249773d0873b7df58a92f14b5913cbdb3a3945a1d34839c16"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionGate.evaluate (cognitive 54): PromotionGate.evaluate has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 15, ternaries 3 (7 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/PromotionGate.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab893afcb90bea0571a3dacd24998405c18858f116ccdf7e852b323fbb18ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.decodeWAVAudioSamples (cognitive 54): ModelRuntime.decodeWAVAudioSamples has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 22, loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":7779}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0554dd8ed5d943d517f2b6cac90d214dcaedaf8c500f466aeeca8b296c4425"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputerUseLoop.act (cognitive 54): ComputerUseLoop.act has cognitive complexity 54 (threshold 15). Drivers by points: if/else 26 (36 pts), match/switch 4 (7 pts), ternaries 4 (6 pts), boolean chains 5 (nesting depth added 15). Of this number, 52 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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb509b9f089192772cce9b5ce2c92d4b4389b2ef30815cbacfcb3c99ad5666f"}},{"ruleId":"D2","level":"warning","message":{"text":"FolderContextService.buildFileTree::traverse (cognitive 53): FolderContextService.buildFileTree::traverse has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (29 pts), ternaries 5 (15 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderContextService.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b6de710eed91ca7ba46301d8f5cd31c59f71cb6af9c616f88188988f028ebb"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditTool.editDocument (cognitive 52): FileEditTool.editDocument has cognitive complexity 52 (threshold 15). Drivers by points: if/else 14 (20 pts), ternaries 6 (17 pts), boolean chains 10, loops 1 (3 pts), error handling 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3999}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93b30bd10dcddfd88dbb480a90e2b4cc5ea265630d28af689e80ceebb00e3f1"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginHostContext.httpRequest (cognitive 52): PluginHostContext.httpRequest has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (37 pts), loops 3 (7 pts), boolean chains 4, error handling 2, match/switch 1 (2 pts) (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a10af9bf13b7a3a380409ea25176cc556c042392e138afca2470207fe6138c"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowNodeEditor.form (cognitive 52): WorkflowNodeEditor.form has cognitive complexity 52 (threshold 15). Drivers by points: if/else 18 (40 pts), ternaries 3 (9 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8f326f9d2c701fec34735375df33bfada46e1fd48512015f1bf176de7bbe58"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleAnthropicMessagesStreaming (cognitive 51): HTTPHandler.handleAnthropicMessagesStreaming has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 4 (11 pts), match/switch 2 (5 pts), boolean chains 4, ternaries 2 (4 pts), error handling 1 (nesting depth added 25). Of this number, 41 points are the body\u0027s own statements and 10 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17931}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42d9b93d757606e45cd6e79005863ab750460363c18f2faa07f658b9b197eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPickerItem.generateMockModels (cognitive 51): ModelPickerItem.generateMockModels has cognitive complexity 51 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 9 (18 pts), ternaries 2 (10 pts), boolean chains 2 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac7f9b250a65b440c8313bff57e173bcf715cf56c2576d01a542cad2823127e"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowValidator.mediaIssues (cognitive 51): WorkflowValidator.mediaIssues has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 18, loops 3 (5 pts), match/switch 2 (nesting depth added 10). Of this number, 47 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c381133358f3e99a0d5ca90750e6ebcda0e2fae0ef4fac9e957b226b9ddb8c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.runHarnessTurn (cognitive 51): ChatSession.runHarnessTurn has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (35 pts), boolean chains 5, ternaries 2 (4 pts), match/switch 1 (3 pts), error handling 2, loops 1 (2 pts) (nesting depth added 22). Of this number, 47 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSession\u002BHarness.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b8b9531b4e3b898884b23835fc795d25c4af4083669228bd39da3d4fbac6a9"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalMatrix.formatMarkdown (cognitive 50): EvalMatrix.formatMarkdown has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (33 pts), loops 7 (14 pts), boolean chains 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49abfc9fd9c1b4a3c89525ea2a472570a1b1c61a0ed2b895bed428504dda4b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportMCPBuilder.item (cognitive 50): ChatImportMCPBuilder.item has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 8, loops 3 (6 pts), ternaries 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba50c6c77178a0f9b287fb24bce833d0db40349f415462e0d819092a7753ed4"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowFlowCanvas.draw (cognitive 50): WorkflowFlowCanvas.draw has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 9 (19 pts), if/else 8 (14 pts), boolean chains 11, loops 4 (6 pts) (nesting depth added 18). Of this number, 43 points are the body\u0027s own statements and 7 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":"Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowCanvas.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ac61b805ef614c75751fae1a63a6af988d0fabfa77e4030b53e61b68334603"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCommand.runPlanOrApply (cognitive 49): ConfigCommand.runPlanOrApply has cognitive complexity 49 (threshold 15). Drivers by points: if/else 21 (33 pts), loops 4 (7 pts), boolean chains 3, ternaries 2 (3 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"150d438ca09f5ddeec75d7ed62d52d9a21466a87eb96bfb8d03f965cae53d803"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.updateStatusItemAndMenu (cognitive 49): AppDelegate.updateStatusItemAndMenu has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (40 pts), match/switch 2 (5 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70e97e2d0c3a2feef512e5e1845625d5a21d1af2be8e692175e0d65c8bb6d5a"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginHostContext.completeStream (cognitive 49): PluginHostContext.completeStream has cognitive complexity 49 (threshold 15). Drivers by points: if/else 29 (35 pts), boolean chains 4, ternaries 2 (4 pts), loops 3, match/switch 1 (2 pts), error handling 1 (nesting depth added 9). 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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff126755957abb0210a263320995e90aeefd739c7001d225ce94c135a09e89f"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowTestTool.runExamples (cognitive 49): WorkflowTestTool.runExamples has cognitive complexity 49 (threshold 15). Drivers by points: if/else 21 (41 pts), loops 3 (4 pts), boolean chains 2, match/switch 1, ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"8912e1b2a5919c7f60c0e2e3d04607da0948a04c611559544c9cb1bf53b44f28"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceAuditRow.subtitle (cognitive 49): WorkspaceAuditRow.subtitle has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 10, ternaries 2 (4 pts), match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e17f5e36652d4681cd7da3628c5e6f0ad958f90e422efb58696db7c7e918fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessibilityManager.traverseElement (cognitive 49): AccessibilityManager.traverseElement has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 23, if/else 14 (19 pts), ternaries 3 (5 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a95c44597b8b8a18046a0358bdd93104c44b1227f4947dc044da91a51e056c"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogLibraryFixture.chatContent (cognitive 48): CatalogLibraryFixture.chatContent has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 13 (28 pts), if/else 10 (16 pts), boolean chains 3, match/switch 1 (nesting depth added 21). 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":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84420a2d78256c4add5c97e7fe2a6d2b91a1ef77885ad5920f85528bfff5da7"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderManager.connect (cognitive 48): RemoteProviderManager.connect has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 6, error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 21). 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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57371c9a691703a1b7a035b31e9d91fd5095080494850215bf18f259d7e9026"}},{"ruleId":"D2","level":"warning","message":{"text":"Tokenizer.number (cognitive 48): Tokenizer.number has cognitive complexity 48 (threshold 15). Drivers by points: boolean chains 23, if/else 12 (18 pts), loops 3 (6 pts), ternaries 1 (nesting depth added 9). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1945c021fb2cd2d96246eb24dd35a761b75ae1640e3deac097b0cb31f3b9db"}},{"ruleId":"D2","level":"warning","message":{"text":"DispatchEnvelope.badges (cognitive 48): DispatchEnvelope.badges has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 9 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/DispatchEnvelope.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d0e6b7d0a775fa7f3f9155696cc2621e03099eb6974af94baba6edb3292353"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenerationService.generateVideo (cognitive 48): ImageGenerationService.generateVideo has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (31 pts), ternaries 2 (7 pts), boolean chains 4, match/switch 1 (3 pts), loops 1 (2 pts), error handling 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3529d92c859bd660baaf4a18d51b8923aee6c42b20db44118ff25f57000a9f03"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.parseResponse (cognitive 47): RemoteProviderService.parseResponse has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 5 (16 pts), ternaries 6 (12 pts), loops 4 (11 pts), if/else 3 (8 pts) (nesting depth added 29). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":4840}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb27bb89c3c195afd900e784d25646c3ba094bd36ceefbc522a254eb14fb22a"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncConversationMapper.fitTurnObject (cognitive 47): SyncConversationMapper.fitTurnObject has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 6 (10 pts), boolean chains 7 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97526dbf5a7954a02efac5cf83696e925ebdfc28ac3cf53626ea8765d841400"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWriteTool.execute (cognitive 46): FileWriteTool.execute has cognitive complexity 46 (threshold 15). Drivers by points: if/else 25 (34 pts), match/switch 3 (6 pts), boolean chains 5, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":2766}}}],"partialFingerprints":{"codehealthFindingId/v1":"91890506da60fc28a2b8ab92db8766c7bf8c0262357608a7b65ff877c027e046"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechService.startStreamingTranscription (cognitive 46): SpeechService.startStreamingTranscription has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (34 pts), boolean chains 7, error handling 2 (4 pts), ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5f013eb9f3f588ee5821fd9828d05775414e3f702987ff572adc841e564917"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalGenerationDefaults.repairLagunaXS21TopKIfNeeded (cognitive 46): LocalGenerationDefaults.repairLagunaXS21TopKIfNeeded has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21 (38 pts), error handling 3 (5 pts), boolean chains 2, loops 1 (nesting depth added 19). Of this number, 42 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ee19e04212370945597158d0f32d0021e808223d2b5d5ab92abdbaf8fec0e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolEnvelope.fromError (cognitive 46): ToolEnvelope.fromError has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (31 pts), match/switch 4 (8 pts), ternaries 2 (7 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolEnvelope.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b923d54e3eb289738bc8c132885463f57d05104783991e4d757112a4213fe22"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyChannels (cognitive 46): ConfigApplier.applyChannels has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (34 pts), ternaries 2 (6 pts), error handling 2 (4 pts), loops 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c5ce6d7626cf7a76738a2e8ff9ca9930abfffabd47100be4b748d468ded855"}},{"ruleId":"D2","level":"warning","message":{"text":"PrivacyFilterEngine.detect (cognitive 46): PrivacyFilterEngine.detect has cognitive complexity 46 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 6 (13 pts), error handling 1 (4 pts), match/switch 2 (4 pts), boolean chains 2, ternaries 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterEngine.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6c80dbe05a9709a9769e57f3ff128493be927edf475990381b41566078d4e0"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportVerifier.verify (cognitive 46): ChatImportVerifier.verify has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (32 pts), loops 6, boolean chains 4, ternaries 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportVerifier.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"283b4705b69dd585777e8397b796da5b70e14ca2283cbcb26a1b58884da6ba75"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPNodeExecutor.paginated (cognitive 46): HTTPNodeExecutor.paginated has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (36 pts), boolean chains 6, match/switch 1 (2 pts), loops 1, ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/HTTPNodeExecutor.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2da9959ca1ce8d813967fb54be0f8267b9803e15e18600740bb27c441d59012"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.finalizeRun (cognitive 46): ChatSession.finalizeRun has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 18, error handling 2 (6 pts), ternaries 2 (3 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":5881}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a852e06596290ba03371186dfd26b822bb1f13bd392aca336cd9c9efe256f9d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatModelPickerCard.modelColumn (cognitive 46): ChatModelPickerCard.modelColumn has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 13, ternaries 7 (13 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":"Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"453884e69460720411d454f9327d1e9087d631887db15299aea9252e2a2e3d11"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXEditor.renameSheet (cognitive 46): XLSXEditor.renameSheet has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 7 (12 pts), ternaries 4, boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee626319585ca577e57ffefad6ff1cd410be68d2ce38c620e4728c331399e1f"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.score (cognitive 45): EvalRunner.score has cognitive complexity 45 (threshold 15). Drivers by points: if/else 27 (29 pts), boolean chains 11, loops 2 (3 pts), ternaries 2 (nesting depth added 3). Of this number, 43 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7e015e1fe59c1d147b8c78640e1379a8f3e7f435af561968fe727577dd204d"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundTaskManager.dispatchChat (cognitive 45): BackgroundTaskManager.dispatchChat has cognitive complexity 45 (threshold 15). Drivers by points: if/else 25 (28 pts), boolean chains 9, ternaries 4 (5 pts), error handling 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"989568c3cf8873dae663f243d6b32152bd6e32c64178b9a015140b5c973cd208"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadKnowledgeTool.execute (cognitive 45): ReadKnowledgeTool.execute has cognitive complexity 45 (threshold 15). Drivers by points: if/else 24 (32 pts), boolean chains 8, ternaries 2 (3 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b3a9bea60494fb1f3c7af0c8f4f5995eb1a68eee1d85c2cc3b68f25b06adca"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusConfigTool.applyDocument (cognitive 45): OsaurusConfigTool.applyDocument has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22 (26 pts), boolean chains 10, ternaries 2 (6 pts), error handling 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84c24bf70822de70490222a49f7ef8ae7943ed17e1a1e61034cface2ee23b32"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicMessagesRequest.toChatCompletionRequest (cognitive 45): AnthropicMessagesRequest.toChatCompletionRequest has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 5 (16 pts), if/else 8 (13 pts), match/switch 4 (9 pts), loops 3 (7 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cea506cc0610dd2676e5aea244fea3e4fbff2390427095782aadcb85bf3e6ac"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalAgentBridge.scheduleNextRun (cognitive 45): LocalAgentBridge.scheduleNextRun has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (35 pts), boolean chains 10 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"f056ff840ca2124f428279093b56f2e4f02c111a6be9ec8a55c4b596ecf73476"}},{"ruleId":"D2","level":"warning","message":{"text":"FoundationModelService.dynamicSchema (cognitive 45): FoundationModelService.dynamicSchema has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (31 pts), match/switch 3 (6 pts), boolean chains 4, loops 1 (4 pts) (nesting depth added 23). 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":"Packages/OsaurusCore/Services/Inference/FoundationModelService.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60b105913f9907694cb7c3c5c17dfead4e6d14d7c74c4072ae259f22a292e28"}},{"ruleId":"D2","level":"warning","message":{"text":"MemorySearchService.searchTranscript (cognitive 45): MemorySearchService.searchTranscript has cognitive complexity 45 (threshold 15). Drivers by points: if/else 9 (29 pts), loops 3 (11 pts), error handling 2 (3 pts), boolean chains 2 (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":"Packages/OsaurusCore/Services/Memory/MemorySearchService.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9405527632efcf254d44d947a1aba06db809de66941a2aaa8e68b57562a1cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryService.performDistillSession (cognitive 45): MemoryService.performDistillSession has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (20 pts), ternaries 5 (10 pts), error handling 6 (8 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemoryService.swift"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02ba4bbced5a6b322adc1617ba49e2b58a8fbcd075b0ca5d97156b22ec8dd03"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeToolCallRowView.applyAssignedLayout (cognitive 45): NativeToolCallRowView.applyAssignedLayout has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 15, loops 2 (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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3312293ea23cb688f854ef6af3932b018d0b018b9a6f130bf63a021132d732b7"}},{"ruleId":"D2","level":"warning","message":{"text":"ServeCommand.execute (cognitive 44): ServeCommand.execute has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 8, loops 2 (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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Serve.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"334039c5125176305e853913ad3d45c55b86a2f4156b2df21c1d3fae0b227a0f"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runComputerUseLoopCase (cognitive 44): EvalRunner.runComputerUseLoopCase has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (24 pts), ternaries 7 (12 pts), loops 5, boolean chains 3 (nesting depth added 9). Of this number, 42 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"daddfd88dfc13e99dcd663579e0fa8093372fc1916a7ff02a1f54262b88d9fa6"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runPromptSurfaceCase (cognitive 44): EvalRunner.runPromptSurfaceCase has cognitive complexity 44 (threshold 15). Drivers by points: if/else 25 (30 pts), ternaries 4 (6 pts), loops 5, boolean chains 2, error handling 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerPromptSurface.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e94e5c96a10d2f7784bcdf7cf5603cca6a96dda072e76d5666ba5a42fcb9ad"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogAssignmentMenu.allows (cognitive 44): CatalogAssignmentMenu.allows has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 22, if/else 12 (18 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/DesignLibrary/CatalogPreviewInspection.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d8aab037fc4fd63ff1005ef977bf9449e5dc86e59ca7504ce00cf6541e334e"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsInstall.installManual (cognitive 43): ToolsInstall.installManual has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (19 pts), error handling 7 (14 pts), loops 2 (7 pts), boolean chains 3 (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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f52e19a896771f4a9180fdabc4c2ae7629264ee46715bc5107896f38f038f8"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runCapabilityClaimsCase (cognitive 43): EvalRunner.runCapabilityClaimsCase has cognitive complexity 43 (threshold 15). Drivers by points: if/else 26 (32 pts), boolean chains 7, ternaries 2 (3 pts), loops 1 (nesting depth added 7). Of this number, 42 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01d77ac42994248115b3d1b7c559c39fe716778a0c84c873ffa92f02266a205"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.attentionLayerMix (cognitive 43): ModelRuntime.attentionLayerMix has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 14, match/switch 2 (6 pts), loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":3808}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71477461c530208b3a171ed62bd10ddefa5a920efb0f3b996c8365b767450d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ListKnowledgeTool.execute (cognitive 43): ListKnowledgeTool.execute has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (28 pts), ternaries 5 (9 pts), boolean chains 5, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6092b373b959cf07e8dcc620f9685eedc28538fe0e3fac782b996e537db202"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusConfigDocument.translatingLegacyEvents (cognitive 43): OsaurusConfigDocument.translatingLegacyEvents has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 17). Of this number, 40 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b0f839497c8ca171839566cb76b0309d1063f7e4d5c1fe238dc75ae7fb7448"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalVisionEvidence.tensorPayloadSizes (cognitive 43): LocalVisionEvidence.tensorPayloadSizes has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 19, loops 2 (3 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":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a955de8d8e476b7011533ebd8ff995520d9d3a440353769da3aa79eedf50f5"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesItemPayload.transform (cognitive 43): ResponsesItemPayload.transform has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 17, loops 1 (2 pts), match/switch 1 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"609d77bc2ea4fa5777a2ee0400dc4428cb0ad9164a833d8f2da32daf02bfd14a"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXBatchAdapter.generate (cognitive 43): MLXBatchAdapter.generate has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 4, error handling 4, ternaries 2 (3 pts), loops 1 (nesting depth added 9). Of this number, 41 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":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"808345f50d1db5c6897eb8fb25d7d46c05de9da86e48ac7169b586e4c851e348"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncConversationStore.saveTurns (cognitive 43): SyncConversationStore.saveTurns has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 10, loops 4, error handling 1 (2 pts), ternaries 1 (2 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":"Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a34e4c48fd72a93871d1db5c425833f85a7c6153610c9861847b6ec60b56c48"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.send (cognitive 43): ChatSession.send has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 18, ternaries 2, 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7367}}}],"partialFingerprints":{"codehealthFindingId/v1":"33482ddcdfd9a4b3c3d018d8ae7046d5574d137d805dddd068e90b775cccbe1f"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGenerationPanelView.run (cognitive 43): ImageGenerationPanelView.run has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 16 (30 pts), if/else 6 (8 pts), boolean chains 5 (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":"Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"6107e380e5f0847cbfdf64ff67a47d259621a7ae241ea666ff6235ae0f996be0"}},{"ruleId":"D2","level":"warning","message":{"text":"OOXMLText.replace (cognitive 43): OOXMLText.replace has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 7 (12 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 16). Of this number, 34 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/OOXMLText.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bef8893eb986be391aef952b36d82ddba4f1962d94f97da46165ad51631c16"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportCommand.parse (cognitive 42): ImportCommand.parse has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 8, match/switch 3 (4 pts), loops 1 (nesting depth added 10). Of this number, 38 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d3d27ab11d7396645d1fd594a093d19540666a037d1ef651868b4e13bf4110"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.parseMultipartFormData (cognitive 42): HTTPHandler.parseMultipartFormData has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (37 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":19013}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f5955baa5c6382ab65b99a1ccfd096844d5822a85b0fa35ae0b95dc288788f"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellCommandRiskScanner.downloadSources (cognitive 42): ShellCommandRiskScanner.downloadSources has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 13, match/switch 1 (2 pts), loops 1 (nesting depth added 17). Of this number, 41 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":"Packages/OsaurusCore/Tools/ShellCommandRiskScanner.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"466fe15243a58f2601cd659ce1b40c2974fb718887f5b1527fac13ff9cb7b46d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyAgents (cognitive 42): ConfigApplier.applyAgents has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (25 pts), ternaries 4 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb1a9c6b79c3ade5fab16e0779e3819ff6103146f2032a93c22c59354376525"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigYAML.walk (cognitive 42): ConfigYAML.walk has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 4 (9 pts), boolean chains 4, match/switch 1 (nesting depth added 22). 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"55336be3fd5faab0963fa5d0b47452e7d2fd418f95e8d68df2320a97c32dd95c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIPromptBuilder.buildPrompt (cognitive 42): OpenAIPromptBuilder.buildPrompt has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 4 (9 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/PromptBuilder.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"715822bc7a9098ed47b0cdbe73eae89e5f3f95e46d34fdf9af3614690340b412"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentEditService.structure (cognitive 42): DocumentEditService.structure has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 2 (7 pts), boolean chains 2, match/switch 1 (nesting depth added 24). 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":"Packages/OsaurusCore/Services/Documents/DocumentEditService.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"844632241900a84ab9d5d642dc2952bc85b73e818faa2629a964b66874f86384"}},{"ruleId":"D2","level":"warning","message":{"text":"AssignedNativeMenuItems.body (cognitive 42): AssignedNativeMenuItems.body has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 21, if/else 14 (19 pts), ternaries 2 (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"182b0c74b6f7ee5223d44a64a93b039d013f23df5ec8414a1f8da992bcc06400"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportCommand.render (cognitive 41): ImportCommand.render has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 7 (11 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"d597b33895fb6d5cb2d70a693280ed6b2b051027cc4eddbea712e90cc943c805"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvalsCLI.runCaptureScreen (cognitive 41): OsaurusEvalsCLI.runCaptureScreen has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (33 pts), boolean chains 3, loops 2, match/switch 1 (2 pts), error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"299e81ecf1a482b5c3c04c14134c9b0bedf0df717d785ab86686b1705376ef52"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDiff.merge (cognitive 41): ConfigDiff.merge has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 3 (9 pts), loops 4 (8 pts), boolean chains 3, match/switch 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigDiff.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67fcd622e926ba58bd963a303baadd2c7b28ae695e8456559d71dd5eb009e2a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.diffPortableSettings (cognitive 41): ConfigPlanner.diffPortableSettings has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (32 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 2 (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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d29f94748d50366cb98fca0581ae3632e47b660079232280bf792213a908b73"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockKind.== (cognitive 41): ContentBlockKind.== has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 29, if/else 6 (11 pts), match/switch 1 (nesting depth added 5). 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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34ffc25b148380dcfa7f2ab91b991a1abac8eb08a67586b62427823665786fe"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlock.knownFileContents (cognitive 41): ContentBlock.knownFileContents has cognitive complexity 41 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 12, ternaries 2 (8 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cb47d424c818ad71b3068353b3f3cf411a5d9a8006c55ec7f3171f0ef1e545"}},{"ruleId":"D2","level":"warning","message":{"text":"DecisionService.execute (cognitive 41): DecisionService.execute has cognitive complexity 41 (threshold 15). Drivers by points: error handling 6 (18 pts), if/else 4 (17 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/DecisionService.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5c89da6af43f34d216cd57b7d262a5e5e1253c6d7e025e9bdb01aebd59e73e"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesGenerationStream.compatibility (cognitive 41): ResponsesGenerationStream.compatibility has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (27 pts), ternaries 2 (5 pts), error handling 4, loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ResponsesCompatibilityStream.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"04122ba20fb517eb28631830116df01a2c9b5732be11caaecfc12f795eeb36b0"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPElicitationForm.convert (cognitive 41): MCPElicitationForm.convert has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (22 pts), ternaries 4 (9 pts), boolean chains 6, match/switch 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/MCPElicitation.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea814d496396ea4644c1c84421b59869b9a996227f0995b94e6682a7e8a6039"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageModelRequestPolicy.validate (cognitive 41): ImageModelRequestPolicy.validate has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 10, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/ImageModelRequestPolicy.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3267183de4d5667b0bd7e71be29981aea210ea96cebafa5748136d85c521c9"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFieldRow.body (cognitive 41): SettingsFieldRow.body has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 17 (32 pts), if/else 6 (8 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fed924feb6161ef0a2cbe13307f3d88d2772d55ea7f293ef28b8410b3de72c"}},{"ruleId":"D2","level":"warning","message":{"text":"EventEditorSheet.build (cognitive 41): EventEditorSheet.build has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 11 (14 pts), boolean chains 5, match/switch 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Event/EventEditorSheet.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"56438da230eb8559a107766db5d0a0117f61fbf6f8722093367a4d362e11984a"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditTool.normalizingEditShapes (cognitive 40): FileEditTool.normalizingEditShapes has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 15, loops 2 (3 pts) (nesting depth added 12). Of this number, 36 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3628}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7650555d29966f6cf3af732e4d10d0619d0b1b1eaeda84447b0148d4962959d"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDownloadService.transferFile (cognitive 40): ModelDownloadService.transferFile has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 8, error handling 3 (7 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bbf158e957a24fddc32bc53b17293017d6a6ea3a99a48ace4767d93a3e74d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigScheduleFrequency.parse (cognitive 40): ConfigScheduleFrequency.parse has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (19 pts), match/switch 1 (nesting depth added 8). Of this number, 34 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigScheduleFrequency.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e4f9dd758a0286785ba14c7cc3cd3813a268caf6bee5cb3acc55059e2391e4"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeImageJobCoordinator.runJob (cognitive 40): NativeImageJobCoordinator.runJob has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 8, error handling 2 (3 pts), match/switch 1 (3 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 15). Of this number, 39 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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4b2059f51014eac9a540a8c3659d176eb4983a01cbd7f21cfe1516b0bc18c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatEngine.prepareDispatch (cognitive 40): ChatEngine.prepareDispatch has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 19, if/else 16 (18 pts), ternaries 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37708c2f19c1e212ef78d538c9c60a6f41f6601343de5bd90bdeb4de162dfa9"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiffEngine.canonicalLines (cognitive 40): FileDiffEngine.canonicalLines has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 4 (10 pts), ternaries 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 20). Of this number, 22 points are the body\u0027s own statements and 18 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"9990aab30cc0be6418f3b0b25064d1ca3fbf6202bab426347803c65641c8c426"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.processEventPayload (cognitive 40): RemoteProviderService.processEventPayload has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 22, if/else 11 (14 pts), ternaries 1 (2 pts), loops 1, match/switch 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8b6a71385731fe49fb726abb2caa9753d0bba023b34238d9012b362c7506f0"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspacesService.refreshSelectedWorkspace (cognitive 40): WorkspacesService.refreshSelectedWorkspace has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 7, error handling 4, match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8e2502ef70e6816e65e5cbe900b0baaeefee3d08eaea997b8c2740587f0e5d"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaModelCandidate.constraintsSummary (cognitive 40): MediaModelCandidate.constraintsSummary has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (40 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/MediaModelResolver.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"83944bc96d2a63bb6fa7b282ce86171bb9ef41f80a7021757c65d92c47862508"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunner.runMap (cognitive 40): WorkflowRunner.runMap has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 5, loops 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 16). Of this number, 38 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":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"838a643602fe8ee175dae995af62d56c65bcf7df1820dc240cc4067e4d3a16ee"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchCommand.parseOptions (cognitive 39): BenchCommand.parseOptions has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (28 pts), boolean chains 6, match/switch 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 20). Of this number, 37 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"18693089b6222999690c2b4d3e45c4152763f995138489604e0e56c7343855eb"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runMicroPerfCase (cognitive 39): EvalRunner.runMicroPerfCase has cognitive complexity 39 (threshold 15). Drivers by points: if/else 24 (33 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 2 (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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3229fae043d4a4e95db1e5b2b2c8447f84753a5e838c5f58c5d5cfe590f235"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runScreenContextCase (cognitive 39): EvalRunner.runScreenContextCase has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 7 (9 pts), ternaries 3 (6 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 14). Of this number, 37 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06df0a4cd2a157f3b59aa5badbceb31e87328eaf52814de79595be7671663ad"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptionWorker.runLoop (cognitive 39): TranscriptionWorker.runLoop has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 6, error handling 2 (5 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa27a7d851d9b86346181ae4cce79208b64a4c06242e8fbadcbd3ce7965881b"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleChatNDJSON (cognitive 39): HTTPHandler.handleChatNDJSON has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 4, match/switch 1 (3 pts), loops 1 (2 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 14). Of this number, 38 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15863}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cecba3904db6886cc47f7d2f0d642898a8d468b2b79b1b9aa80ffb5e581d20"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.estimatedArchitectureKVHeadroomBytes (cognitive 39): ModelRuntime.estimatedArchitectureKVHeadroomBytes has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 20, if/else 12 (13 pts), ternaries 5 (6 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":3593}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db32ebcaf6291bc0fc728eade92b753e875f476a18835d3b351a5721216b88d"}},{"ruleId":"D2","level":"warning","message":{"text":"Tokenizer.tokenize (cognitive 39): Tokenizer.tokenize has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 14, loops 2 (4 pts), match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e489ba175110b5d4dcf09db1e3c234dba17d846ba0e96ab07df026e6a75ccd"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowValidator.validate (cognitive 39): WorkflowValidator.validate has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 5, loops 4, match/switch 1 (2 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"666a0dea798323f2283794b2ea8ba4c03c0a047c9dc82f1c8eda7552a7f4562a"}},{"ruleId":"D2","level":"warning","message":{"text":"FileChangeJournal.convertSandboxChanges (cognitive 39): FileChangeJournal.convertSandboxChanges has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (25 pts), ternaries 2 (6 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de34d1147dc3a0660e35a9a812531f8fa3288038168491b619fb5fb1f45fe7e"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeIndexService.scanIndexableFiles (cognitive 39): KnowledgeIndexService.scanIndexableFiles has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6698b0d49ecec4d84a542bec70658f497e5963b486be2548a9a9b47752b9fb6d"}},{"ruleId":"D2","level":"warning","message":{"text":"RunWorkflowTool.execute (cognitive 39): RunWorkflowTool.execute has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (23 pts), ternaries 7 (10 pts), boolean chains 6 (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":"Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"597e8afaf2f0db43c8261ac39dba3fea982d21718b25cc70586a9ef56d0e3975"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXEditor.shiftAnnotations (cognitive 39): XLSXEditor.shiftAnnotations has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 8 (15 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6267ebb46e9ea9ea460387736522a5b02147a7eda7628ab23bc39fe35acd335"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellArgs.split (cognitive 39): ShellArgs.split has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (29 pts), match/switch 2 (5 pts), boolean chains 4, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/Stdio/ShellArgs.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"196c28321924c53e294ec6014a9cf97fea65417ff7ff690512c7858ffad44ed4"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageCatalogSource.item (cognitive 39): LanguageCatalogSource.item has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 7, ternaries 3 (5 pts), match/switch 2 (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":"Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a45c63bb0151926f91e061d71f086776bf5e583459eed4ec3929154a076f73"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockMemoizer.blocks (cognitive 38): BlockMemoizer.blocks has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 31, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/BlockMemoizer.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c5700134f862020bc6807028d781b3d80f3f8366ff3cd8cbcf89a6ab226f63"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleSessionEndpoint (cognitive 38): HTTPHandler.handleSessionEndpoint has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (25 pts), ternaries 5 (9 pts), boolean chains 4 (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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8502}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacb8430e85cf71b87737d3e84edc939835a47c59a412d7ceafc0563f7af1e77"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.decodeOllamaChatRequest (cognitive 38): HTTPHandler.decodeOllamaChatRequest has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 3 (8 pts), boolean chains 7 (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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15815}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a3e3391267e74940ba1b111a3e2afd0058a9e0daff72bc5ae2666b759d46fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.computeWeightsSizeBytes (cognitive 38): ModelRuntime.computeWeightsSizeBytes has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 10, loops 5 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":8011}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fae5206d43541b717774c8be1ad25886d6c04f03ccbdde95869834b2db9457"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesDiscoverTool.execute (cognitive 38): CapabilitiesDiscoverTool.execute has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (28 pts), loops 5 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb6cfde549f35fa096ce9742b833617c520a434f196bc28cc218f706b14a40c"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserSnapshotFormatter.format (cognitive 38): BrowserSnapshotFormatter.format has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (6 pts), ternaries 2 (6 pts), boolean chains 3, match/switch 1 (nesting depth added 18). 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":"Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3476041ec7d75a2ff7fabe677e07add899237ebbc55d5a8ddb0b9d06e19e009"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiffEngine.collapse (cognitive 38): FileDiffEngine.collapse has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 7 (16 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 2 (nesting depth added 17). Of this number, 27 points are the body\u0027s own statements and 11 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":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"163bba22ff40852bd8a67b2da831ef9e8cf580ca7e393ca24987334904884aa0"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesToolChoiceContract.enforce (cognitive 38): ResponsesToolChoiceContract.enforce has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (27 pts), error handling 2 (5 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeebb41f84abd4dfecc11385197ac548bf546b2e25f3ecdf05242081b0b96de7"}},{"ruleId":"D2","level":"warning","message":{"text":"State.consume (cognitive 38): State.consume has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 2 (6 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteResponsesPrivacyStream.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b0e86481bdb09d0ed3669d3b4f81d6a7056602f422e63c9d86a1177892b3bb"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncHostRunner.process (cognitive 38): SyncHostRunner.process has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 14, error handling 1 (2 pts), match/switch 2, ternaries 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"91131ab4c44550a9cf2632fb8d608a5dfd14994a39d720871953261a27514290"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.normalBody (cognitive 38): FloatingInputCard.normalBody has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (27 pts), boolean chains 11 (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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c127b72bd03088cf21211bc55a74bcc4d4e3459cdb9e7cf399c0536950f282"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXEditor.dropCachedFormulaResults (cognitive 38): XLSXEditor.dropCachedFormulaResults has cognitive complexity 38 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 5 (11 pts), boolean chains 7, ternaries 1 (4 pts) (nesting depth added 19). Of this number, 34 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0e1ab4ef6726c2b756ad65b71828adf9bc4028b1ca5b38d378fb808ffe3b76"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPCommand.execute (cognitive 37): MCPCommand.execute has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (22 pts), ternaries 2 (5 pts), boolean chains 4, error handling 4, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/MCPCommand.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f6ac7251116907daf24e27502a9fe4823b8dc1864bc33503246a3d228241bc"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaValidator.validateObject (cognitive 37): SchemaValidator.validateObject has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 6, loops 3 (4 pts), ternaries 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":"Packages/OsaurusCore/Tools/SchemaValidator.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc5e374e1bc4a6a1b100887f11f64e7de281742b71766998533a4b7ccdde3b0"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchAndExtractTool.execute (cognitive 37): SearchAndExtractTool.execute has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (22 pts), ternaries 6 (8 pts), loops 1 (4 pts), boolean chains 3 (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":"Packages/OsaurusCore/Tools/WebSearchTools.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47a44f02d91a75ed7f4fae20e4e673cf9c23aaf4810f9512964bfc976565002"}},{"ruleId":"D2","level":"warning","message":{"text":"Template.document (cognitive 37): Template.document has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (35 pts), ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Template/Template\u002BAgent.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"144b7d2579d0f443b838f45ad0c181126adffac52bbd987212f5c681cb511e83"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeProofValidator.appendProvenClaimIssues (cognitive 37): RuntimeProofValidator.appendProvenClaimIssues has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (33 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/RuntimeProofValidation.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"c792ffe46814020864c90170910b2008d5165097de0863ea3ed8b977ec7f0c1f"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncLegacyImporter.importAll (cognitive 37): SyncLegacyImporter.importAll has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (24 pts), error handling 2 (5 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncLegacyImporter.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf89b6fa6a4f25cfcb26ba76dbd00467496e040980927cd2843125f9194aeae"}},{"ruleId":"D2","level":"warning","message":{"text":"TelegramConnectionService.diagnostics (cognitive 37): TelegramConnectionService.diagnostics has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 9, error handling 2 (3 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"f967e25042f6e2a2d28aacb6a21d062863e6cdee237a9b9239d64f58c75cc18d"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownTableView.updateCells (cognitive 37): NativeMarkdownTableView.updateCells has cognitive complexity 37 (threshold 15). Drivers by points: loops 8 (16 pts), if/else 7 (14 pts), ternaries 3 (5 pts), boolean chains 2 (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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1dad6025a00934a1b05d7eeb77264b92b534e9c1aab9b6405dfa8530473092"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCategory.from (cognitive 37): ToolCategory.from has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 31, 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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b050323ecab851fe8e011b99bd0cb735c10af82f4516f554c66b623b797d83"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPWWWAuthenticate.parseParams (cognitive 37): MCPWWWAuthenticate.parseParams has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 5 (11 pts), boolean chains 7 (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":"Packages/OsaurusCore/Services/MCP/OAuth/MCPWWWAuthenticate.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae74a83f489c8df4de3e90d132978bd5e0086929f325806ef9c3ff0fc64b83a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextOptimizerSearch.plan (cognitive 36): ContextOptimizerSearch.plan has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (20 pts), ternaries 6 (9 pts), loops 5, boolean chains 2 (nesting depth added 5). Of this number, 32 points are the body\u0027s own statements and 4 belong to 3 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11bc36fa54a1bf7f23a62c0368f0ab956493578495cc3d47eb141b1520a3cc7"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runArchitectCase (cognitive 36): EvalRunner.runArchitectCase has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 11, if/else 9, ternaries 4 (7 pts), loops 2 (5 pts), error handling 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerWorkflow.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cda17c2481c6aa9eac761d274c7aa037e56559afdd01050dc45c14f72058cc"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWriteDocumentRouting.workbook (cognitive 36): FileWriteDocumentRouting.workbook has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FileWriteDocumentRouting.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcc40c553bc25769be04f906553935d794bde888c9031538c8eb9e0dc9c6b41"}},{"ruleId":"D2","level":"warning","message":{"text":"InsightsService.filterInMemory (cognitive 36): InsightsService.filterInMemory has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 15, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a40a7655cbeed8808dbe971bd01ded0157f38860e1ca9aabdc16c0f52b83ea"}},{"ruleId":"D2","level":"warning","message":{"text":"Solver.solve (cognitive 36): Solver.solve has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 13, loops 3 (4 pts), ternaries 3 (nesting depth added 6). Of this number, 28 points are the body\u0027s own statements and 8 belong to 4 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":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37ec1127feb895ea92d48e3cedcc007e06b1dd5e1d9e10d439c2a766897adff"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineMathScanner.split (cognitive 36): InlineMathScanner.split has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 8, loops 2 (4 pts), ternaries 1 (nesting depth added 15). Of this number, 34 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/InlineMathScanner.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a1d9085080c977d272d26f91672eb3fbb8c84432cb0eddfd03288be6c10b5b"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenContextDistiller.sampledItem (cognitive 36): ScreenContextDistiller.sampledItem has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (25 pts), ternaries 3 (6 pts), boolean chains 4, match/switch 1 (nesting depth added 15). 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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e9dc5f60e9eb461594f68656909a13dd3ca8c885440282c9a9fa51bd98a0a1"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiff.partialToolName (cognitive 36): FileDiff.partialToolName has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 12, loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/FileDiff.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdc3bd9881e7afa61167b32b1f4fd6599d91a9b65197f08ffa6075bb9a29dd8"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduleFrequency.nextRunDate (cognitive 36): ScheduleFrequency.nextRunDate has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (33 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 18). 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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b950767c3788d2a5e25562be30712d8819506c50b6123d2851defa43144395d2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowCondition.evaluate (cognitive 36): WorkflowCondition.evaluate has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 8, match/switch 2 (3 pts), ternaries 2 (3 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":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"10edc0a46c6c21b2efb485b4188c92a8a7a8f1257bf244d508ed18c1288e4e6a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelAccountMigration.splitTriggers (cognitive 36): ChannelAccountMigration.splitTriggers has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 4 (8 pts), boolean chains 3 (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":"Packages/OsaurusCore/Services/AgentChannel/ChannelAccountMigration.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a8741404965bfbe0eddd25ac2dffbe09178135c8b42ad6566fb7b53fa62650"}},{"ruleId":"D2","level":"warning","message":{"text":"FoundationModelService.streamWithTools (cognitive 36): FoundationModelService.streamWithTools has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (28 pts), error handling 2 (4 pts), loops 1 (3 pts), boolean chains 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":"Packages/OsaurusCore/Services/Inference/FoundationModelService.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"54925a0e4bb73af291a6210a3a2f365d32c7a088c63c073f8898affa5d8d7371"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryCenter.take (cognitive 36): DiscoveryCenter.take has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (31 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 14). Of this number, 33 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0712daa8fdee48bb9da387afdd52b7f9df67604833d85a4098856bcc0a05c755"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageSubagentKind.resolveModel (cognitive 36): ImageSubagentKind.resolveModel has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 13, ternaries 4 (8 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":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b669b77e62f6c125986b23e9c737d6c7d1895ee9c6fd4505f76660a9de3edde7"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilityRowBuilder.build (cognitive 36): CapabilityRowBuilder.build has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 7, ternaries 2 (5 pts), loops 3 (4 pts) (nesting depth added 12). Of this number, 35 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":"Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"521e996068a97c756ee50b7a27b021da6c830c7ee7470c5fcd2980472104e5fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.dispatchSend (cognitive 36): ChatSession.dispatchSend has cognitive complexity 36 (threshold 15). Drivers by points: if/else 157 (345 pts), ternaries 36 (91 pts), boolean chains 83, loops 10 (26 pts), error handling 8 (14 pts), match/switch 1 (2 pts) (nesting depth added 266). 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. This shape REPEATS in the file: 3 other methods here (ChatSession.dispatchSend::runTurn, ChatSession.dispatchSend::runTurn::postProcessToolResult, ChatSession.dispatchSend::runTurn::executeToolBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7577}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ccabaa7fb7acaf52654af94186606e3a519beca84eb09fb55cdc74becb59b3"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewGenerator.resultPreview (cognitive 36): PreviewGenerator.resultPreview has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (21 pts), ternaries 5 (14 pts), boolean chains 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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98aa481d2d9b3652ec402cef32afa28868117deefbb613967100af63cef368b"}},{"ruleId":"D2","level":"warning","message":{"text":"ShowCommand.printFormattedOutput (cognitive 35): ShowCommand.printFormattedOutput has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 9, loops 4 (5 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"871696697f7c4da04fcf63647dcb01d220becd697798ebd7dab9c124c8932d53"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalCaseTelemetry.isEmpty (cognitive 35): EvalCaseTelemetry.isEmpty has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 35. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"545d562057d40ebdf7a06e54d505b33a82ae725a2ef86ebb9eed6a2f1e386820"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.scoreSpawnResidencyLane (cognitive 35): EvalRunner.scoreSpawnResidencyLane has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 10, ternaries 3 (4 pts), loops 1 (nesting depth added 9). Of this number, 32 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fadf83e574d55cecb754c79aeadf35fe0b5ab660ba0a1c89a434150c129bc9"}},{"ruleId":"D2","level":"warning","message":{"text":"FileCopyTool.execute (cognitive 35): FileCopyTool.execute has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (23 pts), error handling 2 (4 pts), boolean chains 3, ternaries 3, match/switch 2 (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":"Packages/OsaurusCore/Folder/FileCopyTool.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4ce65ade5cff043dcb3a9550aa80217bca68bce35b8bf858908a39b9784984"}},{"ruleId":"D2","level":"warning","message":{"text":"CNContactsService.search (cognitive 35): CNContactsService.search has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 13, match/switch 1 (2 pts), loops 1 (nesting depth added 11). Of this number, 34 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":"Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec11fafebd146a79c47bfcc43f4f9e5b39adb984282282c4661602d2e1e2681c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.summarizePortableSettings (cognitive 35): ConfigPlanner.summarizePortableSettings has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 9, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fc55ad4b6fb7108d49874622bcea9212d2e95c3737b535e6769070e17bb744"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelPublishService.publish (cognitive 35): AgentChannelPublishService.publish has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 5, match/switch 3 (4 pts), ternaries 2 (4 pts), error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"7065ef09760cee5593e80873c3907b6bc8e440a48e9088e9b25301f296e39935"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeHarnessAdapter.launchPlan (cognitive 35): ClaudeCodeHarnessAdapter.launchPlan has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 8, ternaries 5 (8 pts), match/switch 2, 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":"Packages/OsaurusCore/Services/Harness/ClaudeCodeHarnessAdapter.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8728ca9db90c38bc5723b3ca2cfec66e9b1acbe37ca43546006a88bb96568fe"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryConsolidator.mergeNearDuplicateEpisodes (cognitive 35): MemoryConsolidator.mergeNearDuplicateEpisodes has cognitive complexity 35 (threshold 15). Drivers by points: if/else 5 (14 pts), ternaries 2 (10 pts), loops 3 (6 pts), error handling 1 (5 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemoryConsolidator.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"085041edec3ffd95162b703c9a0db7f6d85700e2280a63571e3dace3e03b7d5c"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.handleGeminiEvent (cognitive 35): RemoteProviderService.handleGeminiEvent has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 3 (8 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b981c44a77ff75836b4a9cb7ce4abc14d754f3c7aa4aea2c7a906ef90ea03949"}},{"ruleId":"D2","level":"warning","message":{"text":"SlackConnectionService.diagnostics (cognitive 35): SlackConnectionService.diagnostics has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 8, ternaries 3 (6 pts), error handling 2 (3 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0f975e0ab59bb02d90f8c8453ebc042961d8298b77d93403d7c7bb1a5177d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportCommand.runRemove (cognitive 34): ImportCommand.runRemove has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (8 pts), boolean chains 4, match/switch 1 (3 pts), error handling 1, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e82bf57aa214dfd49ee7d8ce325b9e67a9b2128256a34aaa57faf316b5a934f"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvalsCLI.computeFloorBreaches (cognitive 34): OsaurusEvalsCLI.computeFloorBreaches has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"8080789ec06bc0cfc892938f0c6fe5f2e2c41ba68d5815ddffe3c990184c5d21"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalScoreboardBuilder.loadEvidenceSummariesRecursively (cognitive 34): EvalScoreboardBuilder.loadEvidenceSummariesRecursively has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (7 pts), error handling 2 (6 pts), ternaries 1 (5 pts), boolean chains 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1249eadc7cd260bcfaf3983a5ed604feb3b812eb6acb1f18a28fb17078f721"}},{"ruleId":"D2","level":"warning","message":{"text":"FileUndoTool.execute (cognitive 34): FileUndoTool.execute has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 6, ternaries 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4596}}}],"partialFingerprints":{"codehealthFindingId/v1":"917004506bdec1c2129cb79e7071c6faa1b382610855ffbbd1af57a33622b100"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handlePairInviteEndpoint (cognitive 34): HTTPHandler.handlePairInviteEndpoint has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 5, match/switch 3 (5 pts), error handling 2, ternaries 1 (2 pts) (nesting depth added 8). Of this number, 30 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9509}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71d5cc433a33d9c023ee2ddf79b7aeb20dc2ee8541ecce6cb4d38d9753e3ebf"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleOllamaGenerate (cognitive 34): HTTPHandler.handleOllamaGenerate has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 3, match/switch 1 (3 pts), ternaries 2 (3 pts), loops 1 (2 pts), error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60b3d0487025362d6806065e5bf376ca33d6e4c38b1fbdd58f556be7243080e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalModelLocator.bundleDiagnostic (cognitive 34): ExternalModelLocator.bundleDiagnostic has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 11, loops 1 (2 pts), ternaries 1 (nesting depth added 7). Of this number, 30 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"f289757eac8d5d0faf47f07747e0cb82d8de58c8154b9525d925f3dd1de19ccd"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesLoadTool.loadMethod (cognitive 34): CapabilitiesLoadTool.loadMethod has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 2 (6 pts), boolean chains 1, error handling 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":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f00050f79ae9dbbc2f918eecf2696475fba94e32cf9eedba2b53936dcd47c6"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusInspectTool.resolvedListEnvelope (cognitive 34): OsaurusInspectTool.resolvedListEnvelope has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 5 (8 pts), ternaries 4 (8 pts), boolean chains 2, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"f620a14272cfc5ca8ed7e10d8f01e686cd9a36802fe216ca27f64753d7975ad3"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView.renderForModel (cognitive 34): AgentView.renderForModel has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 4 (12 pts), boolean chains 4, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Model/AgentView.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53e75dd21fd74345884a6a0fa8b45fbe22ed41d57b1405eb5aaeb3b6ff9286a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyDelegation (cognitive 34): ConfigApplier.applyDelegation has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (20 pts), loops 6 (9 pts), match/switch 1 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 9). 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1138449a8085965da3abd46b81a5b2c0b92487d34ce5a66d29b40d0bc22d6d"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginManager.loadPluginWithError (cognitive 34): PluginManager.loadPluginWithError has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a3f841f2f4b80a7115043e62bb01a35b7c2467c89bd66393e94eaddc01d19c"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelInfo.findModelDirectory (cognitive 34): ModelInfo.findModelDirectory has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 2 (6 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":"Packages/OsaurusCore/Models/Configuration/ModelInfo.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72d505d49d320afcb78a724d313e269edc48c7ccf72900a2fa89805a9ffef6a"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeBlockMasker.appendIndentedCodeSpans (cognitive 34): CodeBlockMasker.appendIndentedCodeSpans has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 5, loops 2 (5 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/CodeBlockMasker.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad6cc804581a22efdf993abb21bf0669c64f95f0707d24176dc1952fec157ef"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportRepoWalker.collect (cognitive 34): ChatImportRepoWalker.collect has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 7, loops 2, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportSourceResolver.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"be38de945935a87419cb7ff6790464488bfc936e040d3ddcae81f48c78f7ead2"}},{"ruleId":"D2","level":"warning","message":{"text":"PPTXEmitter.slides (cognitive 34): PPTXEmitter.slides has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 9, ternaries 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PPTXEmitter.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cc081ef3b9acccdbfbe8cb6e9c25a17aa7bbd2432f4d2272a53427822aa5a4"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryManagementConsoleService.diagnoseStorage (cognitive 34): MemoryManagementConsoleService.diagnoseStorage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14, boolean chains 12, ternaries 5 (8 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac984f7056bb0b95d34d1716987d2368eb93fe6a3d541b67eb81243d8b95992"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginHostContext.complete (cognitive 34): PluginHostContext.complete has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22 (27 pts), boolean chains 6, error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"240fdf6f83a1c6a25a51945a3f0012a0b1dbbaee859015b18a88b721e88f12a0"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatibleToolCallAccumulator.validateToolCallJSON (cognitive 34): OpenAICompatibleToolCallAccumulator.validateToolCallJSON has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (29 pts), loops 3, boolean chains 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":"Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"082522b9df520536c9033c8b92c2d490906ab375a6dad66edeb69f49503de02d"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.geminiImageGenerateContent (cognitive 34): RemoteProviderService.geminiImageGenerateContent has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (24 pts), match/switch 1 (4 pts), error handling 2 (3 pts), loops 1 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":3949}}}],"partialFingerprints":{"codehealthFindingId/v1":"e057ef840fb74269275f14380dbc514af1baa4a940735ade4ccd1a9f5d1635f3"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSyncService.startStream (cognitive 34): WorkspaceSyncService.startStream has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 3, error handling 1 (3 pts), loops 2, ternaries 1 (2 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":"Packages/OsaurusCore/Services/Router/WorkspaceSyncService.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"59264695445f10309a17b7a5c279c7bdf70a389820a894f769d9c84e1c10e635"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowEvalHarness.runArchitect (cognitive 34): WorkflowEvalHarness.runArchitect has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (11 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 14). 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":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4242de0e06fc017b874fbc1b2454cebe0a2378c0660c8f727f4073cd02183560"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowEvalHarness.structureChecks (cognitive 34): WorkflowEvalHarness.structureChecks has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (19 pts), ternaries 4 (8 pts), boolean chains 7 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9d4dd2e82fdf4ff822f14faf8ad0bf96d150eb4dd44f99f91f4b1524c95a5c"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageSubagentKind.run (cognitive 34): ImageSubagentKind.run has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 7 (13 pts), error handling 3 (4 pts), boolean chains 3 (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":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fafd928bef3b77e71fea4b4fb551b8b2cd7d38ed2a98021c44d35b5c1307f6"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseImport.parseXLSX (cognitive 34): DatabaseImport.parseXLSX has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 4 (6 pts), ternaries 2 (4 pts), boolean chains 3, 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":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b796ee5e39a3de15c1efaa968e33e4f8210b417851139187b6aa39a22d7f7839"}},{"ruleId":"D2","level":"warning","message":{"text":"bridge.emitMessage (cognitive 34): bridge.emitMessage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 3, loops 2 (3 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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a2efbabfad82059218966a7b3d440a8175361eb6c0a20bb40a51b804c63f26"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestValidate.validateRoutes (cognitive 33): ManifestValidate.validateRoutes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestValidate.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"80430a803045dd64c9cc141dda158bb928134f499329ef388f52c9543809b1bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellMutationPlanner.targets (cognitive 33): ShellMutationPlanner.targets has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 7, loops 4 (5 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/ShellMutationPlanner.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0ddbcccf2d3b720f85a78c90e43ababab39ee543112e858fe0e7fecf7e1088"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProviderManager.executeTool (cognitive 33): MCPProviderManager.executeTool has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 4, error handling 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"f714735e6a96a081ff324303a847f9f62d511155334e51cc91c771f9dc385a0a"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusConfigTool.loadDocument (cognitive 33): OsaurusConfigTool.loadDocument has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 3 (6 pts), match/switch 2 (4 pts), boolean chains 2, error handling 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24e90ee133824de502ae22b23a8836fca093c7dba8b0c377573decf95a883c1"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiff.partialPythonStringValue (cognitive 33): FileDiff.partialPythonStringValue has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 4 (7 pts), boolean chains 5, match/switch 1 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/FileDiff.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f57d89d1ff2a4e6f66e4df6cc7cbaeb0ab19fcf5a9097f73d250f7ab0a96263"}},{"ruleId":"D2","level":"warning","message":{"text":"MTPLayoutAdvisory.evaluate (cognitive 33): MTPLayoutAdvisory.evaluate has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 8, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/MTPLayoutAdvisory.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c88d0748aaf91c8cb5b66c39400c0a699d27b29b005e70bdd90b9a16c626de4"}},{"ruleId":"D2","level":"warning","message":{"text":"AssignedBaseToggleStyle.makeBody (cognitive 33): AssignedBaseToggleStyle.makeBody has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 15 (25 pts), if/else 5 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/BaseComponentAssignments.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa40196d16eddba1199eee93c581a8e9d7fe0343574c16d614372b43bf642636"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSubagentRunner.run (cognitive 33): AgentSubagentRunner.run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15, ternaries 7 (14 pts), error handling 3, loops 1 (nesting depth added 7). Of this number, 30 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/AgentDelegation/AgentSubagentRunner.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e4837740d4ce8348f14fd9cc6abd8ce9894c70d704a515b543cd4ea0393683"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenizerMetadata.init (cognitive 33): TokenizerMetadata.init has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/LocalGrammarTokenizerProbe.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbb4a2152d12207bbab35a6478ce8508ee91be5e97492fd55baa61f3a538fa3"}},{"ruleId":"D2","level":"warning","message":{"text":"StructuredOutputSchema.dropNullOptionals (cognitive 33): StructuredOutputSchema.dropNullOptionals has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 3 (7 pts), boolean chains 4, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/StructuredOutput.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac51f0b8ca99e797633d25df355ef58d12356daaa922fbfb7398ffc2e5c48d9"}},{"ruleId":"D2","level":"warning","message":{"text":"MemorySearchService.searchEpisodes (cognitive 33): MemorySearchService.searchEpisodes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (7 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemorySearchService.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a8ea29c67ce5c971034bfa1e2ed42cda54ba8bf925ca7119c30a3ca51656c1"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.handleAnthropicEvent (cognitive 33): RemoteProviderService.handleAnthropicEvent has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (25 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 15). 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cefa436e02f675ea6de531d60a64b4298a5ddd65f5619b17171406121cd32a2"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchDiagnostics.classifyFailure (cognitive 33): SearchDiagnostics.classifyFailure has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 23, if/else 10. 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":"Packages/OsaurusCore/Services/Search/SearchTypes.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e021a4b626e65e6730061710bd09970a1361184f20b74d24944e47c1abe2ec6"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudePluginInstaller.rewriteSkillBody (cognitive 33): ClaudePluginInstaller.rewriteSkillBody has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 4 (7 pts), ternaries 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a890fe41cbfb846de6106ab7ad97c071de9317f94ce08a483e2811dc1d50fc5c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.runImageGeneration (cognitive 33): ChatSession.runImageGeneration has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (21 pts), match/switch 2 (5 pts), error handling 3, boolean chains 2, loops 1 (2 pts) (nesting depth added 14). Of this number, 31 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":6923}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b771d0f8210b6103634d3ec54b4d963fba6b7e2547cdae44fdeeeb191b591d4"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.handleFileDrop (cognitive 33): FloatingInputCard.handleFileDrop has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 8, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5342}}}],"partialFingerprints":{"codehealthFindingId/v1":"33050a347cc747d7e15d849ca187e034d111578461db06e536011b37365b8096"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalDisplayView.applyTheme (cognitive 33): TerminalDisplayView.applyTheme has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (8 pts), boolean chains 7, loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/TerminalDisplayView.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b0e10c659857854841acb7b79e473c45653b8a4caf68a43b3dcc653db04380"}},{"ruleId":"D2","level":"warning","message":{"text":"Options.parse (cognitive 32): Options.parse has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"34233ef369bdd9c8cd9bb363eeec645af316b538b183cc39989efab414181e67"}},{"ruleId":"D2","level":"warning","message":{"text":"DesignWorkingStore.init (cognitive 32): DesignWorkingStore.init has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 7, loops 3 (7 pts), error handling 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/DesignWorkingStore.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f180cd7384ee838cbf1dfe27e0ea34b5493ab5c6b2c64a54fdfb6b7669bd54f6"}},{"ruleId":"D2","level":"warning","message":{"text":"CronParser.nextDate (cognitive 32): CronParser.nextDate has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 6, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CronParser.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8574a1e26c46851f4a5bb26dfa4cdca144ef02b3d9fe5f48bf0c326fc97409"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.plan (cognitive 32): ConfigPlanner.plan has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25 (27 pts), boolean chains 3, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e382e120a140794966215bca31026dc427559a719ffc0a885ed39742ad105c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManager.mergeAvailable (cognitive 32): ModelManager.mergeAvailable has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, loops 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2c1117602ae5cfb8d76511387d662fd9273be42a8f7ae0aa9413518a4425c3"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProvider.resolvedHeaders (cognitive 32): RemoteProvider.resolvedHeaders has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/RemoteProviderConfiguration.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb56879c300054e4a24924ae131be0651785efddabee735e2d9937d3ab0029c2"}},{"ruleId":"D2","level":"warning","message":{"text":"RegexEntityDetector.detect (cognitive 32): RegexEntityDetector.detect has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 8, loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/RegexEntityDetector.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6c6385b79483194f21b7a58675c112274fad4eb47f2491d33400981a3bc25b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelConnectionService.authorizeInboundMessage (cognitive 32): AgentChannelConnectionService.authorizeInboundMessage has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 10, error handling 2 (3 pts), ternaries 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ba5e617e06c02d9577c1cf84be830764f5d23d80396af3071d859f9d87751b"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextBudgetManager.summarizeToolResult (cognitive 32): ContextBudgetManager.summarizeToolResult has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 14, 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":"Packages/OsaurusCore/Services/Chat/ContextBudgetManager.swift"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf380354a7f0b4b17c915fef68b9ce324b9a659ccc5df1f96626f070e181cea"}},{"ruleId":"D2","level":"warning","message":{"text":"CSVRowParser.parseRows (cognitive 32): CSVRowParser.parseRows has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 9, 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":"Packages/OsaurusCore/Services/Documents/CSVRowParser.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"285a04bdb566178d7e01ea97e23adecd768eabf8548f36bd6f791085b5e97f9a"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedZipReader.parseEntries (cognitive 32): BoundedZipReader.parseEntries has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 12, 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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d5a62e430a9f8944afec4e07384e7ba8e0a446081eef3aa5cde99f92291fb1"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeVectorIndexer.drain (cognitive 32): KnowledgeVectorIndexer.drain has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 2 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeVectorIndexer.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69e3df1be4fe6e56b48ca76db55ac354ccf10884a080ac8c7911f1efb45a989"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageComposerRequestBuilder.build (cognitive 32): ImageComposerRequestBuilder.build has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 14 (19 pts), boolean chains 7, if/else 4 (5 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/ImageComposerRequestBuilder.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d2e5fa314b831b0c5de245b557bdc0b319ea0ddc540557a851d70d3df370e5"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteResponsesNativeStream.capture (cognitive 32): RemoteResponsesNativeStream.capture has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 6, loops 3 (6 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteResponsesNativeStream.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d9d05f11f62ff169aae954a821854420d45c608810602aa11dea853be6a176"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseImport.scanDelimited (cognitive 32): DatabaseImport.scanDelimited has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 4, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa91918e60b16c5d442325b184deb3d9efa0b9367fce9caad99590aee3f6f9d5"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunView.nodeRow (cognitive 32): WorkflowRunView.nodeRow has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 8, ternaries 6 (8 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca162d8c7c771377f2daef18129834242fac5d07075e3672a2dbd75b5a72c999"}},{"ruleId":"D2","level":"warning","message":{"text":"run_disconnect_ab.stream (cognitive 32): run_disconnect_ab.stream has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 2 (5 pts), boolean chains 3, ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/internal/evidence/2026-08-30-inference-activity-ownership/run_disconnect_ab.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8f6b605f4ca6168f16f127793264a4c0d77f3ac76058e0f9f313e716728639"}},{"ruleId":"D2","level":"warning","message":{"text":"HuggingFaceService.downloadMetadata (cognitive 31): HuggingFaceService.downloadMetadata has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 2 (5 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"088b38b3c77c8e18ca9f80fb8b1e03d430d00557d8847e8fd0ee7edb12e10860"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProviderTool.convertMCPContent (cognitive 31): MCPProviderTool.convertMCPContent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/MCPProviderTool.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac1561b64a4e47aab21ae45aafe0add1c589789abebeef693ae6d31e5355538"}},{"ruleId":"D2","level":"warning","message":{"text":"CalculatorEngine.evaluate (cognitive 31): CalculatorEngine.evaluate has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c241236213bede23335b4192568d16f266148ef88df358147fcc00234cd3b89d"}},{"ruleId":"D2","level":"warning","message":{"text":"EventKitRemindersService.update (cognitive 31): EventKitRemindersService.update has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Reminders/RemindersService.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20894bcc99670321edc00d51f25125b0c830a388810f05f1c9bbf9491b760ce"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDiff.editScript (cognitive 31): ConfigDiff.editScript has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 11, loops 5 (9 pts), if/else 5 (7 pts), ternaries 1 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigDiff.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4af70a6606951393be05e9c36dbe2c59ad68eecb5b827bdfe4c6b73aece6b6a"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPickerItemCache.remoteModelItems (cognitive 31): ModelPickerItemCache.remoteModelItems has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 4 (16 pts), if/else 6 (10 pts), loops 2 (3 pts), boolean chains 2 (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":"Packages/OsaurusCore/Managers/Model/ModelPickerItemCache.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"55922b752b63d3b341067b4dfdb5cad586c6832bdc7f0abd8faab1703fba67ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelOptionsSnapshot.apply (cognitive 31): ModelOptionsSnapshot.apply has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 3, match/switch 1 (3 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":"Packages/OsaurusCore/Models/Configuration/ModelOptionsSnapshot.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"593f1e3c79442e78031567e194b3650be257c422bbb97e67f84bd25e6dc72532"}},{"ruleId":"D2","level":"warning","message":{"text":"MicroPerfEvaluator.runCancellation (cognitive 31): MicroPerfEvaluator.runCancellation has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 4 (5 pts), loops 3 (5 pts), boolean chains 3, 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":"Packages/OsaurusCore/Services/Context/MicroPerfEvaluator.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3c8b78abee384bbb369c03ebdad57837c1c4b2e7afc2d494912b391b381ba3"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesGenerationStream.native (cognitive 31): ResponsesGenerationStream.native has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 2 (7 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ResponsesGenerationEvent.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"900f971771721edc4d9073eff46f84f5bdae2986debaaac9de4990b3a0a447b5"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.enforcingToolUseResultPairing (cognitive 31): RemoteProviderService.enforcingToolUseResultPairing has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 6, loops 3 (5 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":4550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e383cf17ceaf9e51bd85ebf9d62b1f86e7c341b6c5f707eaeb6f8438401118c"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchReadability.fetchAndExtract (cognitive 31): SearchReadability.fetchAndExtract has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 2 (5 pts), boolean chains 4, error handling 3, loops 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":"Packages/OsaurusCore/Services/Search/SearchReadability.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c081b05713718cbeca5016ca85bf54114e11627f17737d95034e0f5ed7fd7760"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDraftTool.queueImport (cognitive 31): AgentDraftTool.queueImport has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 9, error handling 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Agent/AgentDraftTool.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df2f03f47d1c6a63ae4de63dc0003dc5ab652f76b279521f051a8a6e6a38272"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionRow.body (cognitive 31): SessionRow.body has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 5, match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e731903bdae1795bd7531b591393c86164375162872966c74cfeaed2c98d840"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.compactBeforeToolContinuation (cognitive 31): ChatSession.compactBeforeToolContinuation has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 16, if/else 7 (11 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":3845}}}],"partialFingerprints":{"codehealthFindingId/v1":"e692883429417e7f14de9c6d445447e605a48fc5649121305073b92f53ac011b"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.startVoiceInput (cognitive 31): FloatingInputCard.startVoiceInput has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 5, error handling 2 (3 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdcc53eba0046a953392529336529c1ce1ae6d4cbac934609d51344c041454a"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeChartView.applyInspectionStyle (cognitive 31): NativeChartView.applyInspectionStyle has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 6, ternaries 3 (6 pts), loops 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeChartView.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09475424a711c27a6ae73b042b592bb80425337573378ca8e712d2e40616d50"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeThinkingView.applyAssignedLayout (cognitive 31): NativeThinkingView.applyAssignedLayout has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 12, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2fa8365857413ed88d8e1876e2b7a2fa1f0f9b14134b522f260260ec31a699"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPickerOptionsSnapshot.make (cognitive 31): ChatPickerOptionsSnapshot.make has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 6 (15 pts), boolean chains 7, if/else 5 (6 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7891f42e8c2a714da6f71d21f08830bddd581754203e553099357065b9f46eb4"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunView.details (cognitive 31): WorkflowRunView.details has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9023d95512a225cbbf83054f80bc193b426653b696860b70bff724d7b33933"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestValidate.validate (cognitive 30): ManifestValidate.validate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 5, loops 1 (3 pts), error handling 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestValidate.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae77476da2a0eb6e754ef03bdba67fe87d1c570a29a28e1fb2df14c4fc3b7236"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvalsCLI.runDiff (cognitive 30): OsaurusEvalsCLI.runDiff has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 3, match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"332773630a57551c329349d9ded6ac1eda55b62198bf15cf75f2fc4c5e8ddd02"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvalsCLI.runMatrix (cognitive 30): OsaurusEvalsCLI.runMatrix has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (26 pts), match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b571521e199e610f6d4f39644bd4dec68d7433c96c82d098472be2f585525b8"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellRunTool.execute (cognitive 30): ShellRunTool.execute has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 3, error handling 2, loops 1 (2 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":5735}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79b568a010e7efaa25a89f3bade6961142cc6c196e46e16e59fbac67bbedf91"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleAnthropicMessagesNonStreaming (cognitive 30): HTTPHandler.handleAnthropicMessagesNonStreaming has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 4 (9 pts), ternaries 2 (4 pts), boolean chains 2, 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18083}}}],"partialFingerprints":{"codehealthFindingId/v1":"878a55328df4af52c7c74e4075c0fde0172d371611d067e7750715031f00f211"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestValidator.rawResponseSchemaReason (cognitive 30): RequestValidator.rawResponseSchemaReason has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, loops 3 (6 pts), error handling 1 (4 pts), ternaries 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":"Packages/OsaurusCore/Networking/RequestValidator.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7021932c4ba8833c592cfbdaa6744d754436cc738833f2269005506c5a3769d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.isKnownHybridModel (cognitive 30): ModelRuntime.isKnownHybridModel has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 16, if/else 14. 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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":6094}}}],"partialFingerprints":{"codehealthFindingId/v1":"f810a178a1a9ba763083b1c289554bfdf2606bdafb8a2d49cb9ac372556d586b"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSSDResidency.remoteNGramBytes (cognitive 30): ModelSSDResidency.remoteNGramBytes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 13, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelSSDResidency.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85bfc8de8c7a0846ff9a99b182557739cd7d3273f668f28e704a2f8bee177e5"}},{"ruleId":"D2","level":"warning","message":{"text":"CronParser.parseField (cognitive 30): CronParser.parseField has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 4 (10 pts), 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":"Packages/OsaurusCore/Utils/CronParser.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e9ed95ea9a0f431456e8ea5ffa9cc55e534ea27658dd5e4311dd6b47e43907"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserToolExecutor.batchDo (cognitive 30): BrowserToolExecutor.batchDo has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 3 (5 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de6c93b395e1094fadafbe29f7247a05b8a89afa10a1c7e339275d219bfeaf0"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.patch (cognitive 30): ConfigApplier.patch has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (21 pts), ternaries 3 (6 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f04f396200f0d4f4b6802d10f667739587cf83ee10715b21df0720c5d1a658"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSubagentRunner.consumeStream (cognitive 30): AgentSubagentRunner.consumeStream has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 2, loops 2, match/switch 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":"Packages/OsaurusCore/Services/AgentDelegation/AgentSubagentRunner.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"506a9493e6afac25d7b95661ca6cff214fcf4f610e80f426a13ea6203b580483"}},{"ruleId":"D2","level":"warning","message":{"text":"FoundationModelService.streamDeltas (cognitive 30): FoundationModelService.streamDeltas has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 1 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/FoundationModelService.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"70200684fb6c66b02b24caabb10e6449263508c000b4145a3a5fd0b961c93e56"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONMemberScanner.valueEnd (cognitive 30): JSONMemberScanner.valueEnd has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 6, loops 2 (4 pts), match/switch 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/LocalGrammarTokenizerProbe.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a100b800d38471c91235a119520d39852136e4a87b227dfba18e0ee65e904d"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.extractErrorMessage (cognitive 30): RemoteProviderService.extractErrorMessage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (27 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":7765}}}],"partialFingerprints":{"codehealthFindingId/v1":"c686651f0fffc8925ab490bbcad4664ce2142e54bda30bf42cf4631a1d6ef496"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowFailure.classify (cognitive 30): WorkflowFailure.classify has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 9 (17 pts), ternaries 3 (8 pts), if/else 4 (5 pts) (nesting depth added 14). 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":"Packages/OsaurusCore/Services/Workflow/WorkflowFailure.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"277ef7e750c599e425f6f32169c5d27c8e78f5cd08df07ace8a7f56d06eb8e94"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDraftTool.execute (cognitive 30): WorkflowDraftTool.execute has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 4 (10 pts), loops 1 (2 pts), match/switch 2, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7104e86e473f4efe1dd66413b767f9194bb030bb1cb368e6d8d7d5f618e0afb"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowTestTool.summary (cognitive 30): WorkflowTestTool.summary has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (25 pts), ternaries 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"51696db724feabc6cac790487a392a25cc557412d8fb93c865271b81d1f966f2"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectableTextView.applyThemeStyling (cognitive 30): SelectableTextView.applyThemeStyling has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 11, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e2a4ee6adc27ff3e47df960ec0ed742cd17c55ae26b6125dcc7c45d7832415"}},{"ruleId":"D2","level":"warning","message":{"text":"InsightsDetailPane.copyMenu (cognitive 30): InsightsDetailPane.copyMenu has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 2 (8 pts), boolean chains 5 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc1948e123a3d251f2f9f01cda92ee184f6f4da48ca3f5bc925b2582e9570ee"}},{"ruleId":"D2","level":"warning","message":{"text":"DOCXEditor.applyParagraphRun (cognitive 30): DOCXEditor.applyParagraphRun has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 5 (8 pts), ternaries 3 (5 pts), boolean chains 2, 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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"39737c14a3311712eae096e11a319538050d3d9272e0dcda98b0c98e7513291f"}},{"ruleId":"D2","level":"warning","message":{"text":"DOCXEditor.insertParagraph (cognitive 30): DOCXEditor.insertParagraph has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 5 (11 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 9). 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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa10e122f8554983497f2a526e9aee1f0dffcba697d96a17f513d1efcc025582"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXEditor.deleteSheet (cognitive 30): XLSXEditor.deleteSheet has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 7 (12 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b4148c7010073ecf4bfc523a9cc6b62631f41147f099a4c23725a9095a6054"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchCommand.measureOnce (cognitive 29): BenchCommand.measureOnce has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 6, ternaries 2, 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca4c9f489db196022072e55690c9e45bf869db0061f71b8269467cb4f0a5a2e"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalReport.formatTelemetryLine (cognitive 29): EvalReport.formatTelemetryLine has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 6, ternaries 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ff7d6dd92d57aa9d506cabf08f20668d3de0ad725a486d1e1174dfc7ebae88"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusBundle.risks (cognitive 29): OsaurusBundle.risks has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/OsaurusBundle.swift"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f615a7f3bd1c2224963ca3f733b8caab78e6fb58d1ff152fb9dd617619a278"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleMCPCallTool (cognitive 29): HTTPHandler.handleMCPCallTool has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 4, 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17425}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bf9526e6732a82e7a0783821bbd7efa0192bc4bba07133db6a5a74ed52bf92"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.generateEventStream (cognitive 29): ModelRuntime.generateEventStream has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 5, error handling 3 (4 pts), ternaries 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":6235}}}],"partialFingerprints":{"codehealthFindingId/v1":"30adcd240be01ff3da11d75a07ad0801808d99ca1b559afbb75f977e6469fb5d"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.makeMLXChatMessages (cognitive 29): ModelRuntime.makeMLXChatMessages has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, ternaries 2 (6 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":7473}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2c53247644b880ccf865f3ee4c8ef7f1b724ac268dd33c20160009ff7a3d6c"}},{"ruleId":"D2","level":"warning","message":{"text":"EventKitCalendarService.update (cognitive 29): EventKitCalendarService.update has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 5, ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"5791bec23b87227857034390cfbe5701a9c0fe15e2041488a9a39ea139eb0a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleScriptToolDispatch.literalsForDispatch (cognitive 29): AppleScriptToolDispatch.literalsForDispatch has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 15, if/else 10 (14 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ecc8f7b04a4477c048c6e7c16fae25bc176a3e1135e7a2b2ba6ef71e5b2160"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.planTools (cognitive 29): ConfigPlanner.planTools has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (23 pts), ternaries 1 (3 pts), loops 2, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1683}}}],"partialFingerprints":{"codehealthFindingId/v1":"34900385c7ee5504862e1df1758878b989dccf3c08cdaa819e1105068d3d65d1"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManager.fetchRemoteMLXModels (cognitive 29): ModelManager.fetchRemoteMLXModels has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 5 (7 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d28da07a274e412cd0187088fdea6e35c77d8ed83dc747ee590e960b69209f"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManager.refreshAutomaticModelUpdates (cognitive 29): ModelManager.refreshAutomaticModelUpdates has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 4, 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":"Packages/OsaurusCore/Managers/Model/ModelUpdatePolling.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd3a434acb45e0a119e2b929a9d0c69a9f41632ab5e0bc122efaef700f786eb"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenResponsesRequest.toChatCompletionRequest (cognitive 29): OpenResponsesRequest.toChatCompletionRequest has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (7 pts), match/switch 3 (6 pts), boolean chains 2, loops 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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"7231a31f4d9d29db6aa1a7afe8b9bf301561352929c639f9251dfa304b1ff81b"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXModel.localBundleWeightSizeBytes (cognitive 29): MLXModel.localBundleWeightSizeBytes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 10, loops 2 (4 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":"Packages/OsaurusCore/Models/Configuration/MLXModel.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb75665886cc50153b0190fc5b0ec5e67eece703370447210254b7879fc1f54"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowCondition.issues (cognitive 29): WorkflowCondition.issues has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5a63190f4125ef33dd439405ae19d0614594f3c3a7dfff3c955df2d968ec15"}},{"ruleId":"D2","level":"warning","message":{"text":"SpokenDigitRuns.find (cognitive 29): SpokenDigitRuns.find has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 7, ternaries 2 (7 pts), loops 2 (3 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":"Packages/OsaurusCore/PrivacyFilter/Core/SpokenNumberDetector.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f31b741cddf65689caf774d56395312150094702be54c621bf6c293ddf46d5e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelConnectionService.diagnostics (cognitive 29): AgentChannelConnectionService.diagnostics has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 7 (22 pts), if/else 2 (4 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a585dc4c2afe2f0530ea82df4e4186b5f20967cd9113f005ce4044fb6eca465"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextBudgetManager.trimMessagesReportingOverflow (cognitive 29): ContextBudgetManager.trimMessagesReportingOverflow has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 6 (9 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 8). Of this number, 26 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ContextBudgetManager.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"454169bf59922a890aaceee648beec619726c52c82fcbf960a305dea291eadda"}},{"ruleId":"D2","level":"warning","message":{"text":"EventMatcher.rankChannelEvents (cognitive 29): EventMatcher.rankChannelEvents has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 8, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/EventMatcher.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55fe6f3c2894cf4f98e5eb55f6f62300baebfd9935dd6e2042189ab06a1a380"}},{"ruleId":"D2","level":"warning","message":{"text":"FolderEventSource.processCurrentState (cognitive 29): FolderEventSource.processCurrentState has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, ternaries 2 (4 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":"Packages/OsaurusCore/Services/Event/FolderEventSource.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c5edce86a85059b703ac9fa0d1bb7499b5d1e2f37abf037950739cdb382d30"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingImportProcessor.removeItem (cognitive 29): PendingImportProcessor.removeItem has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 7, match/switch 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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f25180586b20c910d303ceda824de98a8336e6992c4a36aec834860cf10bf78"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.snapshotDiagnostics (cognitive 29): Registry.snapshotDiagnostics has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 3, boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a685bba03aa7a9badbc3af093e64325878479fb24213e957c654d614587cfd"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenizerBridge.applyDeepseekV4NativeTemplate (cognitive 29): TokenizerBridge.applyDeepseekV4NativeTemplate has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8, ternaries 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2bff618af04fb4796da3ac9f3be701c7b96bec0b5290938ebf5b63c9301aee"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.dispatchFinal (cognitive 29): RemoteProviderService.dispatchFinal has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 8, match/switch 2 (4 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2834}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48fa7ddc965c75523a797c4cd806a4dfb29393ceb16bfc8db763c5dc09f38f6"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolNodeExecutor.run (cognitive 29): ToolNodeExecutor.run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 4 (7 pts), boolean chains 3, error handling 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":"Packages/OsaurusCore/Services/Workflow/ToolNodeExecutor.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff09acd4e2797da39a254abf6db3f4e3ab65de6c0b850b1c6fdecfe1c884ec5"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.modelPickerOptionsControl (cognitive 29): FloatingInputCard.modelPickerOptionsControl has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (16 pts), ternaries 5 (10 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":3482}}}],"partialFingerprints":{"codehealthFindingId/v1":"315000e7fa97771bf4ea8e4564f3cc1e553748581a4f1ad75f2ea38a4e01c5fa"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewTab.summaryHeadline (cognitive 29): OverviewTab.summaryHeadline has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 10 (19 pts), if/else 2 (4 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6acd40049794a2dad0a3e5766040981979a643d8ffeb4bba915580e6a2f46a"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsManagerView.updateFilteredLists (cognitive 29): ToolsManagerView.updateFilteredLists has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 11, loops 1 (nesting depth added 5). Of this number, 27 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":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd6508d781ab77f64a9e7cd0acd5a7e122e0459104dda18709e84426fb50fb7"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogPreviewInspection.label (cognitive 29): CatalogPreviewInspection.label has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (17 pts), ternaries 5 (9 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/DesignLibrary/CatalogPreviewInspection.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f08f4a796650db37bbe5ca2f44578aa92bc77b216e1de43dec561b92c9c94bb"}},{"ruleId":"D2","level":"warning","message":{"text":"XMLFeedReader.parser (cognitive 29): XMLFeedReader.parser has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 11, 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":"Packages/OsaurusCore/Services/Event/Feed/FeedParser.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb4f06902f60b83cd414fbb1a494d6317bae0afea74d55a04880a086ef90b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPOAuthService.signIn (cognitive 29): MCPOAuthService.signIn has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10, error handling 6 (8 pts), boolean chains 5, ternaries 3 (4 pts), match/switch 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c26fb08bc4e4b15fe929f62f34609674030b079b61363eb72273f1f92e4f871"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportCommand.loadAndCheck (cognitive 28): ImportCommand.loadAndCheck has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 4, loops 2, match/switch 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad0e0921cd33f3c13a2f04d5f3abf3dfa8c20c706ba08252a5fc0508964ac52"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalDiff.classifyPerf (cognitive 28): EvalDiff.classifyPerf has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"a612a16a1fcb3f5e7d2aeadd4a2293883fa930c6a71e78b89fce9a44440226b7"}},{"ruleId":"D2","level":"warning","message":{"text":"Lines.replace (cognitive 28): Lines.replace has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, loops 3, match/switch 1 (2 pts), ternaries 1 (nesting depth added 6). Of this number, 26 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FileEditMatcher.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfbbc21c3a823bb017b824380233dc4c16fec7d2ffb550492e86228be6c8f82"}},{"ruleId":"D2","level":"warning","message":{"text":"FileTreeTool.entries::traverse (cognitive 28): FileTreeTool.entries::traverse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (24 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd9a5d53b629f7940384cdef751e73a8cc1b207c0d7b72323ba97d3bab0e301"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditTool.applyEdits (cognitive 28): FileEditTool.applyEdits has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 3 (11 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4273}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c79e625ac92be2186b4d02525a6fec1ef86753b6f53d44fffe0fed4568bd7f"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundTaskManager.lookupReattachableSession (cognitive 28): BackgroundTaskManager.lookupReattachableSession has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 8, ternaries 2 (3 pts), error handling 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":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe7e34846d6ea7f21242157df33b90cca69109151e59788c43aade787dbd640"}},{"ruleId":"D2","level":"warning","message":{"text":"SpawnPermissionGate.authorize (cognitive 28): SpawnPermissionGate.authorize has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, error handling 2 (3 pts), match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SpawnPermissionGate.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"815c9ff80c5f9b002cfb06d56a19f2485742f0ce4e0d709097d7217b24724c23"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxReadFileTool.execute (cognitive 28): SandboxReadFileTool.execute has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (16 pts), ternaries 4 (8 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1707}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d52bdbc3804f3d7c28ff1ac335c1574f141f55879a1431159073a61e1cacd0"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesLoadTool.loadTool (cognitive 28): CapabilitiesLoadTool.loadTool has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 6 (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":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f401b2383b0bf839131a835e6a4666da4797b722cfaaf2f92377aa4582dbf29"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolWirePropertyOrder.orderSchema (cognitive 28): ToolWirePropertyOrder.orderSchema has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (22 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolWirePropertyOrder.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b453fdda4078dfcdc32386de97703f12f8979408991cb31782b42b00c134a8d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentAction.argumentsJSON (cognitive 28): AgentAction.argumentsJSON has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21 (27 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Model/AgentAction.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"5973cb21f44cbec1149830da5ab06dc2d1a98c8bc67d035016007cc553c5ee16"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyLocked (cognitive 28): ConfigApplier.applyLocked has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22 (24 pts), boolean chains 2, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21a55fa57165468137634724a660fe86e84f3948d4b11c63a74bed3a247009c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyDefaultAgent (cognitive 28): ConfigApplier.applyDefaultAgent has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (19 pts), ternaries 2 (4 pts), match/switch 1 (3 pts), boolean chains 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"263d475b1c70454a64bf281a8e4c6d24725b7151d62b4ca11db1281eb2c89e34"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigChannelAccounts.validate (cognitive 28): ConfigChannelAccounts.validate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 3, loops 2 (3 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigChannelAccounts.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab313587bc7044c6b95f7748a0a83259c15270d51a0ecffced5e9e6bc511ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDiff.walk (cognitive 28): ConfigDiff.walk has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (8 pts), ternaries 3 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 12). Of this number, 21 points are the body\u0027s own statements and 7 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigDiff.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68fa39cddbb842dd988ee8b6735b23dd211ddded239e32d3477f9de66918534"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenResponsesRequest.toResponsesInferenceRequest (cognitive 28): OpenResponsesRequest.toResponsesInferenceRequest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 3 (6 pts), boolean chains 2, loops 1 (2 pts), ternaries 2 (nesting depth added 11). Of this number, 27 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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"012a59dc6b0b14ace75a63d6da4f1935a2c968549d4f9f857940cbfcf0f97a50"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTargetResolver.resolve (cognitive 28): AgentTargetResolver.resolve has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 3 (5 pts), boolean chains 4, ternaries 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":"Packages/OsaurusCore/Models/Agent/AgentDispatchTarget.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3514d867c2e2cdcaf44f40e4456a93bf18c02c5a0a0a68774093f82246b0deba"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolApprovalPresentation.guarantees (cognitive 28): ToolApprovalPresentation.guarantees has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, ternaries 2 (5 pts), match/switch 2 (4 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":"Packages/OsaurusCore/Models/Tool/ToolApprovalPresentation.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8fcbd465de1d1deb96ca4d899994a7bcc7e2c11422ce48d6a34617880284e6"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaSnapshot.renderFull (cognitive 28): SchemaSnapshot.renderFull has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (7 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentBridge/SchemaSnapshot.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"964602ce60cde4c2d45748b17d39f7e84115af6f8e02c3bbbe675d4d5d87d255"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.prepareRequest (cognitive 28): AgentChannelCustomJSONRunner.prepareRequest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 3, ternaries 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a5d1229112f183e5ad0a438caf992243aa8edafccc271b1495929369226bb1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.blockedHostReason (cognitive 28): AgentChannelCustomJSONRunner.blockedHostReason has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7fe30f975c4bccb3a86e0b2f88baf374a9bbde7e7fe1f4d1b2f62a247e4d15"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskState.nextStepBias (cognitive 28): AgentTaskState.nextStepBias has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 6, 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":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"3171e397f9d6ab31c4da79bdc2e0962a78a8adff671ffe7a6d59b625707a70d7"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactionService.renderTranscript (cognitive 28): ContextCompactionService.renderTranscript has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (7 pts), boolean chains 2, match/switch 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":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ab0d38f3f22ee9fce668078769522e793c81b54474869e61de28a8ef017c76"}},{"ruleId":"D2","level":"warning","message":{"text":"WebhookHandshakeResponder.respond (cognitive 28): WebhookHandshakeResponder.respond has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 11, ternaries 2 (4 pts), 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":"Packages/OsaurusCore/Services/Event/WebhookProviderProfile.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"d219a8bb3618820f9ac491c87517173fe2b25180815562b9c6f2f0c4336b4bfa"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiffEngine.diff (cognitive 28): FileDiffEngine.diff has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 12, ternaries 2 (nesting depth added 3). Of this number, 23 points are the body\u0027s own statements and 5 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":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13cd7fb47435674f3379873a24e030a87acb073733fbdbf90da5b52826e7faf"}},{"ruleId":"D2","level":"warning","message":{"text":"SetupChecker.check (cognitive 28): SetupChecker.check has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 5, match/switch 1 (3 pts), 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":"Packages/OsaurusCore/Services/Template/SetupChecker.swift"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0fca4b9d1280536a697acb101918b964da8ac25179babba2b18c6becead46d"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaNodeExecutor.runLocal (cognitive 28): MediaNodeExecutor.runLocal has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, error handling 2 (3 pts), ternaries 2 (3 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"25942f594be7ddb29342160f29c4ba951dfc61a4af5aed18352f9ed41ce679c6"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplyNodeExecutor.run (cognitive 28): ReplyNodeExecutor.run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/ReplyNodeExecutor.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"159ca0edfe9bfc24ef09f8ec1029151ecda26488fbae70d2be442433a45df1f9"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunner.attempt (cognitive 28): WorkflowRunner.attempt has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 4 (7 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"641e6e5b69272fa4032a8093d06ba3d5c81c9c1bca8d72b8cbf32044d7ed6e4b"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunsTool.nodeDetail (cognitive 28): WorkflowRunsTool.nodeDetail has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (22 pts), ternaries 2 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd3034df28b8bc1cdd5c24eca6887941778bf86a461f8c5771ddfc3b4ddd6c2"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeActivityGroupView.applyAssignedLayout (cognitive 28): NativeActivityGroupView.applyAssignedLayout has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 11, 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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1f58a5fcb84586b84570164925aa3741dfdc7b4aa834d6baad1f14720ed7e6"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMessageCellView.configureAsParagraph (cognitive 28): NativeMessageCellView.configureAsParagraph has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 7, ternaries 4 (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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2647}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d6c170e477e2911804f7a042b4ff5b71da5110fa996db28541e9bbff14a5eb"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeToolCallRowView.markdownForConfigResult (cognitive 28): NativeToolCallRowView.markdownForConfigResult has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 9, loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73aefb1583d15e9204cd6bdf49d07e091976bcbebb212262a952c44985db6e0"}},{"ruleId":"D2","level":"warning","message":{"text":"AnchoredCardCoordinator.updatePresentation (cognitive 28): AnchoredCardCoordinator.updatePresentation has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 13 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Common/AnchoredCardPresenter.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04e42bde266ad9b62ff1859cb134b83ca6d03f97085bc45dcbef0d6155e09f2"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsTextField.body (cognitive 28): SettingsTextField.body has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 11 (16 pts), if/else 8 (9 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"290985e5690353abb704578b8a064d1f790348a5261006a3543fe7ff83ca9c64"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRowCellView.layout (cognitive 28): ModelRowCellView.layout has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 2, loops 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":"Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"a799001eab49fbe68f1db006f092a964f4cf62feecb142c328f074c047147e1b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelDestinationEditorSheet.discoverRooms (cognitive 28): AgentChannelDestinationEditorSheet.discoverRooms has cognitive complexity 28 (threshold 15). Drivers by points: if/else 3 (11 pts), ternaries 3 (8 pts), loops 2 (5 pts), boolean chains 3, error handling 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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70b65d34d13420d4e34e34a9a1f815c2512a5d487b169397e4ceba069f2aa76"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsView.body (cognitive 28): SkillsView.body has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (16 pts), ternaries 5 (9 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Skill/SkillsView.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"77156e350a7cf2fbb3ecdcb4382c8046251996bba7602692233345a0249d1a42"}},{"ruleId":"D2","level":"warning","message":{"text":"AssignedNativeMenuItems.menuRows (cognitive 28): AssignedNativeMenuItems.menuRows has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 6 (12 pts), boolean chains 4 (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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf7436e00ce87c4fefd399e7e0ec0bf0c588f13a14c6ea19878751ca16d86f0"}},{"ruleId":"D2","level":"warning","message":{"text":"PPTXEditor.replaceText (cognitive 28): PPTXEditor.replaceText has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (6 pts), loops 4 (5 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6809d423311e7756405e288c6d2842c824555824eca067514ac8526b673c0e5"}},{"ruleId":"D2","level":"warning","message":{"text":"PPTXEditor.setText (cognitive 28): PPTXEditor.setText has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (5 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f0c67728934d83874717f32727ac6afb98e14313899a286330fe3ea9d8eb61"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailMIME.split (cognitive 28): EmailMIME.split has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 9, loops 3 (4 pts), 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":"Packages/OsaurusCore/Services/Event/Email/EmailMIME.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bac26bc3c9bda73dca739fe9801263ccf0fea184ccaea070d6945169fee4ce"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageModelCatalog.makeLists (cognitive 28): LanguageModelCatalog.makeLists has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6, loops 5, match/switch 2 (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 9 belong to 4 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":"Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52991288d893a63110791031bf51cef8752ddcf2f87cafb7a0154738f6f54cc"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runReasoningChannelCase (cognitive 27): EvalRunner.runReasoningChannelCase has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 5 (8 pts), ternaries 3, boolean chains 2, match/switch 1 (nesting depth added 6). 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, 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f77072730a145d16892ad26ddc8dd8603c85dd8926343bd02b38bac242ab752"}},{"ruleId":"D2","level":"warning","message":{"text":"InspectorMessageExamples.make (cognitive 27): InspectorMessageExamples.make has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 7 (12 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/InspectorMessageConfigurations.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec13ba6ff7880388f63a88880ad287025e0a015ada83c2b01c682c3cb5d370a2"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWriteTool.writeDocument (cognitive 27): FileWriteTool.writeDocument has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 8 (9 pts), error handling 4, boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac266f930f14e2fbb6fe9cd639de0e77321d7415be76f3244b08358fd164a25"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundTaskManager.schedulingStatusChanged (cognitive 27): BackgroundTaskManager.schedulingStatusChanged has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 6 (12 pts), match/switch 2 (3 pts) (nesting depth added 13). 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":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"055cb0bd6f4828e9c0fc89fbbbadb64510f3ef7be633a45d29ff28a0bed9b2a7"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSService.startPocketPlayback (cognitive 27): TTSService.startPocketPlayback has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 4 (6 pts), loops 2 (5 pts), error handling 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/TTSService.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"705cdabd9b620a42092b78c07bb513940cf8720f8639c3f11943b2da14cbf5e1"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleMemoryIngest (cognitive 27): HTTPHandler.handleMemoryIngest has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 5 (10 pts), boolean chains 1, 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4703}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d9492a4284f37ca0a63e2f86d5f297bcdb61fb856f2624d7407d3a95a086e0"}},{"ruleId":"D2","level":"warning","message":{"text":"SecureChannelResponseEncryptor.write (cognitive 27): SecureChannelResponseEncryptor.write has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 3 (5 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/SecureChannelResponseEncryptor.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b8a1c207d81b24d67be113cd41cfebfad55f8061ccf048a7137bf4759dc252"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclaredReasoningEffort.parseReasoningModes (cognitive 27): DeclaredReasoningEffort.parseReasoningModes has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, loops 2 (3 pts), ternaries 3, match/switch 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":"Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3f6cd6b4f633bdc97f84279e50cfad0d25731e2f8cc4c65268b36616dae449"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusTool.agentChannelFailure (cognitive 27): OsaurusTool.agentChannelFailure has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 9 (18 pts), if/else 9 (nesting depth added 9). 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":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d988c4d9da5cf49effc0e62541e94e1ebc2ee2d7424f9a233eb1e8b11d597209"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareArtifactTool.execute (cognitive 27): ShareArtifactTool.execute has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 5, ternaries 2 (nesting depth added 2). 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, 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":"Packages/OsaurusCore/Tools/ShareArtifactTool.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09a97687ce6664a2b1f8163ab1965a884dc33f7c240b1a7ff9232ee379ac92f"}},{"ruleId":"D2","level":"warning","message":{"text":"SpawnAgentTool.execute (cognitive 27): SpawnAgentTool.execute has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 4, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SpawnAgentTool.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56bf8f8c57e1c704e8e3fac598c488f1b1c94fa3a035c33fcb90241c4ee9e0a"}},{"ruleId":"D2","level":"warning","message":{"text":"CalculatorNode.evaluate (cognitive 27): CalculatorNode.evaluate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 3 (8 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 13). 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":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e765a5aedb4a055de166a25267f0792de7d5ef866c01ae488942345d5be6237"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigYAML.checkMapping (cognitive 27): ConfigYAML.checkMapping has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 7, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"1956dcff537baa25628d2e54a593b13b7d3fe400e228ae3f7553f1355926dbc4"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusConfigTool.handleTemplates (cognitive 27): OsaurusConfigTool.handleTemplates has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, boolean chains 5, match/switch 1, ternaries 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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"78da8dea39f6a78d678d08e01cf0d5c849230a4197e95608ef986802731029e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionExporter.markdown (cognitive 27): ChatSessionExporter.markdown has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (7 pts), boolean chains 2 (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":"Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56813cbdcf8690ca859e1299d098eac2f1fd447ecf3aeaf53b06ad0f3c77511"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginManager._loadAll (cognitive 27): PluginManager._loadAll has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 5 (8 pts), boolean chains 2, 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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf41c35e0c99cbf67faca92244d6c6c505c0a3ab84e25e4110f138e04eae9b91"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeBlockMasker.findCodeSpans (cognitive 27): CodeBlockMasker.findCodeSpans has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/CodeBlockMasker.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"09332e04ed9a363105058b1aa412bccca893162b3bff04700eb4b9df089b9458"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelMessageFormatter.stripInlineMarkdown (cognitive 27): AgentChannelMessageFormatter.stripInlineMarkdown has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 4, 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. This shape REPEATS in the file: one other method here (AgentChannelMessageFormatter.telegramInlineHTML) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd446390e7e3e0d093b52681b6f65ed17f0eb12ca562c033b714db2c377eb17e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelMessageFormatter.telegramInlineHTML (cognitive 27): AgentChannelMessageFormatter.telegramInlineHTML has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 4, 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. This shape REPEATS in the file: one other method here (AgentChannelMessageFormatter.stripInlineMarkdown) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac78303802d25316841687c30cf52f68e9ec5584781992f126e62a3be71f93b"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentEditService.prepare (cognitive 27): DocumentEditService.prepare has cognitive complexity 27 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 8 (9 pts), error handling 3, match/switch 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/DocumentEditService.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd07104faed252ea67b6978566ef80721a9a54e1a521715f30c257bc26e6f7d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.runVideoGeneration (cognitive 27): ChatSession.runVideoGeneration has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, ternaries 3 (4 pts), error handling 3, 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7164}}}],"partialFingerprints":{"codehealthFindingId/v1":"42571d11366619d46e957fc721d086e60db71ca03fa26b8004a9e184c602e463"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.attachClipboardSnippet (cognitive 27): FloatingInputCard.attachClipboardSnippet has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), error handling 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4271}}}],"partialFingerprints":{"codehealthFindingId/v1":"41aa041f9dfb5fe168e946f10ccc23fe87d2792626916149e46e2838e81083d9"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeActivityGroupView.configure (cognitive 27): NativeActivityGroupView.configure has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 10, ternaries 4 (5 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6632a6b08f27e1bd4bde4bfc28bd2a08fdfad2a2cc14758a9c914e70efcb402"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownTableView.relayoutImpl (cognitive 27): NativeMarkdownTableView.relayoutImpl has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4 (6 pts), boolean chains 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc4ac93b49916bc83f62f78138c71d436cb584b340f218009690403a77ced9f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelConnectionDraft.validationFindings (cognitive 27): AgentChannelConnectionDraft.validationFindings has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (5 pts), boolean chains 2, error handling 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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fed7f3e0ac8aedfa9145c54a1614c96219318ff6b75c79048309027ba88f147"}},{"ruleId":"D2","level":"warning","message":{"text":"DOCXEditor.expandIntoParagraphs (cognitive 27): DOCXEditor.expandIntoParagraphs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), ternaries 2 (6 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d368a7b5e0dcd5e9fcf0cba3c4bdd3d70c1503871c3f6cd7afe8f2af44bb8ec"}},{"ruleId":"D2","level":"warning","message":{"text":"PPTXEditor.deleteSlide (cognitive 27): PPTXEditor.deleteSlide has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 5 (7 pts), boolean chains 3, 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":"Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71dcf76e64aa8e5daadc5d1a92e479005f0868f59cd486940f9d91d430178c3"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXEditor.setCells (cognitive 27): XLSXEditor.setCells has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 3 (5 pts), ternaries 3, boolean chains 1, match/switch 1 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 8 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, 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e972bebb9cb1845c67f4e1ca7e43a9af16b734912fda0da3ce4a60a8639104c"}},{"ruleId":"D2","level":"warning","message":{"text":"Tokenizer.tokens (cognitive 27): Tokenizer.tokens has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 1 (4 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"804459e53819d986a441f92d06bcdf209f90ee559903dafd3c7a14ec7428b37e"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvalsCLI.loadFloors (cognitive 26): OsaurusEvalsCLI.loadFloors has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 3 (5 pts) (nesting depth added 12). Of this number, 13 points are the body\u0027s own statements and 13 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a471b5703bc27389e3283cee69991658f4bbbbca28abd493bf7e78dcb13d7a"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.prefillProgressAccountingProblem (cognitive 26): EvalRunner.prefillProgressAccountingProblem has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 9, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e475cdbe7270125a0f3360719f9bbb35ed2ad7817cecc7dd11d6dca2c10ba82"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusLocalClient.runAgent (cognitive 26): OsaurusLocalClient.runAgent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppIntents/OsaurusLocalClient.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb4990f8afbc13bedb72254f39792a892df7ce32a8e2104e6a3559f69f37ecd"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditMatcher.relaxedMatches (cognitive 26): FileEditMatcher.relaxedMatches has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (11 pts), boolean chains 2, match/switch 1 (nesting depth added 13). 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":"Packages/OsaurusCore/Folder/FileEditMatcher.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0425a384d755256de40e0b15b93a90a097fc35f7070adbbd3785a511131b5b"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProviderManager.createStdioTransport (cognitive 26): MCPProviderManager.createStdioTransport has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (20 pts), error handling 2 (5 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ed7834cba561050c1a9b25f0171e841abab9261936ef010517cf0da5834285"}},{"ruleId":"D2","level":"warning","message":{"text":"RelayTunnelManager.connect (cognitive 26): RelayTunnelManager.connect has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 4 (6 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbb9fa61fc808d3b76fdadf39ad83c52d79b75519c40bc68623dec49d65f406"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSSDResidency.fetch (cognitive 26): ModelSSDResidency.fetch has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 8, loops 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelSSDResidency.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f06fbc89bd7820381f1049389976579ddbcc1f0b6b8a34038f486f93463785e"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageExportService.recoverInterruptedRotation (cognitive 26): StorageExportService.recoverInterruptedRotation has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 4 (7 pts), loops 2 (3 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":"Packages/OsaurusCore/Storage/StorageExportService.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"7811a3e3811c5a5e6377b6ed63cf4391ee2c3ee802a39f4ed2fa50dca6f57259"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleScriptToolDispatch.exactReplacementLiterals (cognitive 26): AppleScriptToolDispatch.exactReplacementLiterals has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 16, if/else 5 (7 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc320de757652061dd899d2f1fe057b9f5e6b05135632db7b0eed379b340c0d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.planHarnessRuntimes (cognitive 26): ConfigPlanner.planHarnessRuntimes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2053}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9bed4851e9ff33b82c6acff60582f8260058c4696935a00800fb866951f687"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.planProviders (cognitive 26): ConfigPlanner.planProviders has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 1 (4 pts), boolean chains 3, loops 2 (3 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a69ff227b1cbe5c5cf932e819a4b6dd387d25f653c9208b839a5d5d5aa54706"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusImportTool.execute (cognitive 26): OsaurusImportTool.execute has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 6, loops 1 (2 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusImportTool.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecf697935a27f6b312c63fc7809b227555de836337858449e88539b42831364"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatWindowState.loadSession (cognitive 26): ChatWindowState.loadSession has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"48103f5c0c85f3a999390917a832c793ff51a64634dbb59e54bec71b0660fa06"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManager.scanLocalModels::scanDir (cognitive 26): ModelManager.scanLocalModels::scanDir has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 1 (3 pts), boolean chains 2, loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cc3011195f2fa67bebbe2f5fe09e1dcff322479d87d548fc73cc6a43d34888"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedArtifact.processToolResultDetailed (cognitive 26): SharedArtifact.processToolResultDetailed has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 2 (6 pts), error handling 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e786135151e0455baaf55ef8acc4dd831ad8ebd5082f7b459c288b27519551a"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDraftOp.parseConnection (cognitive 26): WorkflowDraftOp.parseConnection has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (10 pts), ternaries 5 (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":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d52b55acf4a666ff0efaa48eb153c6ff4b661050b96264df79bb46da9e3f2b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelPublishService.classifyProviderFailure (cognitive 26): AgentChannelPublishService.classifyProviderFailure has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (16 pts), match/switch 4 (8 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd7dc89bf7d6ff65a60207c9c94cbe3134a3754553384f220ea6f4cefec5154"}},{"ruleId":"D2","level":"warning","message":{"text":"SignInSessionActions.status (cognitive 26): SignInSessionActions.status has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 4 (9 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 13). 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":"Packages/OsaurusCore/Services/Credentials/SignInSessionActions.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff6c5f83780604b9a8ff72b03208186bef2cd93360b9e1722443ba686d806e0"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscordConnectionService.pollInboundMessages (cognitive 26): DiscordConnectionService.pollInboundMessages has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (3 pts), match/switch 1 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc092bee7696c186e3335b72fb2553d204427c483e51a57537cb58ad26ff263d"}},{"ruleId":"D2","level":"warning","message":{"text":"IMessageHelperInstaller.machOArchitectures (cognitive 26): IMessageHelperInstaller.machOArchitectures has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (2 pts), match/switch 2 (nesting depth added 10). Of this number, 22 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc4a11544463175fff75bda6626599f30f90fec2474723446d3686ea4ef4594"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchEngine.raceFree (cognitive 26): SearchEngine.raceFree has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 6 (7 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 9). Of this number, 16 points are the body\u0027s own statements and 10 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":"Packages/OsaurusCore/Services/Search/SearchEngine.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2647f24f051f442dbd17bf6e96187fd9b98527d31b2a32ccd5f460183c585bd3"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudePluginInstaller.extractSiblingSkillNames (cognitive 26): ClaudePluginInstaller.extractSiblingSkillNames has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (7 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"7062947b7c19744a65a5bca4e28570a244fea7534bd80fa98a1597484fabf01c"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.submit (cognitive 26): TaskScheduler.submit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 8, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Task/TaskScheduler.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"64255932444c5f1f75bdb06099952a4b887728b08d6388055950fc80ba55421a"}},{"ruleId":"D2","level":"warning","message":{"text":"RegistryReviewWatcher.run (cognitive 26): RegistryReviewWatcher.run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 3 (7 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/RegistryReviewWatcher.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de91dbd98e1ec47da90f8294791c3df7e16e2c36723eff319aae5ea50888a68"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowShareService.setExamples (cognitive 26): WorkflowShareService.setExamples has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (13 pts), error handling 3 (9 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/WorkflowShareService.swift"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d848743c24dda5654c1be5f00b7192fb0bc699ab6fd029cf44508fc19464c2"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseImport.parseDelimited (cognitive 26): DatabaseImport.parseDelimited has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f1394e2a4906ad2f1fe07820e0721d63422c091ab873269a7c6c0873a8bda3"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowTestTool.execute (cognitive 26): WorkflowTestTool.execute has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 4 (6 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b840ade2abddcf7712cdfd881f11124561cd2357caa2602d726afd7c42ec69"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCrossSelection.updateSelection (cognitive 26): ChatCrossSelection.updateSelection has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 5 (8 pts), boolean chains 4, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatCrossSelection.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec44dd886b853e5d1848963a912951d761bb2072dce7bc117e6aaa833e28ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.runRemoteImageGeneration (cognitive 26): ChatSession.runRemoteImageGeneration has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 3, boolean chains 2, error handling 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7055}}}],"partialFingerprints":{"codehealthFindingId/v1":"37db7d19856a1d6ed285eb175d9bab48260f3d0df7c668c09aeaffd47298a962"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeCompactionMarkerView.configure (cognitive 26): NativeCompactionMarkerView.configure has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 3, loops 3, 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":"Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1330d42e9a668bb8d31342954e612060a364a95bf187d173bf7eafba4b86eab"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffBackgroundView.draw (cognitive 26): DiffBackgroundView.draw has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 4 (9 pts), boolean chains 6, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e322a5e4153366baac49032e918258be56230a2cbc259f21142fc58e6d6ede3"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowLayout.rebalanced (cognitive 26): FlowLayout.rebalanced has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 6 (9 pts), ternaries 2 (3 pts) (nesting depth added 13). Of this number, 25 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":"Packages/OsaurusCore/Views/Common/FlowLayout.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f3d3164e9d7e58135212055d9bac452dfc387725b4ebcc1beab91d62a3fe5e"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginConfigView.readConfig (cognitive 26): PluginConfigView.readConfig has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 8, loops 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":"Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0a3bb6b57d218c2dcac4431fc07fbeb9e6dc6cccae3677292d5c65ad5a3ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"DOCXEditor.replaceText (cognitive 26): DOCXEditor.replaceText has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 4 (5 pts), error handling 1 (3 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"309329b16a1fc86eacdbfac364be03cc0bb7860e28b55fec288a58cf3cb4f4a6"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalModelsCatalogPage.body (cognitive 26): LocalModelsCatalogPage.body has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14, boolean chains 9, ternaries 2, error handling 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":"Packages/OsaurusCore/Views/Model/Catalog/LocalModelsCatalogPage.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4f298979e9ab1311c8ca5e586265000cff3633b57636724df1bc45eb39b25c"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestValidate.validateTools (cognitive 25): ManifestValidate.validateTools has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (5 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestValidate.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"0291bd95515cf025839f61f71b012c2f82016d696bc880278a9d91b7c24aa0ae"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalMatrixBuilder.errorCategory (cognitive 25): EvalMatrixBuilder.errorCategory has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 17, if/else 7, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"18179224c366563c000a8ffb2f7b27ce60ad4a51ddbbebdaed978eb620b35b97"}},{"ruleId":"D2","level":"warning","message":{"text":"DesignMessageChecks.run (cognitive 25): DesignMessageChecks.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, boolean chains 10, loops 2. Of this number, 23 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. 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":"Packages/OsaurusCore/DevelopmentDesign/DesignMessageChecks.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa51cba23f8ca3ad4a3c587999fa4200897a466389d33e627bb7b2b539c2b22"}},{"ruleId":"D2","level":"warning","message":{"text":"FileTreeTool.buildTree::traverse (cognitive 25): FileTreeTool.buildTree::traverse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 2 (4 pts), boolean chains 1, 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"10392dbf703a4a969bc72463992da32cf67674dc4b1bb3b9cbf16900c7bb518b"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditTool.execute (cognitive 25): FileEditTool.execute has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (21 pts), match/switch 3, boolean chains 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3747}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4281b5bb962e7788c6260aee7ef587421a6e291453a697286f20ba11d1b5d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ToastAction.from (cognitive 25): ToastAction.from has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 6, ternaries 2 (4 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Toast.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"76be6d769c20a7887a84e681f008d2d264011e62a3dddc6114bba4a7a65e681f"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.workspaceKeyMayReach (cognitive 25): HTTPHandler.workspaceKeyMayReach has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 11, match/switch 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4345}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f48b67eb5acf0137adebb9d738d76906f640ee139bc2ae44db1f6d93b76204"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleListSessionsEndpoint::matches (cognitive 25): HTTPHandler.handleListSessionsEndpoint::matches has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 6, ternaries 2 (4 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62054be3ef5d46dd85e6c2608be2c4c90b0f9e324e26a213068ff359366ac87"}},{"ruleId":"D2","level":"warning","message":{"text":"RelayTunnelManager.relayStreamingResponse (cognitive 25): RelayTunnelManager.relayStreamingResponse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 10). Of this number, 23 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":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b2b488232ad08bb7fb7f2e4e9ecb6d7cae3377df5c57999d4344b6652bf587"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaJSONSlices.valueEnd (cognitive 25): SchemaJSONSlices.valueEnd has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/RequestValidator.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddfd5439f1c6a2784eac00cd5f7c126fdbc6880d9a45a13ed261f3f710aad43"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalModelLocator.reconciledRegistry (cognitive 25): ExternalModelLocator.reconciledRegistry has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 8, loops 2 (nesting depth added 8). Of this number, 23 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":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7595d84721dd1b1b7d1e696a4c2bf76b5977260d0f6635f455acb07cf608e0"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryDatabase.searchPinnedFactsText (cognitive 25): MemoryDatabase.searchPinnedFactsText has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 5 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This shape REPEATS in the file: one other method here (MemoryDatabase.searchEpisodesText) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d23bb53b6d3a0f2f070a51939d382960ed993d5fece50e202dd19076b71555f"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryDatabase.searchEpisodesText (cognitive 25): MemoryDatabase.searchEpisodesText has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 5 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This shape REPEATS in the file: one other method here (MemoryDatabase.searchPinnedFactsText) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"0439874e9b302ddb1f77bb788f841faefa5db7eebc9466476b1460f2808f71e1"}},{"ruleId":"D2","level":"warning","message":{"text":"RetainedToolResultStore.compactionContext (cognitive 25): RetainedToolResultStore.compactionContext has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 9, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/RetainedToolResultStore.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d780a42ad33c73d2d93fb8c90de8f463278a55a1227048a39b40d4523b79cfe5"}},{"ruleId":"D2","level":"warning","message":{"text":"RetainedToolResultStore.makeRoom (cognitive 25): RetainedToolResultStore.makeRoom has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 8, loops 5 (7 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/RetainedToolResultStore.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b4cf97c72862c04a77eb47d062bf3476a78cc81a4834fb1e474525b96a32dd"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginShellPath.probe (cognitive 25): LoginShellPath.probe has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (5 pts), ternaries 2, boolean chains 1, error handling 1 (nesting depth added 9). Of this number, 20 points are the body\u0027s own statements and 5 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":"Packages/OsaurusCore/Utils/LoginShellPath.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d677006c6efa6a9f06bdbcf5d2069ac9341a39d5a0dc52299bb842a17f3f7c"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleScriptDictionaryService.distill (cognitive 25): AppleScriptDictionaryService.distill has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 5 (8 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":"Packages/OsaurusCore/AppleScript/Knowledge/AppleScriptDictionaryService.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"863dea666392529989a5b2f7380f2c9922b114adb0820ec464823f245e58c578"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenContextSnapshot.render (cognitive 25): ScreenContextSnapshot.render has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextSnapshot.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"914f8961eb7aa1f9d5e18fb2dd5d2f3cbd90cd9e86bbc756e9b245f5710bbd10"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyKnowledgeCollections (cognitive 25): ConfigApplier.applyKnowledgeCollections has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96a31032bd73177ed6e2b75c37718d2ab6b8245113e3aee8a871b43b8d1486d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.validateHarnessRuntimes (cognitive 25): ConfigPlanner.validateHarnessRuntimes has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfe9f3f534546421bbd7c7adbee26ec02af04b34b1766cbd2b3509a7ec2c37b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionExporter.timingSuffix (cognitive 25): ChatSessionExporter.timingSuffix has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 8, ternaries 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":"Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"961d4ce71a614360584527cdaa6ca81471fa969fb637a01d424f89f873228f0f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCapabilityReadiness.subagent (cognitive 25): AgentCapabilityReadiness.subagent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 1 (3 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Agent/AgentCapabilityReadiness.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a031bab2ffe0991bbd9899d9cbb903555a86d3c7d7763fc6f2e622c9530df5b"}},{"ruleId":"D2","level":"warning","message":{"text":"PrivacyFilterPipeline.wrapInboundStream (cognitive 25): PrivacyFilterPipeline.wrapInboundStream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 1 (2 pts), error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55b8963478539cbf51f40b8a89a5b806d2f0872702abb64f0e54eea5370d8f3"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemPromptComposer.appendProjectMemory (cognitive 25): SystemPromptComposer.appendProjectMemory has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc45e13f577db7d63b7dace670fd11f0a412a72f308276bbe1b91ebc1663df6"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialStore.save (cognitive 25): CredentialStore.save has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 3, ternaries 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Credentials/CredentialStore.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c1959c459b31f6d57fe76a7817455b8cc63a8b59971b8c4183f856423c50b5"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFReadingOrder.resolve (cognitive 25): PDFReadingOrder.resolve has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 3 (8 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFReadingOrder.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"de881f69ab422de4090b4fb5e0b0fc3ff234493dab807bc78a3db939a71356ce"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeDocumentParser.splitOversized (cognitive 25): KnowledgeDocumentParser.splitOversized has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 4 (6 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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeDocumentParser.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d650296bbbb0fa01249bfdc3262c903e308d26020d544ab1e9edff369b9c15e4"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenizerBridge.compactCompletedDSV4ToolHistory (cognitive 25): TokenizerBridge.compactCompletedDSV4ToolHistory has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 8, 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":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7122b1792ea9312eb9b89f9a007dac3ccd3486ce228bcf63b94d85f337e8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginProcessHostClient.startReader (cognitive 25): PluginProcessHostClient.startReader has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginProcessHost.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f388a16bd482e6d86801183cf2e8839394c19a1614d72f628a9053bc03bcea"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.streamResponses (cognitive 25): RemoteProviderService.streamResponses has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24998ae63578c498a50876cfc8e9aac76bd46f0a05fd15d773be0fee2a35fb1"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceAgentAccessHost.redeem (cognitive 25): WorkspaceAgentAccessHost.redeem has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10, error handling 2, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb5aebdc1d634e32379a32162e20bbb110824e0e1f5c3b5d7ffff57cf504925"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspacesService.migrateShares (cognitive 25): WorkspacesService.migrateShares has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (6 pts), error handling 2 (4 pts), boolean chains 3, loops 2 (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":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c74dade02ebcf11fc1d38a5a5452ca8210f341690380c5a7d34fd899564a6c5"}},{"ruleId":"D2","level":"warning","message":{"text":"WhatsAppConnectionService.startPairing (cognitive 25): WhatsAppConnectionService.startPairing has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 3 (5 pts), boolean chains 3, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f16c4b00301dfc081d8bbb0a2f3e14181019ad1bc0b49ebe6d4c8635d100200"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowEvalHarness.scoreArchitect (cognitive 25): WorkflowEvalHarness.scoreArchitect has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (8 pts), if/else 7, ternaries 5 (6 pts), boolean chains 4 (nesting depth added 4). 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":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"177bbe091bf4954f6ba8f92abe14b8960145286555fc03d5dbb4412d29ccb869"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionRow.navigatorRow (cognitive 25): SessionRow.navigatorRow has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 14, if/else 6 (8 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":3176}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd20c8b967c8cfeb646178d85114c6ec4260e536a1d810338a5dbd1ad54ef5f"}},{"ruleId":"D2","level":"warning","message":{"text":"AnchoredCardCoordinator.handle (cognitive 25): AnchoredCardCoordinator.handle has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 9 (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":"Packages/OsaurusCore/Views/Common/AnchoredCardPresenter.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fddf15dbe33c0e1cead7f47e73dddda9fb9c9cb256b01ac063743f21c8fba1a"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewTab.whereRows (cognitive 25): OverviewTab.whereRows has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, ternaries 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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ff3a88d4143efebacddb02ccb33ee12bb40ff4c5616a4b252adb879eb47440"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelConnectionCenterView.overviewEntries (cognitive 25): AgentChannelConnectionCenterView.overviewEntries has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (18 pts), loops 3 (4 pts), if/else 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/AgentChannelConnectionCenterView.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"4594642b1be8190e6e3f908b0cb07f39d4742459627404d5958451baa51ebc69"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishedWorkflowDashboard.saveListing (cognitive 25): PublishedWorkflowDashboard.saveListing has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 4 (8 pts), boolean chains 4, match/switch 1 (3 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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc291b95b853dab6f8faa1bbe4a91b1281024171020565441035d75e1417d56a"}},{"ruleId":"D2","level":"warning","message":{"text":"TemplateImportReviewView.workflowDetail (cognitive 25): TemplateImportReviewView.workflowDetail has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 3 (8 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Template/TemplateImportReviewView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10930b38434d9928cfa00b71e547afb4f6bd7322af01ff162f9db00ca1cd836"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessibilityManager.focusedWindowHasContent (cognitive 25): AccessibilityManager.focusedWindowHasContent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (4 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 12). Of this number, 24 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eeb2f546f0f412f69f91a9356f83fba518bbefa53ddcb167752ebcc5158e45d"}},{"ruleId":"D2","level":"warning","message":{"text":"DesignLibraryPruning.pruned (cognitive 25): DesignLibraryPruning.pruned has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 7, loops 4 (5 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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/DesignLibraryPruning.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf2807aea96c5c25e1683e40a8fc66222264d003cc09bae0bdd220f79e3a403"}},{"ruleId":"D2","level":"warning","message":{"text":"InspectorAssignedTextField.updateNSView (cognitive 25): InspectorAssignedTextField.updateNSView has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedTextField.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9513a0a25fe7e501f87886b058fda910cf59d06ef67bd84ac049141537613c51"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXEditor.expandSharedFormulas (cognitive 25): XLSXEditor.expandSharedFormulas has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 7, loops 4 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dacce44151167a743579300a24ed235b39dc64ce5c0a76769d497668ad1f1a2"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailMIME.collect (cognitive 25): EmailMIME.collect has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, loops 2 (6 pts), ternaries 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":"Packages/OsaurusCore/Services/Event/Email/EmailMIME.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a51c6635c42e8a2e954b2b7b87403208771eb0c180a4fcd6970d1f204910d4c"}},{"ruleId":"D2","level":"warning","message":{"text":"IMAPClient.command (cognitive 25): IMAPClient.command has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 2 (8 pts), match/switch 2 (5 pts), boolean chains 2, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fd1e6814d26153fe50d40a563e85a93db6ba769c95a6be2e57780300e18b50"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowSecretsStep.oauthControls (cognitive 25): WorkflowSecretsStep.oauthControls has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"5881eb51ca633462aad4e098aa992e736fddf2990adf74cdd8c1a8191917f0ba"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvalsCLI.forensicsLabel (cognitive 24): OsaurusEvalsCLI.forensicsLabel has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 7 (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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"8984d05e0139058f5e56b1d9560c8cd04bbec35f04ee1448ccbef8951fbea19d"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvalsCLI.runCompat (cognitive 24): OsaurusEvalsCLI.runCompat has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (2 pts), ternaries 1 (2 pts), error handling 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"5119839f698ccacb5ab1d1828a274903b70f2fc4c8131c90e3bff15aaa133c88"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runComputerUseCase (cognitive 24): EvalRunner.runComputerUseCase has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3, ternaries 2, loops 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf22a388d2fef398bb1767f57b3493438dd26bdd73fb0878204af72a892e03cf"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusBundle.contentHash (cognitive 24): OsaurusBundle.contentHash has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, loops 2 (4 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/ImportQueue.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"37de9b29b9389926d93aacda18595e788f967a0d70f59304d513f3b9c77b3a38"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogLibraryFixture.featureContent (cognitive 24): CatalogLibraryFixture.featureContent has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 3 (5 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"4244b27d47e0748e5f2d9551f189303b98d36a0fd5c14ab0e0a1602dc5f0d4e5"}},{"ruleId":"D2","level":"warning","message":{"text":"FolderToolHelpers.resolvePath (cognitive 24): FolderToolHelpers.resolvePath has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 7, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"17721f5af9b58b1a6174c120b27658a1d5059fb2988847c548d4b60d6a8238fe"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclaredReasoningEffort.flatNativeEfforts (cognitive 24): DeclaredReasoningEffort.flatNativeEfforts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 2 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fe804d7a1ec6858547586350c2845300aece6d0c3c874e7365d1ae7e05fe0b"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubSkillService.detectDefaultBranch (cognitive 24): GitHubSkillService.detectDefaultBranch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, error handling 3 (4 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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c02f52a8f0852f10af0b15e1b2d072eefa1211a6aa1b9246cf6d9315fc78b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.extractImageSources (cognitive 24): ModelRuntime.extractImageSources has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 6, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":7630}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfce707b7c88a967cb03a97f23a2e3606ce7057232263ded45c5f706d206fe74"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxWriteFileTool.execute (cognitive 24): SandboxWriteFileTool.execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 7 (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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":2158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95f7e9fafc9c3f1e5ae99829c51820e1afbfe119192ca58005c34e08df145cb"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxSecretSetTool.execute (cognitive 24): SandboxSecretSetTool.execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (20 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":"Packages/OsaurusCore/Tools/SandboxSecretTools.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b461b21ec502596f7360a2e165c3982a662bf039e197fa02ff82cbd83f7a0cb"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolRegistry.availability (cognitive 24): ToolRegistry.availability has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 9 (nesting depth added 3). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":3235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05de13062b2d94d6617489821d787beadf9ffa810606646e4285f372cd3f551"}},{"ruleId":"D2","level":"warning","message":{"text":"MapsToolFactory.placeReference (cognitive 24): MapsToolFactory.placeReference has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"930212ab0549e1c367c8ddf5fce7d13870e053cae14644168539431f1e629462"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMacDriver.perform (cognitive 24): NativeMacDriver.perform has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/NativeMacDriver.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b80efa49bbd55b38f961bd3014fceaaf76a57e9780fe5326995873cdd3cc43"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolSelectionResolver.apply (cognitive 24): AgentToolSelectionResolver.apply has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 5 (7 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/AgentToolSelectionResolver.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f9423b852689ff842eb6fe2aefe9212b55b9ca0baad64ec281cbf60951693a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigEvents.export (cognitive 24): ConfigEvents.export has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 2 (4 pts), boolean chains 2, match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1a9d44b918e195ff4b42bdc4e0f5a0048521d0a4a498211c39fddf0e41097c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigEvents.plan (cognitive 24): ConfigEvents.plan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8f8a3780c9a09d7a08fcfc09efc43f366198a5f82d92e2cf998e8dcfed96ea"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginManager.deliverInitialConfig (cognitive 24): PluginManager.deliverInitialConfig has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 7, loops 2 (3 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5a24de8dcdbba64e39f52469978e4f1942ccb53e59af7f624cac1f11a06a41"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalVisionEvidence.mimoAudioEvidence (cognitive 24): LocalVisionEvidence.mimoAudioEvidence has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 23, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed92bc7b612bf50993979f7afd093a14d33ef1cb7e8c7f96ff92b43e26114371"}},{"ruleId":"D2","level":"warning","message":{"text":"TemplateRequirements.items (cognitive 24): TemplateRequirements.items has cognitive complexity 24 (threshold 15). Drivers by points: loops 14 (15 pts), ternaries 3 (6 pts), if/else 2, boolean chains 1 (nesting depth added 4). Of this number, 22 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Template/TemplateRequirements.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"1986bcd223b43f77f0c51e2bdf8524eab3e41c0b8e322ba9906aabb3603f110a"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaValidator.schemaIssues (cognitive 24): JSONSchemaValidator.schemaIssues has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 3 (7 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/JSONSchemaValidator.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3502e32c37dd5f97d7f2d62c1dcc001ac4791d6b0ba6330f8ad3501c1f35fe"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDiff.changes (cognitive 24): WorkflowDiff.changes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 5, boolean chains 1, ternaries 1 (nesting depth added 10). Of this number, 22 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"710b20fec3b4f1836736e296a36d3d47a19e824ded64557651585d0e9d0f8db3"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeBlockMasker.mask (cognitive 24): CodeBlockMasker.mask has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 9, loops 3 (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":"Packages/OsaurusCore/PrivacyFilter/Core/CodeBlockMasker.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0360a09763dad95a7311944b067d0c2b473d0178f254897d58dedd8452f76369"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskState.classify (cognitive 24): AgentTaskState.classify has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05125875ae7d400d2b3cda51986a1eabed2d460a4667c34a02603969858be28"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportApplier.rollBack (cognitive 24): ChatImportApplier.rollBack has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 7, boolean chains 5, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportApplier.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aba6f47b31f9fb96c96fae4ce6aedcf8b454b3cfd8a9bf594df458e92e83b02"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportReportTool.parse (cognitive 24): ChatImportReportTool.parse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6, loops 4, ternaries 1 (nesting depth added 4). Of this number, 17 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportReader.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"066029c8c8c5116b859006b4217b85ed8288f5e325a2bfc3955464a61169b3e8"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFEditor.printedLabels (cognitive 24): PDFEditor.printedLabels has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFEditor.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"0654fbdee040bcaeee2ed208021da29ef086bf6f6fd75bead00e7b40b8e92dc6"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXPackageArchive.readCentralDirectory (cognitive 24): XLSXPackageArchive.readCentralDirectory has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 10, 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":"Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb694b90610930909c7a8eb25debf51cf6862ac3d9b0d2059057e7a1c2a4d20"}},{"ruleId":"D2","level":"warning","message":{"text":"EventManager.ingestChannelMessage (cognitive 24): EventManager.ingestChannelMessage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/ChannelMessageEventSource.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb6554f2faecdc2ed4d4467cd70f6e6b323d8d5671151d097bec4f082c2fdca"}},{"ruleId":"D2","level":"warning","message":{"text":"WebhookEventSource.receive (cognitive 24): WebhookEventSource.receive has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 2 (5 pts), boolean chains 2, error handling 1 (2 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/WebhookEventSource.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"684388e162f97953e0f0fe21f393dcf35c60f15c42c2a5bb435ad4b0cc3ff8a2"}},{"ruleId":"D2","level":"warning","message":{"text":"FileChangeJournal.apply (cognitive 24): FileChangeJournal.apply has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 9). Of this number, 20 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal\u002BRevert.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6b7199f7c43f95802fc2a682c7a42f237a6f652c6f93a667e2d742852080cf"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeStreamDecoder.decodeStreamEvent (cognitive 24): ClaudeCodeStreamDecoder.decodeStreamEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, match/switch 2 (3 pts) (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":"Packages/OsaurusCore/Services/Inference/ClaudeCodeStreamDecoder.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b77ce751b07d447ef491f60c055d6d5ba29f9f2ed943299e8d52b9b2f6f18d2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceAgentRunClient.prepare (cognitive 24): WorkspaceAgentRunClient.prepare has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 4, error handling 1 (2 pts), match/switch 1, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceAgentRunClient.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0161ebe99fa39ce2e82d4e593d5c53db3630dc6b0aa23688247f4a49fcf47191"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspacesService.pollConfirmation (cognitive 24): WorkspacesService.pollConfirmation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b1d460266a9b48260d65b14f83b03de46b53fa2346e6f9f04b7be57ca3dc6a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudePluginInstaller.fetchArtifacts (cognitive 24): ClaudePluginInstaller.fetchArtifacts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 8, error handling 3 (6 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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4aa33a52281dfedf35d2acfddcc321ca26471a99ec89f510fbdc7f502a1598"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncAttentionFeed.apply (cognitive 24): SyncAttentionFeed.apply has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, ternaries 2 (4 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":"Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc755d4e7a95e20f188dc531900c93578f560a9e76ec34f62a77dc67493680ef"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncRunProgressContract.snapshot (cognitive 24): SyncRunProgressContract.snapshot has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, ternaries 3 (8 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncRunProgress.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca26cd08babb666ceb0b07edb46625df8d70a11834f0cb7075e248135d5f2ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowCallFeed.apply (cognitive 24): WorkflowCallFeed.apply has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 1 (4 pts), match/switch 1 (3 pts), boolean chains 2, 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":"Packages/OsaurusCore/Services/Workflow/WorkflowCallFeed.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b2159a9b24910ca2b22806f5523e35cd9a3c6ada8c75851eeb231135e09bfe"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDetailView.bodyCore (cognitive 24): AgentDetailView.bodyCore has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 6, 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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"064a33cc3037e9abcb8aaa5c71f0e8af0a264c10eac684a85e47da1e6b9d6560"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatEmptyState.greetingBlock (cognitive 24): ChatEmptyState.greetingBlock has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 9 (14 pts), if/else 6 (8 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d79312a5ffaaf7783f4775baf66095617543fc5101bcf034e4dcdd490588ca"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatHistoryList.filteredSessions (cognitive 24): ChatHistoryList.filteredSessions has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 16, if/else 5 (8 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":4242}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99f32cc88a8e3697931be7bf129a43bd05344d34d23441b0cebd5112039b74c"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteMonitorView.handlePasteIfImage (cognitive 24): PasteMonitorView.handlePasteIfImage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":6643}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf5fbfbfb9af74b7479e53f260c69433d846f9e19de5cdd82833f59fc4fe4ad"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeCodeBlockView.configure (cognitive 24): NativeCodeBlockView.configure has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, ternaries 2 (4 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"106a7fbf8dc3309892d16954323c19d6bb1a27cdd47bb0295fae222ce2309305"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudePluginDetailView.installOutcomeMessages (cognitive 24): ClaudePluginDetailView.installOutcomeMessages has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 5 (13 pts), if/else 6 (10 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"35514e36161bee895f2ebadbe9a057e719fd21a42fc92b7a3b37b9127879064c"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsManagerView.allToolsTabContent (cognitive 24): ToolsManagerView.allToolsTabContent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"07dedb8be5ed61d73f37efcd7d66b1104103405ce19d92dcc3809698d0c245ca"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishedWorkflowDashboard.saveVisibility (cognitive 24): PublishedWorkflowDashboard.saveVisibility has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 5 (9 pts), boolean chains 4, 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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e109d9bbeca75de8f45f7ada3cf014dade1950a066da8d8dd545796e4f668e4"}},{"ruleId":"D2","level":"warning","message":{"text":"AssignedMenuPanelPresenter.show (cognitive 24): AssignedMenuPanelPresenter.show has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, ternaries 2 (4 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"76682764b3f5d038cc7d167a3aa9dc6ad9d63a60399b101f8d1f5d0f9793c5cf"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginWithOsaurusRequest.parse (cognitive 24): LoginWithOsaurusRequest.parse has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 8 (10 pts), loops 1, match/switch 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Auth/LoginWithOsaurus/LoginWithOsaurusRequest.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd2abe9683f4f604eca0714a887942859e360d8860f3566fa59e7d842c44dc6"}},{"ruleId":"D2","level":"warning","message":{"text":"DOCXEditor.replaceAcrossParagraphs (cognitive 24): DOCXEditor.replaceAcrossParagraphs has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 4 (8 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee70467db30312ffbff2d07a2f93845e2086f6d7a5dcaa2906b6c8ec777f4382"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailMIME.addresses (cognitive 24): EmailMIME.addresses has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, ternaries 2 (4 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Email/EmailMIME.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e60992affe7aaf66e6e4b8c27fee69bb7fb77f5d8d5102279c928836050de5"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownBlockParsing.swift.tryParseBlockMath (cognitive 24): MarkdownBlockParsing.swift.tryParseBlockMath has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/MarkdownBlockParsing.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f28148ec699166652a35afd3296b4c5978185403d0985d6a587fe6d1ec2e2bf"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalCompatBuilder.validate (cognitive 23): EvalCompatBuilder.validate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (3 pts), boolean chains 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45b6615af40e70bc00ba901e752d9c21d2e30b09328a576ad2907f85e0be6f8"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.scoreDbState (cognitive 23): EvalRunner.scoreDbState has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be9f0483f9f53221cc32df8a9c7158e0a9a611d4c25d161860b3d6a25f1546c"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runSubagentCase (cognitive 23): EvalRunner.runSubagentCase has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 3 (6 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f1aa765badf0e0e1fcb3dbbc678d2d9d7d088b19c190e82efad14a1fe5d2cc"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.presentAnnouncementIfEligible (cognitive 23): AppDelegate.presentAnnouncementIfEligible has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":3048}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ddd653401d55cb55c3370279fc81dbea0aa27dc03a9e73c4303ff96ea493c9"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedArchiveExtractor.validateLocalHeader (cognitive 23): BoundedArchiveExtractor.validateLocalHeader has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 11 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"8334ace9c01166e7aae92f49d36b59226057445e40ff97f4b43b52a48d1b7d0a"}},{"ruleId":"D2","level":"warning","message":{"text":"MinisignVerifier.parseSignature (cognitive 23): MinisignVerifier.parseSignature has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (9 pts), loops 2 (4 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/MinisignVerifier.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eac7b714c0e4730fb8aaabfbc12ae1ea661504deae20c1957899a9e94a912f6"}},{"ruleId":"D2","level":"warning","message":{"text":"DesignFigmaChecks.run (cognitive 23): DesignFigmaChecks.run has cognitive complexity 23 (threshold 15). Drivers by points: loops 6 (14 pts), boolean chains 6, if/else 1 (2 pts), error handling 1 (nesting depth added 9). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/DesignFigmaChecks.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe074d4de1a2eb5260673b5eca47414f8e602953fd93e0e741a82efefaec2464"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWriteDocumentRouting.workbook (cognitive 23): FileWriteDocumentRouting.workbook has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (7 pts), loops 1 (3 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":"Packages/OsaurusCore/Folder/FileWriteDocumentRouting.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56772426d33f27d4111b8478c29b2051be5fbd940f6c4234fca4e07f461d7a0"}},{"ruleId":"D2","level":"warning","message":{"text":"IdentityHealthCheck.diagnose (cognitive 23): IdentityHealthCheck.diagnose has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, error handling 2 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Identity/IdentityHealthCheck.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eae94835693044259df53acc67ceed883d7f4b3d883f88e6e1db23aa6167bf4"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleDispatchEndpoint (cognitive 23): HTTPHandler.handleDispatchEndpoint has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 5, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12520}}}],"partialFingerprints":{"codehealthFindingId/v1":"accc30e10a6dd2798076fc00eec464153627104d3677781a8decb5597b22d737"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalGenerationDefaults.repairOrnith15A3BManualMTPBlockIfNeeded (cognitive 23): LocalGenerationDefaults.repairOrnith15A3BManualMTPBlockIfNeeded has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, error handling 2 (3 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":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaec3228e2028bb82b73b31019ca96016c0b1c5cd519cbd17ef86754d23d2e1"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectDownloader.download (cognitive 23): DirectDownloader.download has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2fc5765702a94fb6c204013189791379557a50a91d0b5a13292ee4b29e7015"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityLogStore.verify (cognitive 23): ActivityLogStore.verify has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 2, 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":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44f20599e2fff99cdf334a67bc2d51f60b6f05c8084a8b22992ab833e4f8f6b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDatabase.createTable (cognitive 23): AgentDatabase.createTable has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"d792251252d4b7ab12fe100345da9e3994bf98d601853cc92c9193a47e8a8614"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentAdmissionLease.suspending (cognitive 23): SubagentAdmissionLease.suspending has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SubagentAdmissionLease.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb89268740d54ea7acbfdb4fc240cc80a05d6fac68386ae09ec6bf4eeb59ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxExecTool.run (cognitive 23): SandboxExecTool.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3, error handling 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cd192fc8b223ae407ab59ad2ffb0194edb50be946ef714acf736432eba4c5a"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchKnowledgeTool.execute (cognitive 23): SearchKnowledgeTool.execute has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 3 (5 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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"628b6448ffe27546652d0459446077a6f1901018e1978281009a7edc3b2cfad7"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentAction.semanticProblem (cognitive 23): AgentAction.semanticProblem has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 2, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Model/AgentAction.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"423f2732954b852fe9414a8be0bb265ee07871ca950ef065f2f56df9fc6e9d51"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenContextDistiller.focusedElement (cognitive 23): ScreenContextDistiller.focusedElement has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, ternaries 5 (8 pts), if/else 5 (7 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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"3daf0560fc3d54eae8f0c1e2d2dcd0bc5aa99ae803e5ae3041aad1abc1723a49"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionImporter.parse (cognitive 23): ChatSessionImporter.parse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (20 pts), ternaries 1 (2 pts), boolean chains 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":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"62583cb6af67a90d449011516a9a38593d7db0b895fa3cfa40e7e4143dcaf60f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatWindowState.setupNotificationObservers (cognitive 23): ChatWindowState.setupNotificationObservers has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8 (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":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":3154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67b7f79b1591d352617c254ec56a8c8c770c67854eed6993f7de7d664184b89"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManager.loadOsaurusAIOrgModels (cognitive 23): ModelManager.loadOsaurusAIOrgModels has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 6, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6419d12548705ef857d49ae2ff6f564f2c66796d072625ad71e60e88a292d1f"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginManager.toolsDirectoryURLsWithFailures (cognitive 23): PluginManager.toolsDirectoryURLsWithFailures has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (5 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dda41ebedaeaa2fc8c078d841388e49dd83d5d18e06881332d29165520996be"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelCustomHTTPResponseMapping.validatePath (cognitive 23): AgentChannelCustomHTTPResponseMapping.validatePath has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 8, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelCustomJSONModels.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbc23facf5678699597ed2d591e01758cbdbf215869c22b1f62536b82d3079e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionData.sameListRow (cognitive 23): ChatSessionData.sameListRow has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 23. 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":"Packages/OsaurusCore/Models/Chat/ChatSessionData.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff4cd09051e43c21221d3f0af8babdc71351f704c34aa48a46bd88ad771902b"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenResponsesSSEWriter.writeProviderEvent (cognitive 23): OpenResponsesSSEWriter.writeProviderEvent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 10 (nesting depth added 4). Of this number, 18 points are the body\u0027s own statements and 5 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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2152ce8d25eaa4d970f47f3c3e6a83b3a71a7f770814550b97467b1ba0b863"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerRuntimeSettingsStore.shouldRepairPagedCacheDefault (cognitive 23): ServerRuntimeSettingsStore.shouldRepairPagedCacheDefault has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 22, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0c37113773dd1664f50006f2f5e435d31f4e4baeef9f5cd711fa2caebfea26"}},{"ruleId":"D2","level":"warning","message":{"text":"BindingTypeResolver.type (cognitive 23): BindingTypeResolver.type has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 4 (10 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/BindingTypeResolver.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc16424f898feab4046fdb031aac19c376f104d87c5719569eb3cf80c7fb008a"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaDumper.render (cognitive 23): SchemaDumper.render has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (7 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentBridge/SchemaDumper.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a68ec4d803c448e7e836248afc8f46530af1de159e10012fb21d7c957fd76d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelRoomDirectory.load (cognitive 23): AgentChannelRoomDirectory.load has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 2 (5 pts), ternaries 1 (4 pts), boolean chains 2, 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelRoomDirectory.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a910b6b45adabd86cc5a4caeb54b9c9fc58c1005929768ef1f2109144b8cc5d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceDelegationEvaluator.run (cognitive 23): WorkspaceDelegationEvaluator.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 4 (5 pts), loops 3 (4 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentDelegation/WorkspaceDelegationEvaluator.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"821fe1637c172dd2591ec9d7c077688495a24cce51182adf30d77bff9d585e2b"}},{"ruleId":"D2","level":"warning","message":{"text":"GroundedConfigClaimCheck.containsFabricatedToolCall (cognitive 23): GroundedConfigClaimCheck.containsFabricatedToolCall has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f0493026c0e1a581e668bc62654366c6c5f5e1c5a09c1b395392e22c613fc0"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportEvalHarness.run (cognitive 23): ChatImportEvalHarness.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 4 (8 pts), boolean chains 4, loops 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportEvalHarness.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac21da12a9802ea020fd9b09db87b4517a5140ba4a1f4dae2ed8ba2df25912c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportFastPaths.run (cognitive 23): ChatImportFastPaths.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (6 pts), boolean chains 4 (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":"Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"231ea62ab40a460ff08b93f73d438915eee1956889d7f32ba2f03cb8f25a8c94"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialMigration.importChannels (cognitive 23): CredentialMigration.importChannels has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Credentials/CredentialMigration.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b28c6318d19f9b7edd08300f711b2fe05fdaa15bfee69058673a3857c9f999d"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialRegistry.liveSlots (cognitive 23): CredentialRegistry.liveSlots has cognitive complexity 23 (threshold 15). Drivers by points: loops 8 (12 pts), if/else 2 (5 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Credentials/CredentialRegistry.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a96be7588cbeddc3f642778e4afe643c479f50eca5151bd7d8d8222c2cfcea"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownRichTextRenderer.blockDescriptor (cognitive 23): MarkdownRichTextRenderer.blockDescriptor has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/MarkdownRichTextRenderer.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b779146b493cb1de9c4afdc554265855e09a7994ebd883da36b39fccf8998d1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelDialogRelay.interpret (cognitive 23): ChannelDialogRelay.interpret has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/ChannelDialogRelay.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf88d975d120fe19f443fd43c2c39315e2e40dd626f611159516bdb7e3b9f51d"}},{"ruleId":"D2","level":"warning","message":{"text":"EventManager.replyWithWorkflowOutputIfNeeded (cognitive 23): EventManager.replyWithWorkflowOutputIfNeeded has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 5, ternaries 2 (3 pts), 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":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac142470cf5afde5e176638c0720aa51d4f994ff69a5daf5694ec36fbcd3213c"}},{"ruleId":"D2","level":"warning","message":{"text":"FolderEventSource.reconcile (cognitive 23): FolderEventSource.reconcile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 5, boolean chains 4 (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":"Packages/OsaurusCore/Services/Event/FolderEventSource.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81047e0aa76752294b28bfc8fc6f440e61709bb991659fb7b8ef8fb8226ffc9"}},{"ruleId":"D2","level":"warning","message":{"text":"FileChangeJournal.revert (cognitive 23): FileChangeJournal.revert has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (5 pts), error handling 1 (3 pts), ternaries 1 (3 pts), boolean chains 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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal\u002BRevert.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aac3eb17cdc8b39d56fcf71c72f27a7f003efa60920d40df3e2be452128d447"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeCurationService.approve (cognitive 23): KnowledgeCurationService.approve has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 6, match/switch 1 (2 pts), error handling 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeCurationService.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26b53b8acf349f8de75eba38ff6dbad35aef2f920c7b63a4231cc40d5eaaf87"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeIndexService.indexCollection (cognitive 23): KnowledgeIndexService.indexCollection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3, boolean chains 2, error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7dcd42ff2cacf29164e6887bf0d8980b462ab24e8ae5ce17b3dd60b4a1e7fa"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXBatchAdapter.prepareInput (cognitive 23): MLXBatchAdapter.prepareInput has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 7). Of this number, 21 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":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"a948efd87d24c0b8ad8a95278860509d7dceb008c69801d05cfea3f2652876e1"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteChatRequest.isStrictResponsesToolSchema::isStrict (cognitive 23): RemoteChatRequest.isStrictResponsesToolSchema::isStrict has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5977}}}],"partialFingerprints":{"codehealthFindingId/v1":"4510f250ddabef52aa841a20db7796682648d2133f929d76ed2be0eb71bba8fa"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedAgentStatus.derive (cognitive 23): SharedAgentStatus.derive has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/SharedAgentIdentity.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"8273c32ff7beade5efbf307994bc5627ac3dc1e7652a8ed6119cff0ac6d61af8"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceAgentLiveness.classify (cognitive 23): WorkspaceAgentLiveness.classify has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 2 (3 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceAgentLiveness.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc530a7888edf9093af230c268e35204cb6de252c9b307370e18cd9b4c22063"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncManageDetail.write (cognitive 23): SyncManageDetail.write has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 5 (6 pts), ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncManageDetail.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3b1a44ea65a6205a6c70aaf784fbfd80c00b1e8b6a4a2dc42aece2bfd5b0b8"}},{"ruleId":"D2","level":"warning","message":{"text":"TelegramConnectionService.processUpdates (cognitive 23): TelegramConnectionService.processUpdates has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 3 (8 pts), ternaries 1 (3 pts), loops 2, 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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28f5cf69239160aca413f33c302322e2bd69bd84525c6854b394a2a1a4c76e1"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaNodeExecutor.runRemote (cognitive 23): MediaNodeExecutor.runRemote has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, ternaries 2 (4 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"816afbd7b7adfdbb9a934a602402cab951258d4ee4fa24d74f4c6e6e2a3d7f6f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentGenerationSettingsEditor.reasoningControls (cognitive 23): AgentGenerationSettingsEditor.reasoningControls has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 1 (4 pts), boolean chains 3 (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":"Packages/OsaurusCore/Views/Agent/AgentGenerationSettingsEditor.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec49c86d19b6c58983073df509e45aa9f0df6a4485d8b6588236f140bb202a1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatHistoryFilterPicker.passes (cognitive 23): ChatHistoryFilterPicker.passes has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 15, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9139283de547e59d3840c8b1055956b97fb421ba3dc206b2c15f3ada77f78a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatTabContextMenu.makeMenu (cognitive 23): ChatTabContextMenu.makeMenu has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 3 (7 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"8deaec21cf76b8aedf50ed2d4554b609f2ae4216e734e836f803884ad9602fd2"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownView.scheduleImageLoad (cognitive 23): NativeMarkdownView.scheduleImageLoad has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b215576bf267aaf5b60d696807f512d5651ceb6fb695c99d8ef0f09794a67e"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSheetFooter.body (cognitive 23): SettingsSheetFooter.body has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 5 (8 pts), boolean chains 5 (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":"Packages/OsaurusCore/Views/DesignSystem/SettingsSheet.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77582a5e19451c850206901b47ff06e5dac92aa2529c5b987bc82204bec2460"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeView.body (cognitive 23): KnowledgeView.body has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9, ternaries 5 (8 pts), error handling 2 (3 pts), boolean chains 2, loops 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":"Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcd4410d2d592c4e79fe8254ed4d0e5c9a48f809fcf3bd407dacb80d001521d"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenshotController.capture (cognitive 23): ScreenshotController.capture has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 2, ternaries 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2da39ee3d1840099241a432890bd0ab5b4914e275c509a80f3d9feb3ff45bd"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseSegmentedSurface.body (cognitive 23): BaseSegmentedSurface.body has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 3 (4 pts), boolean chains 3 (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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/AssignedBaseSegmentedPicker.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e976034df55b5633edf769834dfc15787b860cb9a2ed798122ef6e2f45b774"}},{"ruleId":"D2","level":"warning","message":{"text":"DesignFigmaSync.upgrade (cognitive 23): DesignFigmaSync.upgrade has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (6 pts), ternaries 3, boolean chains 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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/DesignFigmaSync.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"07aaf1b381bb4e6441dacfd76f3f48eea2b6b4f0e8024bb1b76d93dfc110e002"}},{"ruleId":"D2","level":"warning","message":{"text":"DOCXEditor.appendMarkdown (cognitive 23): DOCXEditor.appendMarkdown has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 3 (6 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7557fc3c6b51b01fa15458119ebdaba9e921df0d8bf4dd6b33982186ac1189c"}},{"ruleId":"D2","level":"warning","message":{"text":"XMLFeedReader.parser (cognitive 23): XMLFeedReader.parser has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7, match/switch 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":"Packages/OsaurusCore/Services/Event/Feed/FeedParser.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fe5169265dd189212c2b4865f64c49dc1dd8c8234117b3547b012953224048"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCatalogSource.item (cognitive 23): ImageCatalogSource.item has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 6 (9 pts), boolean chains 5 (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":"Packages/OsaurusCore/Views/Model/Catalog/ImageCatalogSource.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae78110d8583c4ffd53ee1f03793e0cba95b4bd7dcb63360becf03aaedca727f"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchitectSidebarPanel.normalBody (cognitive 23): ArchitectSidebarPanel.normalBody has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, match/switch 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":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3b35cd760927ae9a1e24e2fdba94cdc4fb11a212439a11f800f48396016057"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowBundleSetupView.stepContent (cognitive 23): WorkflowBundleSetupView.stepContent has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 5 (10 pts), match/switch 1 (nesting depth added 13). 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8baedb314eba968ed4fc20fe520a6e0b77924a688e418e833d8e09d1616fd9"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowSecretsStep.pasteControls (cognitive 23): WorkflowSecretsStep.pasteControls has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 4 (5 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d765f97cf699a8f931a5c44970f252208d04b14ba6cfca9277e46d51c957244"}},{"ruleId":"D2","level":"warning","message":{"text":"PullCommand.execute (cognitive 22): PullCommand.execute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), error handling 2 (3 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f0783d8a6bf42fcce4b6dc110802e56b559d1734ebbc47836056c9fb3a1dd7"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsList.execute (cognitive 22): ToolsList.execute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsList.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7987207f2238e82a99cfc62c66bb3b8a72ed47cecb7ea21f8b0253325c8cae4"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsUninstall.resolveTargetDirectory (cognitive 22): ToolsUninstall.resolveTargetDirectory has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsUninstall.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1d7cff5d456b973ff8846636dceec57f46c844eb8aa7d21d24cdf2c319c326"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvalsCLI.runOptimizeContext (cognitive 22): OsaurusEvalsCLI.runOptimizeContext has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (8 pts), error handling 6 (7 pts), if/else 3, ternaries 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/ContextOptimizeCLI.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f1a896d4f4961c643ab9c9ba4f33ba3825c9ddd7b68d59a23fcc4b8cf6357b"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.scoreTranscriptAssertions (cognitive 22): EvalRunner.scoreTranscriptAssertions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cebbaee7f37f07b6b7929f18d55450b2e2cdf6c4a2e6e6b3081bb65ac81089"}},{"ruleId":"D2","level":"warning","message":{"text":"RunEnvironment.summary (cognitive 22): RunEnvironment.summary has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, boolean chains 2, ternaries 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/RunEnvironment.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cba62ea6c73866ea80fdccd50c3da63c8ed973389e0852cc03ddc7fe63f895"}},{"ruleId":"D2","level":"warning","message":{"text":"InspectorUserMessageVerification.body (cognitive 22): InspectorUserMessageVerification.body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/InspectorUserMessageVerification.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"22082c985009d3145681e3f86260b00e9418369c5a7147d70613eabcc0e07896"}},{"ruleId":"D2","level":"warning","message":{"text":"FileReadTool.spawnedOperationCancellationSupport (cognitive 22): FileReadTool.spawnedOperationCancellationSupport has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (9 pts), loops 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb0f4a06872d4c5f2f6787bbe81bd4cbd528fde5a2620d4ab5c75ef709abea8"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaJSONSlices.members (cognitive 22): SchemaJSONSlices.members has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/RequestValidator.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f47c16c0828dd822f4d9149c789909f6d0bbff8a31910eb194c79dd521aa164"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelCompatibilityDiagnostics.evidenceRows (cognitive 22): ModelCompatibilityDiagnostics.evidenceRows has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 4 (5 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelCompatibilityDiagnostics.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"485f3fc82eecd583763060bca53de304799884ec2f82ffea2ca35f83995f61c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.ensureJANGTQSidecar (cognitive 22): ModelRuntime.ensureJANGTQSidecar has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, error handling 2 (4 pts), 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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":8402}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee1e32080f344d8335132e030f196b2a604b8a04e0e722235fd9aee6cf75216"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationService.userNotificationCenter (cognitive 22): NotificationService.userNotificationCenter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 8, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/NotificationService.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9950a2c9f00e591e4eb2bc68f73845c2dddd4ebc6a757f0ffcf2282b0770a3f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDatabase.execute (cognitive 22): AgentDatabase.execute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 3 (7 pts), boolean chains 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1731}}}],"partialFingerprints":{"codehealthFindingId/v1":"253133a5a9754bfec30220c6292c576c4dc9d1ff1bbd5e3cb11765eed41c1d8d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatHistoryWriter.persist (cognitive 22): ChatHistoryWriter.persist has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 2 (6 pts), error handling 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ChatHistoryWriter.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b4e7977e3a233f5d2361f427ce2888efd852d7d6eb68b3759154409694f353"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginDatabase.performQuery (cognitive 22): PluginDatabase.performQuery has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/PluginDatabase.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e779c4552ac26e44670b113e8a0d4f04a761f7dfd0fd216fb58ab9ef2e976cd"}},{"ruleId":"D2","level":"warning","message":{"text":"SpawnResultCompaction.modelVisible (cognitive 22): SpawnResultCompaction.modelVisible has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 7, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SpawnResultCompaction.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"23947a5ad19b253121bd416328d6881b429d5bf31008c61dbdda381d8ccc05ad"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxPluginTool.validateArguments (cognitive 22): SandboxPluginTool.validateArguments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SandboxPluginTool.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"092a6efa61457be29b9f55112b0d51cc3d8860d02f7931559406363508f1bfe6"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusPaths.migrateLegacyPersonasIfNeeded (cognitive 22): OsaurusPaths.migrateLegacyPersonasIfNeeded has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 2 (8 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/OsaurusPaths.swift"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabdb1077105a0d4815a93d482d4ef76f0594b6b13f7f94b0a19ad98513761b5"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserSnapshotFormatter.line (cognitive 22): BrowserSnapshotFormatter.line has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 9 (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":"Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"def51bd4f91fd1dab0f9fa404f305f895ba4da9c06c2f5f43d66a18752a3eaf9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentView.build (cognitive 22): AgentView.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 5 (9 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Model/AgentView.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"66086036551d39b7f7af81172b3dd4ea354af66d84ca7cb583093740f32b1c27"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectClassifier.classify (cognitive 22): EffectClassifier.classify has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (9 pts), ternaries 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Policy/EffectClassifier.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e5895665c7f8e71400f5cdb623dedacd2bf958ad7a1049a3941935dd6dd9d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyHarnessRuntimes (cognitive 22): ConfigApplier.applyHarnessRuntimes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fc3047c83f647fbbadc15205742b57717c48d8283a14f0bcb84418aed4279f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigManifest.jsonSchema (cognitive 22): ConfigManifest.jsonSchema has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 3 (7 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc934999ae99baffaff2266660389b48192ff609428063bace7cef187b26cf2"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusConfigDocument.declaredSections (cognitive 22): OsaurusConfigDocument.declaredSections has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c77bea8fb33e126df727a93c06734b44fa118d2810d930bf78a66332b31750"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionImportCoordinator.run (cognitive 22): ChatSessionImportCoordinator.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatSessionImportCoordinator.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"451ef8c7f2259ed9ec23950881b40e5030bee8c9fa45418a986c161ec2a46caf"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessage.appendScrubbableTexts (cognitive 22): ChatMessage.appendScrubbableTexts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (9 pts), boolean chains 3 (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":"Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d6923d72d5880b35aa29afe4a529adea17b1c5d5d1a7f6b202fef0f905c2f3"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiff.stringValue (cognitive 22): FileDiff.stringValue has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (5 pts), boolean chains 2, loops 2 (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":"Packages/OsaurusCore/Models/Chat/FileDiff.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60738ebe3a4df530f617730a6fab4537975eb262004a590607cb8dcc7fe7591"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedArtifact.importRemoteArtifacts (cognitive 22): SharedArtifact.importRemoteArtifacts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 6, ternaries 2 (4 pts), error handling 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/RemoteRunArtifacts.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f26001be0ac75a49c6ce5f198ccd90a2cad661e5b42f5611ca52d3ad829932"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerRuntimeSettingsStore.shouldRepairLegacyCacheDefaults (cognitive 22): ServerRuntimeSettingsStore.shouldRepairLegacyCacheDefaults has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 21, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"c473d369312f01d36c68bb7ab694586b9e718da128e2727583f5b38a7b581518"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginManifest.matchRouteWithParams (cognitive 22): PluginManifest.matchRouteWithParams has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 2 (3 pts), boolean chains 2, 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":"Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"5813245476921ea3926652eb98009005488ab0bf5ea4f3b41c2bce2f225bc2ae"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowAccessScope.oneLine (cognitive 22): WorkflowAccessScope.oneLine has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowAccessScope.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fb796331e8c8cdbc789b8cdaf226f42c0c135faf1a85494c358ed5ec5bf5df"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowAccessScope.architectSentence (cognitive 22): WorkflowAccessScope.architectSentence has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 2 (5 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowAccessScope.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51ad310e173354e9ef431a2fe557be331c239823996244530c50116fd4ea6ee"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowNode.effectiveOutputSchema (cognitive 22): WorkflowNode.effectiveOutputSchema has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 11. 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":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"639b97772711242a5040d0f8a3baa28236ff6e60b511d578adfd0b26c89a4976"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelPublishService.sendPolicyDenial (cognitive 22): AgentChannelPublishService.sendPolicyDenial has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf8501df35c864e9d611c0bf0cf50a8f9a3001ec6c4aa3fb454a1c6ed5c13c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelAccountMigration.runIfNeeded (cognitive 22): ChannelAccountMigration.runIfNeeded has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (5 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/ChannelAccountMigration.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe1fd5376acb8b402f7a84d649e7aabca894d147f6d3faeaef404d59801a045"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactionService.compactionCutIndex (cognitive 22): ContextCompactionService.compactionCutIndex has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 8, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"7112076154cf20f0e1f986fc110b2490bd73191895079f6c4f179a9302e4a7fa"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscordGatewayPresenceRuntime.runSession (cognitive 22): DiscordGatewayPresenceRuntime.runSession has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, error handling 3, match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7aae703c28b5c8590778b36a886721d8f93082193df1c6fa01656ee271e0d69"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFEditor.formFieldGroups (cognitive 22): PDFEditor.formFieldGroups has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 2 (5 pts), boolean chains 4, ternaries 1 (4 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":"Packages/OsaurusCore/Services/Documents/PDFEditor.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c1bc9dc848c17d4e9adc98b29db9b04e612e7fb3b41af7d84669980d2148ab"}},{"ruleId":"D2","level":"warning","message":{"text":"PPTXAdapter.securityMetadata (cognitive 22): PPTXAdapter.securityMetadata has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, loops 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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c10508cf38bfd77f92bad14e6742a8859df17a2aff0a4a688c10ac1f51a199"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiffEngine.wordHighlights (cognitive 22): FileDiffEngine.wordHighlights has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ce5ea5494e97723c285b1d2037b7f6b71a24f6772231fab8aa359ca52a7858"}},{"ruleId":"D2","level":"warning","message":{"text":"FoundationModelService.respondWithTools (cognitive 22): FoundationModelService.respondWithTools has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 2 (4 pts), loops 1 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/FoundationModelService.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"533a29b5659ace038ea5d0cd2898a6a98caaae1d05d00dca6c9ddc03f3f15805"}},{"ruleId":"D2","level":"warning","message":{"text":"StructuredOutputSchema.strictify (cognitive 22): StructuredOutputSchema.strictify has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 3 (4 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/StructuredOutput.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f295d20cc6019c447b1b27c4feaf6143f34ec51234adf3f413dafe83ec7b5aed"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityExportCoordinator.run (cognitive 22): ActivityExportCoordinator.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3 (7 pts), boolean chains 1, error handling 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Insights/ActivityExportCoordinator.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f13459160061cb607ed6867b5c09b6809cdaf1bcb84f2955e310f7d24effa50"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryConsolidator.runOnce (cognitive 22): MemoryConsolidator.runOnce has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 4 (5 pts), loops 2 (5 pts), ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemoryConsolidator.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cf85e607f3b78844af538a837e9882107b995a37721163df4aabc6df234dd1"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneAgentEditing.patch (cognitive 22): PhoneAgentEditing.patch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 6 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 5 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, 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":"Packages/OsaurusCore/Services/MobileConnect/PhoneAgentEditing.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5749ab36b63f70bf4350a96b6327196e64eed2191f4b4e66e888b0705b9fa2c2"}},{"ruleId":"D2","level":"warning","message":{"text":"SSELineParser.append (cognitive 22): SSELineParser.append has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 1 (4 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"53896463dd8899f8c01e27731861743bf181e6cb9e25c6a1afdedc7ffcd9b62e"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.connectWithRetry (cognitive 22): RemoteProviderService.connectWithRetry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d18b845f30c710534e2cf79d4ecc2116620a2a986bff0919d730499faeea74a"}},{"ruleId":"D2","level":"warning","message":{"text":"InboundSharedRunBridge.resolveHostedSession (cognitive 22): InboundSharedRunBridge.resolveHostedSession has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 8, ternaries 2 (3 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":"Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b68c9cf67157bf0edeee5e2d66277d84b1ea197ef9f6dcd09b34471de92630"}},{"ruleId":"D2","level":"warning","message":{"text":"DDGScrapeBackend.parseHTML (cognitive 22): DDGScrapeBackend.parseHTML has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fcc425e57c50c2280d2e5cf26aa4a9060719429e14ecf8bdb846d22dbbfebd"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolIndexService.exposureDiagnostic (cognitive 22): ToolIndexService.exposureDiagnostic has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, boolean chains 8, ternaries 1 (2 pts), match/switch 1 (nesting depth added 1). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/Tool/ToolIndexService.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bb9e2ccf29cb71aa319885c19679fd411b8d31952d34cba43af9180bdae8b1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticNodeExecutor.run (cognitive 22): AgenticNodeExecutor.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3 (4 pts), loops 2 (3 pts), error handling 2, 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":"Packages/OsaurusCore/Services/Workflow/AgenticNodeExecutor.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87df823e72a445b5222567693f61ebad97843574ccadd86c1fcfbfd9879f917"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPNodeExecutor.run (cognitive 22): HTTPNodeExecutor.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8, boolean chains 5, match/switch 2 (4 pts), ternaries 1 (3 pts), loops 2 (nesting depth added 4). Of this number, 20 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/Workflow/HTTPNodeExecutor.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14d471bf415787dba2395aeff220c9055fe151a9fa5b99f723577ff39374c87"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaNodeExecutor.describe (cognitive 22): MediaNodeExecutor.describe has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, boolean chains 7, ternaries 1 (2 pts) (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":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd822b401beb1d0e6fdd952cf26734abf5202fb695808e2ed522970c9eda912a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatHistoryList.body (cognitive 22): ChatHistoryList.body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 3 (5 pts), boolean chains 4 (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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":4279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b11c364f27eb07283347d5e93cd06273c6853f4f7734f9fe531b3d3ecd55910"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatView.pinRemoteAgentModelAfterConnect (cognitive 22): ChatView.pinRemoteAgentModelAfterConnect has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":12425}}}],"partialFingerprints":{"codehealthFindingId/v1":"4095629f5752d3f128a82821d1e923f3a990fe9f2d07ca4ced362dc8578e46a2"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.refreshMTPLayoutAdvisory (cognitive 22): FloatingInputCard.refreshMTPLayoutAdvisory has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 4, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4588}}}],"partialFingerprints":{"codehealthFindingId/v1":"83eaef7c3306cc8aded843dddb9a4089e490cca313f60b6b3c9e1ccfe4ffaedd"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.catalogMediaComposerChips (cognitive 22): FloatingInputCard.catalogMediaComposerChips has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 3 (6 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5491}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc621caed8463d4b8a0706284df517e32daadd70427db55151b517183c5913c"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeThinkingView.configure (cognitive 22): NativeThinkingView.configure has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 7, ternaries 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fff33fdca6f26dff60f591a7ed904951974a3041e5da015b2a90ec0e4716ba"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewGenerator.jsonPreview (cognitive 22): PreviewGenerator.jsonPreview has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"e624745d4f2e9132b5729007979e6ad0a070c53f93d9eefdbe328bb5baec3ab4"}},{"ruleId":"D2","level":"warning","message":{"text":"RedactionHighlighter.applyInternal (cognitive 22): RedactionHighlighter.applyInternal has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (3 pts), boolean chains 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":"Packages/OsaurusCore/Views/Chat/RedactionHighlighter.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"815f53486a7003a0e65036266322e1b14ce1cf78ec4ad58e6f3cff690f28a12f"}},{"ruleId":"D2","level":"warning","message":{"text":"VaultSessionSheet.add (cognitive 22): VaultSessionSheet.add has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 2 (4 pts), boolean chains 2, match/switch 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":"Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"9981e6a485c1bd79541f42515b215fc60c1557b85ad67d6d8ed143e0cf3f8d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"CreditsView.webSearchCard (cognitive 22): CreditsView.webSearchCard has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, 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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b0a61c18103e91f1f588319a8f3878ba814e7896bc8b40ce091a23c3f1ef20"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsedMessage.init (cognitive 22): ParsedMessage.init has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (4 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":2254}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbcf6ff85a344c785a522210ff4ce2602febacc28012cb23a8a1797dba03258"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryView.diagnosticHeadline (cognitive 22): MemoryView.diagnosticHeadline has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, match/switch 1 (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":"Packages/OsaurusCore/Views/Memory/MemoryDiagnosticsViews.swift"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e931c783d97027d9b26d6da91ef97064fd92123fd6bc73283a27e816e9c0c6"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginConfigView.statusAction (cognitive 22): PluginConfigView.statusAction has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (8 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa466d9c7fbd25773fe4f317c6fda55d12be7627882948ca18e076f33d535db"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginConfigView.validateField (cognitive 22): PluginConfigView.validateField has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 9 (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":"Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"407fd4a72c88d545b1bd9d84bc77b77871453c1bd9ae5e758b9334f73422cd6d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowMediaGalleryModel.settingsLines (cognitive 22): WorkflowMediaGalleryModel.settingsLines has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 1). Of this number, 18 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, 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":"Packages/OsaurusCore/Views/Workflow/WorkflowMediaGallery.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"955427de9fb152c9f620a5dcbb28ae0a60dcdd74c9c28c6b90c19cc9b0f61104"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceDetailView.sharedAgentsSection (cognitive 22): WorkspaceDetailView.sharedAgentsSection has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 7 (9 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d3ac83af17abd89bb463a20474e1e726726a94c1df82e4d08911685c89fad3"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessibilityManager.traverse (cognitive 22): AccessibilityManager.traverse has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acf571f9d449aece0dd23c8a026d12eb8965d176d445e4aa2b13e624d36fdd9"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalModelFactsInspector.footer (cognitive 22): LocalModelFactsInspector.footer has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 2 (5 pts), boolean chains 1, 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":"Packages/OsaurusCore/Views/Model/Catalog/LocalModelInspector.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c4fae60e1876ccbd912cfef970d58269beff4a4126fa388a70bb01f71fd3e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchitectSidebarPanel.designSections (cognitive 22): ArchitectSidebarPanel.designSections has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (11 pts), if/else 9, boolean chains 2 (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":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"432a06a3ed92424f5c5f126c282c1d34cdc20dddba782b5f13ae8b38d6fd57fd"}},{"ruleId":"D2","level":"warning","message":{"text":"Accessibility.swift.computeFocusedContent (cognitive 22): Accessibility.swift.computeFocusedContent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 9, ternaries 2 (nesting depth added 2). Of this number, 19 points are the body\u0027s own statements and 3 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca807223cf690cb1802016ff91993555e2f25186fb222afcbae959ea05654252"}},{"ruleId":"D2","level":"warning","message":{"text":"BundleLoad.run (cognitive 21): BundleLoad.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 3 (5 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/BundleLoad.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3026fc5af66066535cd7215c334c26f28b884ba86da5afc80e018c52055c3f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsDev.runProjectMode (cognitive 21): ToolsDev.runProjectMode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsDev.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e556e93f022fd18b4ae47035477dc163d056b57f198c1ce1d6798ddd15c28a38"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.parseToolResultGroundingEvents (cognitive 21): EvalRunner.parseToolResultGroundingEvents has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerToolResultGrounding.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"c315ecb0439f0be45f049be4c8b85357a425434fbbbf762f0c79f2c36f6dbbce"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginInstallManager.installVerifiedArtifact (cognitive 21): PluginInstallManager.installVerifiedArtifact has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/PluginInstallManager.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7043a5ec1b8241649271596e9690b8dce6ecf11ef8238bd72ebfd6c22a20c89d"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticVersion.comparePrerelease (cognitive 21): SemanticVersion.comparePrerelease has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 5 (8 pts), boolean chains 1, 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":"Packages/OsaurusRepository/SemanticVersion.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fada33b801b88ccc6562dc48902e76cf70033fdeab68e04e4eb62678c601b8"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogLibraryFixture.body (cognitive 21): CatalogLibraryFixture.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, ternaries 2, loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba87c36a73a9acd5f03ca0c1bf3da06cdb3dffe0a921213be9ef4a810e972f25"}},{"ruleId":"D2","level":"warning","message":{"text":"ToastManager.handleBuiltInAction (cognitive 21): ToastManager.handleBuiltInAction has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/ToastManager.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"b402849cbcdcfa918a53da47b86eba325e5987c5e171bdc816b5f5dc6e3edc15"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleHostedWorkflowEndpoint (cognitive 21): HTTPHandler.handleHostedWorkflowEndpoint has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede452196d79d4a8847198bc12a198019d7d9237fd1ab00a11c24e3d337ed292"}},{"ruleId":"D2","level":"warning","message":{"text":"BundledModelSeeder.seed (cognitive 21): BundledModelSeeder.seed has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, error handling 3, 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":"Packages/OsaurusCore/Services/BundledModelSeeder.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"879ded78916f0caad2756bf035212a45ad6156b5e9c5a5a2101e5d84ee90d0c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalModelLocator.scanReport::walk (cognitive 21): ExternalModelLocator.scanReport::walk has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (5 pts), boolean chains 3, error handling 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":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"474c47e977fb34b01d62d5a25e61003d7b17fc630397fac2b3bbc83a7abb6936"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubSkillService.parseGitHubURL (cognitive 21): GitHubSkillService.parseGitHubURL has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"244655099e95296d2ca929de337848b39b96dd0d5927b886aa12dd2ef54fd548"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubSkillService.buildManifest (cognitive 21): GitHubSkillService.buildManifest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 6 (7 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"6629eb4774067b158545484c2275d11f7da6be7418bbe4dda46ae674c136e816"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.resolveLocalModelDirectory (cognitive 21): ModelRuntime.resolveLocalModelDirectory has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, loops 2, ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 3 function items inside it that branch (scan, loadableBundle, withoutCrackSuffix). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":8700}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87b3a54a0fd39f736e5b8db7d4938988cfcb0597da079380f3ba1dbd67bd12a"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryDatabase.searchTranscriptText (cognitive 21): MemoryDatabase.searchTranscriptText has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 4 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":2377}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b76707f309fd209a26c69def087ffd09df46e6bb3829f65bfdf4a9dac13cd7"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageDatabaseCatalog.databaseTargets (cognitive 21): StorageDatabaseCatalog.databaseTargets has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), 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":"Packages/OsaurusCore/Storage/StorageDatabaseCatalog.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0415d89841abc8a6b950a05a6589a997cc9d0a1f5420d9e2e67867acd6bd95f1"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesDiscoverTool.namedToolCandidates (cognitive 21): CapabilitiesDiscoverTool.namedToolCandidates has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 2 (6 pts), boolean chains 3, loops 2 (3 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":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"3287fc626faed78dc8b39ee07df8437bc0b9610e03a56ef09b887370c4cbaa56"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineThinkSplitter.process (cognitive 21): InlineThinkSplitter.process has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (10 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/InlineThinkSplitter.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8e1c47998fe5224bc74470d0e0c8252dc949a1d513e28fd1310c0480091375"}},{"ruleId":"D2","level":"warning","message":{"text":"StringCleaning.matchingBraceIndex (cognitive 21): StringCleaning.matchingBraceIndex has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2, 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":"Packages/OsaurusCore/Utils/StringCleaning.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0aec10b305336cc1cc0d8d6c04d56e98501e3f43896da1b9cd036f0a7bf3b2"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.normalizeAgentEntry (cognitive 21): ConfigApplier.normalizeAgentEntry has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3f2e180fabae6932a9d2f4c520bbe6b0deb323f36bb9808033f07516e5a9ea"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applySearchProviders (cognitive 21): ConfigApplier.applySearchProviders has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (6 pts), loops 2 (3 pts), boolean chains 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"3132a024658781cefdee31440e79e7cd5bdc2863bb62cbe2760d9613929ee15e"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginManager.compatibilityFailure (cognitive 21): PluginManager.compatibilityFailure has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45692e7295c276773eb6c138f9c7ee36a4c1196b3d53943191bc7aae1d1b09b"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionCapability.derive (cognitive 21): SessionCapability.derive has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/SessionCapability.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad980225fded9088886256c7c8a8f71a1db60c9553c173c46857a23a5d3d311"}},{"ruleId":"D2","level":"warning","message":{"text":"Template.merge (cognitive 21): Template.merge has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. 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":"Packages/OsaurusCore/Models/Template/Template\u002BAgent.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1566c7416c5288c4b96d312909f38ea8e0d2225e5ad34dc0be32946898eeb84f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolApprovalPresentation.make (cognitive 21): ToolApprovalPresentation.make has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 7 (8 pts), boolean chains 4 (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":"Packages/OsaurusCore/Models/Tool/ToolApprovalPresentation.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d3a2a48967ad1386b76f32c6a7ebbaa5e85a40fdbf7c6e4eb40448a9e6c7cc"}},{"ruleId":"D2","level":"warning","message":{"text":"BindingRenderer.parse (cognitive 21): BindingRenderer.parse has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/BindingRenderer.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91b2639f96c1c67c365fd335298e1609a6ec5aaf20c80d38789ae3b381c3ee5"}},{"ruleId":"D2","level":"warning","message":{"text":"SpokenEmails.find (cognitive 21): SpokenEmails.find has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (12 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (3 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":"Packages/OsaurusCore/PrivacyFilter/Core/SpokenNumberDetector.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"050c753236fb65ef8e827b48f2cca6431bcb5e22325662a90ca23ee87f40230f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelInboundRelay.waitForReply (cognitive 21): AgentChannelInboundRelay.waitForReply has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88577dfbc7c547b2ebe6f14fb6c740ded31f0348ab06593ac53c15befca5666"}},{"ruleId":"D2","level":"warning","message":{"text":"OwnerApprovalService.request (cognitive 21): OwnerApprovalService.request has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 4 (5 pts), boolean chains 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Attention/OwnerApprovalService.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"774551236e2e11a5aed65f45bae7cd6c29b8df9181dceef500c4f730f3cda840"}},{"ruleId":"D2","level":"warning","message":{"text":"ParticipantFormatter.full (cognitive 21): ParticipantFormatter.full has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 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":"Packages/OsaurusCore/Services/Attention/Participant.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d820d5e627cde129bd3f9bfc2d7c2587e49bbf0f35d01b9cd011c3ba5728e35"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportSourceResolver.resolve (cognitive 21): ChatImportSourceResolver.resolve has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), ternaries 1 (3 pts), boolean chains 2, 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":"Packages/OsaurusCore/Services/ChatImport/ChatImportSourceResolver.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fe602ba9787b4d8595a84e259879712d312066c768f419a278b05ca770e7fb"}},{"ruleId":"D2","level":"warning","message":{"text":"ScriptedSubagentKind.run (cognitive 21): ScriptedSubagentKind.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7466a9d08b365764aa25978627434827e8ee28e70c8ea5c333a2eccde628c1a"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFAdapter.selectionRange (cognitive 21): PDFAdapter.selectionRange has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 17, if/else 2 (3 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f0ba8df1ded543d0d1f000bb607f4f2e80a51875b8290f42c7a7435ba3a9e6"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceRuntimeSupervisor.runTicks (cognitive 21): SourceRuntimeSupervisor.runTicks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/SourceRuntimeSupervisor.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b56bf37699b1097cd4987810c73a376b3d8836ecdf4a3f1de42c411c904801"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiffEngine.lineDiff (cognitive 21): FileDiffEngine.lineDiff has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (10 pts), boolean chains 6, match/switch 1 (3 pts), if/else 2 (nesting depth added 5). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf71969b8cce9da48e08af24aadb1fa937a0b4b3fefac3d879307af9f799a68"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiffEngine.myers (cognitive 21): FileDiffEngine.myers has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 7). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"28630891b20b4dd23d753fb489a5ecc27be3d889e591da6318f8030b5aca6bde"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingImportProcessor.waitForServers (cognitive 21): PendingImportProcessor.waitForServers has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad0d4a6f2c72a9102f929ad28db26ceaeb582287fce356d178248ba98ff8510"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingStatsHint.decode (cognitive 21): StreamingStatsHint.decode has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 8, ternaries 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3a25e1dd59d037f24e202ad925d14fc03df64bddb0661682b1e5a515fe7593"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalVideoRequestPolicy.init (cognitive 21): LocalVideoRequestPolicy.init has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 14, if/else 5, match/switch 1, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MediaGeneration/LocalVideoRequestPolicy.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc139135bbc7d167fa050b32ef11611aecfef191c27ba771f3a75190f6039d4"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaGenerationCoordinator.validateImageRequest (cognitive 21): MediaGenerationCoordinator.validateImageRequest has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 8, loops 1 (2 pts), ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c3aaced6b6535ec94cf2fa96f60856bdf2ede04780488e071c28772449db3f"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaGenerationCoordinator.validateVideoRequest (cognitive 21): MediaGenerationCoordinator.validateVideoRequest has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 9, ternaries 2 (3 pts) (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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc47730eaf24eeca1f4d727a06fc31b6a048970510e325b507ae09ca98461c6"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingFirstRun.explore (cognitive 21): OnboardingFirstRun.explore has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0de41901bb9f933b91666418ff698840ef3abe02287016320146c7065b86bd7"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingFirstRun.runRequest (cognitive 21): OnboardingFirstRun.runRequest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (6 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20cb6c5052dd5055d90338f70010bfef87e374ccf64e8731497e6c0098deab1"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginHostContext.applyAgentTools (cognitive 21): PluginHostContext.applyAgentTools has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (4 pts) (nesting depth added 12). 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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"81995acef499217b21b4a8b426a0cced5604ba503675beae31f1d944334a08f2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceRosterStore.refresh (cognitive 21): WorkspaceRosterStore.refresh has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bde813be59028a003f55bf1507565fbb063125264128669e29c57ffdcffcfcf"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaNodeExecutor.save (cognitive 21): MediaNodeExecutor.save has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 4, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"2960cde5e1d3897db2852a8da481841d70c644bd88131d0b1b494ab32e887424"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDraftStore.applyArchitectPatch (cognitive 21): WorkflowDraftStore.applyArchitectPatch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 2). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/Workflow/WorkflowDraftStore.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53d86ae588ccc468b0aed621c9415e037d4449fb5a44c0999b85f258257094f"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunner.applyPinsAndStart (cognitive 21): WorkflowRunner.applyPinsAndStart has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (3 pts), boolean chains 2, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e331a73ff7299d27ad2c2831e8789ffad235fe60507d011e236cf0a659bb6e"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseImport.isDecimalLiteral (cognitive 21): DatabaseImport.isDecimalLiteral has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (9 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"91dd8bd9a96c1186bb20293f637e7a76914015c99154cb91afe8d797e6916f00"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionSidebar.workspaceSections (cognitive 21): ChatSessionSidebar.workspaceSections has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff02c3e3ebc261dd37727c4d9eb7994c17584f0458d0ca54a6d095f982cdc2d6"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.sandboxToggleChip (cognitive 21): FloatingInputCard.sandboxToggleChip has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8, ternaries 5 (8 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4039}}}],"partialFingerprints":{"codehealthFindingId/v1":"d065a31b3501205eca140ad3758b2c5c81d68c1d7e067122daa492909db6806c"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.attachIfAllowed (cognitive 21): FloatingInputCard.attachIfAllowed has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af23a1a731c4e4d05dbd01712bdd74455b625b1fb17938bb92e0e0fe5b5fe11"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceStateSyncObservers.body (cognitive 21): VoiceStateSyncObservers.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":9052}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d93a80210fb1ea7649e940aa052198844c581d2c6f4dfb1c3cce069584d0086"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageTableRepresentable.updateNSView (cognitive 21): MessageTableRepresentable.updateNSView has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/MessageTableRepresentable.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"94857abe92ab3ec02d73057fd7f481f19e24a84a63fce9820bcb133ae6e60ec1"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownView.configureWithBlocks (cognitive 21): NativeMarkdownView.configureWithBlocks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 8 (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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"f393103541e89fbc58a77f2a05c1b8df4f180aea6c43370f23cd6353f6c89b29"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownView.measureMixedSegmentHeight (cognitive 21): NativeMarkdownView.measureMixedSegmentHeight has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4, 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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d9e5d23a1ea781cb6a9dea46920674d0b2768c4c8bd31b285eee8378afdb7a"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeToolCallGroupView.configure (cognitive 21): NativeToolCallGroupView.configure has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (8 pts), boolean chains 6, if/else 3 (4 pts), loops 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a41fa8febd71283cb8360a1c11e7e4723d533c167ca1fc7ba68e503e9940227"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsTextField.field (cognitive 21): SettingsTextField.field has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 4 (8 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"957d5a4c886d1df9bc0d07d804de2182c0a5dda293252482209bd5f9169f53df"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewTab.commonFacts (cognitive 21): OverviewTab.commonFacts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9e3954e2eb2e9d260a21c7cdf2efdc52fe27e9ce97a07de856bac9f312a524"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewTab.generationRows (cognitive 21): OverviewTab.generationRows has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"d343e73ca1ec4f145f5b29cb3914c608b8ecc027f152af5252da6dac223d2551"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginsView.updateFilteredLists (cognitive 21): PluginsView.updateFilteredLists has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 4 (7 pts), boolean chains 6 (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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"38518493c0446b466c3fdab804e4775da00c96290710536f26856846ca311786"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginDetailView.heroMetadata (cognitive 21): PluginDetailView.heroMetadata has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (6 pts), boolean chains 4 (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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"204184f54c4e2bc6c5cdd4c05392a91071d6e42788553bd34d7e9eca04b94839"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksView.lane (cognitive 21): TasksView.lane has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, ternaries 3 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Views/Task/TasksView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2884896610eec15a4bffa09662eb9cce899a2dc60eab3dac354900298e217225"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishedWorkflowDashboard.whoCanSeeIt (cognitive 21): PublishedWorkflowDashboard.whoCanSeeIt has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 7 (8 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"e048b562242c2345936cc08c3805baa580d49ecca7f57a0a8ebb525ba467c089"}},{"ruleId":"D2","level":"warning","message":{"text":"DesignWorkingDocument.resolvingColors (cognitive 21): DesignWorkingDocument.resolvingColors has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 6 (9 pts), boolean chains 2 (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 6 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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/DesignPrimitiveColors.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3652a4dcb3a781b2ce82c9b77807d142dc0ab31e771f5b49aac73aabc9827727"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXEditor.setCell (cognitive 21): XLSXEditor.setCell has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (5 pts), boolean chains 2, loops 1, 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"71df147fd10106be70b32aa8a258863b5d769ecad0128542550553aebf7bec73"}},{"ruleId":"D2","level":"warning","message":{"text":"SSEFrameParser.process (cognitive 21): SSEFrameParser.process has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 1 (3 pts), boolean chains 1, 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":"Packages/OsaurusCore/Services/Event/Stream/SSEEventSource.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f605990793bc3b5c297e45aadee7c428891a2369a8bb108699fe4b5a9290fe"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPOAuthURLPolicy.isLocalOrPrivateHost (cognitive 21): MCPOAuthURLPolicy.isLocalOrPrivateHost has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 16, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthHTTPTransport.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b95ea2b8f96aadd86f9067c55d5da9a4e7d10659dfc044722a64426b8304068"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowNodeEditor.fromFields (cognitive 21): WorkflowNodeEditor.fromFields has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (14 pts), if/else 3 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 8). Of this number, 19 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":"Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b00eb71e683627a62be15ecec86f500c999c6708a31799d6aaea8730744d06c"}},{"ruleId":"D2","level":"warning","message":{"text":"DoctorCommand.render (cognitive 20): DoctorCommand.render has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 4, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Doctor.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1204db694337a6a7dca8f800c839750c5012732257810e5332d899d355e9f0"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallationDiagnostics.classify (cognitive 20): InstallationDiagnostics.classify has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, ternaries 3 (5 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/InstallationDiagnostics.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec45b6398a736b8311883e5e076c6deebd737d701824edb95e7243c491ff831"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportCommand.runValidate (cognitive 20): ImportCommand.runValidate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c2ed943355835b139cf0de915c408ec51584381586d9fe40f0d00aa889b763"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalReport.formatHumanReadable (cognitive 20): EvalReport.formatHumanReadable has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"8552fd829a41ec0f30c2b0efcad557ce81272b8224353d2979794612532dd18c"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedArchiveExtractor.validatedPath (cognitive 20): BoundedArchiveExtractor.validatedPath has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 9, 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":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4977ab480f30661cc07f96cd93861203554faed65b5bb3c1b1d5a1811983883"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedArchiveExtractor.verify (cognitive 20): BoundedArchiveExtractor.verify has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 1 (2 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"99764a868426a1fee8fecf95621dd67fb3e0ec92699c4412733fc04aeeea4c46"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogExpandedAssignments.sharedParts (cognitive 20): CatalogExpandedAssignments.sharedParts has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13fe2eba9a5f5c6d368bd78929888dc2b3fa18c9968f601e450ee712b498457"}},{"ruleId":"D2","level":"warning","message":{"text":"FileReadTool.executeBatch (cognitive 20): FileReadTool.executeBatch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 2 (4 pts), ternaries 1 (3 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b552133f11c8937dd959f82fac6b9ced2ef9ce06ec4e803f52d0021326af0f4"}},{"ruleId":"D2","level":"warning","message":{"text":"FileReadTool.loadBoundedRawText (cognitive 20): FileReadTool.loadBoundedRawText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 4, loops 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94f2590b22c5e621a2fb289e1a0697f218c7cbe1b2ec6b8b7b20b058bf27f9a"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleCacheStatsEndpoint (cognitive 20): HTTPHandler.handleCacheStatsEndpoint has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8422c68ec747d9b70e8ad72062f757dc623363db2e1bd7eac494e1e30c44e7b1"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleImageGenerations (cognitive 20): HTTPHandler.handleImageGenerations has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 3 (4 pts), boolean chains 3, error handling 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13601}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec0fd3490a97779fe908bcab974d8b9f512c4428565d776efab2169e5a9338d"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleAudioTranscriptions (cognitive 20): HTTPHandler.handleAudioTranscriptions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18241}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fb2203f70cd5356ca8d7b9c8d6fe24504fa3096a9b8a4f36c440f39ce1dfa8"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDownloadService.makeAlert (cognitive 20): ModelDownloadService.makeAlert has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 10. 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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2347a09be8b4c8a3fbe4edeeaecebc0290ad3334327fb115ddbf49dbf0c4fd04"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.unload (cognitive 20): ModelRuntime.unload has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":2373}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2579405b7bed27557e57d688d4ca0353a9068c198a1f3a34185d5601f23e348"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.materializeMediaDataUrlResult (cognitive 20): ModelRuntime.materializeMediaDataUrlResult has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 2 (6 pts), error handling 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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":7953}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c55e7c42271a1c7a7cae1bfa8d83dc29a0868d28d0b1f33f9ff7b4c9356df9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDatabase.softDeleteMany (cognitive 20): AgentDatabase.softDeleteMany has cognitive complexity 20 (threshold 15). Drivers by points: loops 7 (14 pts), if/else 4 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9517f7226fdde1a330339af77f611f77590e9779913580d4b4c19ef84c8f21c4"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentBatchAdmissionPlanner.planInternal (cognitive 20): SubagentBatchAdmissionPlanner.planInternal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, ternaries 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SubagentBatchAdmissionPlanner.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"837f95b89b660effb9b00e6cc3ac4af561aaa84047d007f3ec675dd41adfb8c3"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxInstallTool.execute (cognitive 20): SandboxInstallTool.execute has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, boolean chains 3, error handling 3, ternaries 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3588}}}],"partialFingerprints":{"codehealthFindingId/v1":"8729aab5baab312c7a95dd07344a1687eb58665b87dde852311d1d3979e65048"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateKnowledgeTicketTool.execute (cognitive 20): UpdateKnowledgeTicketTool.execute has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6, ternaries 1 (2 pts), error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fbb8580f72c649be2be19483ddf1525fd33aa2ae4a202b676bfe0faa316e13"}},{"ruleId":"D2","level":"warning","message":{"text":"SecretArgumentScrubber.scrubForPersistence (cognitive 20): SecretArgumentScrubber.scrubForPersistence has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SandboxSecretTools.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ca2a7b17e2b00b3f3bcdc3d89cd6b90b604ae580ff05539fce82c20222d732"}},{"ruleId":"D2","level":"warning","message":{"text":"CNContactsService.apply (cognitive 20): CNContactsService.apply has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, ternaries 4 (8 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3573d874037995feed6ea5e3334f036ca86788b6b33edba3a24207045b7920"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleScriptToolDispatch.literalContractViolation (cognitive 20): AppleScriptToolDispatch.literalContractViolation has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 5, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afe62d70a808b25803e3253d735a218def8a65acea5cd8eac7222918efad9cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenContextDistiller.buildWindows (cognitive 20): ScreenContextDistiller.buildWindows has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5, 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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d98f7ed21259b25fcf00c1cae61c60ef6fd0339fca6edb2e87a0c9c286d1e47"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenContextDistiller.statusBarSignals (cognitive 20): ScreenContextDistiller.statusBarSignals has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, 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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa940b1a9d83eca07fab1fd257748da60af1e965cded8644d5cbc7f345ece9d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.patchCapabilities (cognitive 20): ConfigApplier.patchCapabilities has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20. 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa90a818f2196a1a48ee9a9f1f0146e39f8cf56cbe661a6ae913a0ad51fedf3a"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusConfigDocument.filtered (cognitive 20): OsaurusConfigDocument.filtered has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20. 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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2011923576353455d0b721baf3bb643361e18d9f0b3bc4e667fc70d850f3d3"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelLiveProofReadiness.imessage (cognitive 20): AgentChannelLiveProofReadiness.imessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5de0f004ca6fe13341bf1026dbe4dec59ad2918c847d2c008c6ca112888f76"}},{"ruleId":"D2","level":"warning","message":{"text":"Template.make (cognitive 20): Template.make has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts), ternaries 2, 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":"Packages/OsaurusCore/Models/Template/Template\u002BAgent.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafaebe6f36ace2980d3d84f728a5e9145537026f94e3e9c7d219e6df4b175d7"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.use (cognitive 20): Builder.use has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, 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":"Packages/OsaurusCore/Models/Workflow/WorkflowAccessScope.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f30cb7a61f3916c5a821150c599c92f9eb15abaa3b7cdca43e2efbec8dddd73"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRequirementsDeriver.reach (cognitive 20): WorkflowRequirementsDeriver.reach has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (9 pts), boolean chains 1 (nesting depth added 12). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowRequirementsDeriver.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efd4df017b5a43d80810819a7b5bb838ae325087045b8c58fa5b93eab3a49ce"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelInboundRelay.submit (cognitive 20): AgentChannelInboundRelay.submit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 7, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82d67957e6c91be7964e9c29dd4b3968441e9bf8794be4b6e77d9e7a64e4dea"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelInboundRelay.run (cognitive 20): AgentChannelInboundRelay.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, error handling 1 (4 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"969397696be69844fa7ab5218f4419c722e4529b27baae22ee1fad919beb1c57"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCreationEvalHarness.run (cognitive 20): AgentCreationEvalHarness.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8, boolean chains 5, loops 3 (4 pts), ternaries 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentCreation/AgentCreationEvalHarness.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adff95e7c24fa3b805d684e45de1635728405f80ee492d5a433d71a4ed80e80"}},{"ruleId":"D2","level":"warning","message":{"text":"AttentionActivityLogger.details (cognitive 20): AttentionActivityLogger.details has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Attention/AttentionActivityLogger.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57795fc800370d59c99b672c9509d7a3a1e0eb3afcd2295678e464c97aebbeb"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportDecoding.payloads (cognitive 20): ChatImportDecoding.payloads has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (5 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportSourceResolver.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fb0083b620dfe05ff44ccd19d5d531cb59455cc42cdce531c3d366a4565404"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelEvalHarness.runProactivePublish (cognitive 20): AgentChannelEvalHarness.runProactivePublish has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 2 (nesting depth added 1). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: 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":"Packages/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b200e5107a8e4dec2123c4fe578d9e50bb5448adcf3377c982102fdcdc33df"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleScriptEvaluator.run (cognitive 20): AppleScriptEvaluator.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 3 (5 pts), boolean chains 3, 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":"Packages/OsaurusCore/Services/Context/AppleScriptEvaluator.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a834b42244b448fe3a01e77766b22da6a3f9f08430fc4b5b82bd44c64d3c6120"}},{"ruleId":"D2","level":"warning","message":{"text":"MicroPerfEvaluator.measureRep (cognitive 20): MicroPerfEvaluator.measureRep has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/MicroPerfEvaluator.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d9eaf9ffe827cb9987a5f5144c61b3d1976b38a05afb8b84478cb4240a667e"}},{"ruleId":"D2","level":"warning","message":{"text":"FileChangeJournal.preciseSnapshot (cognitive 20): FileChangeJournal.preciseSnapshot has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 pts), boolean chains 2 (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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec94c761728eed62df7cb6d5fd7bcd29198e5269291d3487743465ce597f7b4b"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiffEngine.wordRanges (cognitive 20): FileDiffEngine.wordRanges has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (7 pts), loops 5 (6 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileDiffEngine.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b751f73790300f0596765853c1b592c0f2c0b1a26901dab0f681dac10afe1c"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingImportProcessor.remove (cognitive 20): PendingImportProcessor.remove has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, ternaries 1 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"338525a5a62ce91efee6b6b717b609f60122904e6591cbe260d46fd00c9721cc"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingFirstRun.perform (cognitive 20): OnboardingFirstRun.perform has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac100c75f63874c6a5dc0d7a72d901e50dd7b0475ac0ebf29afecbda414aacf"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingPanel.fillFirstTask (cognitive 20): OnboardingPanel.fillFirstTask has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, ternaries 2 (3 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/OnboardingPanel.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c86c2ab4643b893da61b934f4cc2b4f2038ee2f0ec3714d7eb8f90ac624e03d"}},{"ruleId":"D2","level":"warning","message":{"text":"InstalledClaudePluginsAggregator.buildPlugins (cognitive 20): InstalledClaudePluginsAggregator.buildPlugins has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 6, boolean chains 5 (nesting depth added 4). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/InstalledClaudePluginsAggregator.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9ced50ad8077cd0169e3f14ceffbc901619f24896078091722deb921ef4eb2"}},{"ruleId":"D2","level":"warning","message":{"text":"InboundSharedRunBridge.mergeCompletedTurn (cognitive 20): InboundSharedRunBridge.mergeCompletedTurn has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60f9b945d5a6b3c7647703637092f08dc496ef107948e4a45bfb9a96d14512d"}},{"ruleId":"D2","level":"warning","message":{"text":"SlackConnectionService.classifyInboundEvent (cognitive 20): SlackConnectionService.classifyInboundEvent has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, if/else 6, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"4428c7a07df3390e1ad5c198f37f4bb256fc44a0ceae7533b58ece7ca7dd31ee"}},{"ruleId":"D2","level":"warning","message":{"text":"TemplateExportSanitizer.portableArgs (cognitive 20): TemplateExportSanitizer.portableArgs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (7 pts), boolean chains 1, 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":"Packages/OsaurusCore/Services/Template/TemplateExportSanitizer.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"abed6ba9f1ff1b1c7ddc285c886d25a77c9f1d804fa2dd06bdcae447e065c863"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPNodeExecutor.fetch (cognitive 20): HTTPNodeExecutor.fetch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, error handling 3, loops 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/HTTPNodeExecutor.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee571cc6f5ebc02f1efa55442d04ae1296b9daf7d8148201c7bee76a4cefec99"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowArtifactCollector.outputFiles (cognitive 20): WorkflowArtifactCollector.outputFiles has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 2 (7 pts), if/else 3 (5 pts), match/switch 2 (5 pts), loops 2 (3 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":"Packages/OsaurusCore/Services/Workflow/WorkflowArtifacts.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d575c20c77d51d1ccc19a705bc5d6744b74fa36a2837687827e267ccd329e56"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunner.resolveSecrets (cognitive 20): WorkflowRunner.resolveSecrets has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, error handling 1 (3 pts), loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7fde2b177dd8d223393cea8d4b4ffc81e292e5e5f60cd41d4213ac5bc4556f"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseImport.detectFormat (cognitive 20): DatabaseImport.detectFormat has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, ternaries 2 (4 pts), match/switch 2 (3 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":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb2b941b746104d110195d01e8b75e279bbe13b3062cdcc902191dbcb92cc5c"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseImport.buildRowsFromObjects (cognitive 20): DatabaseImport.buildRowsFromObjects has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a12e3783c6fa55612f842565946e19567d67083f4891638a1fba1ae721623c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatShellLayout.init (cognitive 20): ChatShellLayout.init has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 3, 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":"Packages/OsaurusCore/Views/Chat/ChatShellLayout.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdca3b8100a237e6a159fca9269eeda40a861f8c0730518c9ada98285d2e3ea8"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.applyPickerItems (cognitive 20): ChatSession.applyPickerItems has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 6 (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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"d398985bcb21e3a95b4a70bd2f731c9edd3a039c6b9b744cd2d8331142cadf6d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.maybeGenerateFollowUps (cognitive 20): ChatSession.maybeGenerateFollowUps has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, if/else 6, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":5541}}}],"partialFingerprints":{"codehealthFindingId/v1":"361920202674d3c556405c99fb6871d71e043489be383985e773cad723a16584"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeActivityGroupView.configureChildren (cognitive 20): NativeActivityGroupView.configureChildren has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 2 (6 pts), loops 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"94fc4fb2039d056726c3ae9811b9f916826e5820d27c2ca4e3c1185dc006211f"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeToolCallRowView.hitTest (cognitive 20): NativeToolCallRowView.hitTest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 2 (nesting depth added 11). 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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ee6c772652db0c9673b83f5702d2262157a7252698b2dbe6b5e57877051402"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarLensBar.segmentButton (cognitive 20): SidebarLensBar.segmentButton has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 3, if/else 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de54d76ea79d5a26164f36cabde610bd58505b00f651611e21b71f7508c70df"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDetailView.detailsCard (cognitive 20): ModelDetailView.detailsCard has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, ternaries 2 (3 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":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"035e0c6f2be30a38dbc7d9d176c6a3ef12c301829e160f56ab50105ff0ab4ec7"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPickerView.thinkingOptionRow (cognitive 20): ModelPickerView.thinkingOptionRow has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 5, if/else 4 (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":"Packages/OsaurusCore/Views/Model/ModelPickerView.swift"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d134a4ed5178ad62ee5056d36306c8c8da87ddbe4aa52abf69886ccf517f043"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenshotController.captureWindow (cognitive 20): ScreenshotController.captureWindow has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (9 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5abccc78ba90c61326db62ee85a74d2f927c23e3f0f0453dc4413261e94c5ca"}},{"ruleId":"D2","level":"warning","message":{"text":"PPTXEditor.duplicateSlide (cognitive 20): PPTXEditor.duplicateSlide has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts), boolean chains 2, ternaries 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":"Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8705a14f0ac0c3fc967a41572530692df8f63d8c97d9bb763551d39c91ce093"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPOAuthDiscovery.fetchAuthorizationServerMetadata (cognitive 20): MCPOAuthDiscovery.fetchAuthorizationServerMetadata has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 2 (5 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthDiscovery.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"562219c915d42cc69e11873bb34b7c76dd83c6d4b8b2a3ebb087f20c05eb2f7d"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseSavedViewsView.detail (cognitive 20): DatabaseSavedViewsView.detail has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 1 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bfb87701fc726f4b5fdde9b1eb38df8af42b6336ca7b38532a59b33bc84748"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchitectSidebarPanel.testSections (cognitive 20): ArchitectSidebarPanel.testSections has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 3 (5 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":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec67e5287b700c9dce1ed7ac2e0dcd8017b7be7ed6f5d1742b4c0d69cfc0272"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDetailPage.beforeItRuns (cognitive 20): WorkflowDetailPage.beforeItRuns has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowDetailPage.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ee6aa807845054ca1abfc45fc2b3bacac960c135ca3e09d6996b2f43902499"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowSetupWizardView.steps (cognitive 20): WorkflowSetupWizardView.steps has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 10. Of this number, 17 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f0e6b884e708346f4f7b01da84796a48ea6beec3b80c2eae72c07316db11b4"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowSecretsStep.row (cognitive 20): WorkflowSecretsStep.row has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 5 (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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b741fbc10e77856305bbde38ce2f51cbb3c8acd3b137ec08ac8b4c39c90f90"}},{"ruleId":"D2","level":"warning","message":{"text":"Accessibility.swift.listWindowsForPid (cognitive 20): Accessibility.swift.listWindowsForPid has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 9, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ad06d1def4e2b033b6daeee1a3ffa10bd9dbe9247e401c44cf0c4486c2e085"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchCommand.execute (cognitive 19): BenchCommand.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), error handling 3 (6 pts), loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4558c3db4ffcc2de27411e214be430b6e25787b3e8ef8aa42b331b3444ef5c"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalMTPControlState.verdict (cognitive 19): EvalMTPControlState.verdict has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMTPControl.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aed6ca510d811a13127d589cd28d76f7a1558f66db68ffd3b87d0619d2bdcb5"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.scoreComputerUseLane (cognitive 19): EvalRunner.scoreComputerUseLane has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, loops 3, ternaries 3 (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed2f38f8090ac36d00ab56672a0dd7e98d61dc25c11751a59b9431f092b2bbb"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.scoreBrowserUseLane (cognitive 19): EvalRunner.scoreBrowserUseLane has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, loops 3, ternaries 2 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"05250956fff36c8322daf2e720f16d9d5f8917a7ce2446974ca842da7f54ab2a"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXMetallibBootstrap.locateSource (cognitive 19): MLXMetallibBootstrap.locateSource has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (8 pts), boolean chains 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/MLXMetallibBootstrap.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2423d40a4dbe38f36914f635dfb65c0d83d43df3133ab0fc4451a45ff9facf36"}},{"ruleId":"D2","level":"warning","message":{"text":"CentralRepositoryManager.mapFailure (cognitive 19): CentralRepositoryManager.mapFailure has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/CentralRepositoryManager.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9146a4ccfb5839343bf8ec7bb5364e188d4a09dade39e49c02163a3ac66c61"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogAssignmentRow.body (cognitive 19): CatalogAssignmentRow.body has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (7 pts), boolean chains 6, if/else 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff2f6d1169fa375536b0a01f4899f93954ece429895dce0a9213d912ff62f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditTool.noMatchDiagnosis (cognitive 19): FileEditTool.noMatchDiagnosis has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4386}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa5fe111217d8b4985ad22afb449d52ecb4a09fe0735ac6f2131ac80ad1b42b"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProviderManager.connectProviderWithTransientRetry (cognitive 19): MCPProviderManager.connectProviderWithTransientRetry has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"655f0be503e207c51796dd93c965d6f119f1e14c505aa19b5820eccc3f843680"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillArchiveProcessRunner.run (cognitive 19): SkillArchiveProcessRunner.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, match/switch 2, error handling 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":"Packages/OsaurusCore/Managers/SkillImportPolicy.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da4704df4abfb7a841cf3726d980d75041f5f573e99c1a558bb6f206100933d"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.decryptSecureCall (cognitive 19): HTTPHandler.decryptSecureCall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 3, error handling 3, loops 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9162}}}],"partialFingerprints":{"codehealthFindingId/v1":"db65ff73128d4871378e57c3df0f6fce46c78770cd6cb1d7efc2ed0cd2f34d5c"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.runImageJob (cognitive 19): HTTPHandler.runImageJob has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (9 pts), match/switch 1 (4 pts), loops 1 (3 pts), error handling 1 (2 pts), if/else 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14582}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc579ab9c8d422ea6b92738ea1cc09872c6ad58dd6589bd796923ab5b07787e"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclaredReasoningEffort.nativeThinkingModes (cognitive 19): DeclaredReasoningEffort.nativeThinkingModes has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 17, if/else 1, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1280071ef6f730909715148b04370e11d66629d9377b00d3a7ecf11b6b6b6a"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubSkillService.resolvePluginDependencies (cognitive 19): GitHubSkillService.resolvePluginDependencies has cognitive complexity 19 (threshold 15). Drivers by points: loops 8 (11 pts), if/else 3 (7 pts), boolean chains 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d353849ebd1b999807b08e6c9742d686efca01f322b9d495cd54b7930d4f35"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.clearAll (cognitive 19): ModelRuntime.clearAll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 4, 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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":2743}}}],"partialFingerprints":{"codehealthFindingId/v1":"f008ff6d8a5e4315a6baeb78fb3dffa7975b4c855ec0d99fd4f17cbb1dbcbb8f"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.streamRawText (cognitive 19): ModelRuntime.streamRawText has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (3 pts), loops 1 (2 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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":6621}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc162b0643c230290c5e0f003b99eafbb671ea6731aea289478b5db2cafd3567"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDatabase.forbiddenReason (cognitive 19): AgentDatabase.forbiddenReason has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"084661fdec7a527793e647169203296d910c296b4e9206c50d8d512e1aa497d7"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentSession.localInPlaceCapacityDecision (cognitive 19): SubagentSession.localInPlaceCapacityDecision has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7, ternaries 2 (3 pts) (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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d699b3f7f8a9962a9dbef6094ead021ee90cd1bf636714f551736599229a19"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesDiscoverTool.mergeHits (cognitive 19): CapabilitiesDiscoverTool.mergeHits has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (7 pts), boolean chains 3 (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":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"699e497e9c562e8d3df12dbf53d478b18a085dff0d507be87bd9ae75ae08e1f2"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesLoadTool.execute (cognitive 19): CapabilitiesLoadTool.execute has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (7 pts), if/else 5 (6 pts), match/switch 2 (4 pts), boolean chains 1, 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, 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":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"b179e1d3defaa0aa2c6442b32c22e5367311dcf908a6b43d942a395d4581c968"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesLoadTool.loadSkill (cognitive 19): CapabilitiesLoadTool.loadSkill has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (6 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c868c8fb9c54c0ab35044e4849a52451c203a1382020225f696b060251cf7d"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusHelpTool.execute (cognitive 19): OsaurusHelpTool.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbc96ffeb4d87e41e3a179c5cc3888c234980fddc0e125f7225c9e0fa761b66"}},{"ruleId":"D2","level":"warning","message":{"text":"EditKnowledgeTool.execute (cognitive 19): EditKnowledgeTool.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 2 (3 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c320125f0f33bf950644bb9f8cae1f2ce32d91f97d2694da080aa4114050fe"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parsePrimary (cognitive 19): Parser.parsePrimary has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (4 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a61f809ced115ae1f22de706d0cd15b7f105cd8ec84ce85eee2d5b9d8c38c6"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPerfTrace.emit (cognitive 19): ChatPerfTrace.emit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/ChatPerfTrace.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4d47f84b1a80185808d3aefdef29ead7bb320b617c384bde147a00eaa774d9"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatDBMessagesService.send (cognitive 19): ChatDBMessagesService.send has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, error handling 1 (2 pts), loops 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Messages/MessagesService.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f15a256c0d6eb560811a2d51fd43aa1e02a945ed30c98167fb8e64ebcf9419"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleScriptExecutor.renderRecord (cognitive 19): AppleScriptExecutor.renderRecord has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"d945a5421efd16f793e14c804433d6f3cf632395633eafc203008189436bd482"}},{"ruleId":"D2","level":"warning","message":{"text":"MockAppleScriptWorld.handle (cognitive 19): MockAppleScriptWorld.handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 5, ternaries 1 (2 pts) (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":"Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02224a707f523f93cb8329a784b65e28c8a44d709e158c5ed51603a61a011a6"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserToolExecutor.cookies (cognitive 19): BrowserToolExecutor.cookies has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 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":"Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7bc376eae50966f09fc10241e86762684508e5b9a6431e35f2aa4e00fd08aa"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.patchToolSelection (cognitive 19): ConfigApplier.patchToolSelection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, boolean chains 6, loops 4. 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9ebd4f301fde1a49f8319532243456f61cf336a327bf868078fbe098dd4ddb"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigChannelRouting.exportRule (cognitive 19): ConfigChannelRouting.exportRule has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5 (8 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigChannelRouting.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de889e191e8c1bc83b5d58025911e4590f4424687e21584f844a2c02cffee16"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigChannelPosting.desired (cognitive 19): ConfigChannelPosting.desired has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigChannelRouting.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"115f591efd9c637452fe8d34fe6aece3d853a770a5517fc91d25431bd5891a5c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDiff.unifiedText (cognitive 19): ConfigDiff.unifiedText has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (5 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigDiff.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae356665a166225cc6aefdb579eb8a630ddf4fdca1a06ecb289573e8ffa781d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigEvents.apply (cognitive 19): ConfigEvents.apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 2 (6 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34b5d801405b39a79717a1bda50e2297d22aabb9a9955453bcfa5b2809898f5"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.planDelegation (cognitive 19): ConfigPlanner.planDelegation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, loops 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1730}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60aa64ffcc7a0f880be6dc6ef42ffe08ea5b1d02411e21205f5541cd96ea8d1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatWindowState.showMainSurface (cognitive 19): ChatWindowState.showMainSurface has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a89eec88080d535c505d25d5a0c5c9c5ae65c6520360c1889bd74293ace9f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCompletionRequest.init (cognitive 19): ChatCompletionRequest.init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c85d39370b606fe7c9edc7e5e5bf646c55c3a9471a33c0df343fbe1d37ef81"}},{"ruleId":"D2","level":"warning","message":{"text":"Template.parseEnvelope (cognitive 19): Template.parseEnvelope has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 2, loops 1 (2 pts), boolean chains 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":"Packages/OsaurusCore/Models/Template/Template.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69ecb9e9c367f200b41b5e8755e85064a748b45df2e87555bcbef9d13ca6db3"}},{"ruleId":"D2","level":"warning","message":{"text":"PrivacyFilterModelDownloader.runDownload (cognitive 19): PrivacyFilterModelDownloader.runDownload has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 4 (6 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f8ecac5e01de734bb64b969bae6d52f3395d90d6c9e4de478e978fe26b1fd0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.renderedURL (cognitive 19): AgentChannelCustomJSONRunner.renderedURL has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), ternaries 3, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce86615d1b42df442bebd10bb51ad1ba13958d086e888a3b90d32c9842f34cad"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountRuntime.plan (cognitive 19): AccountRuntime.plan has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, ternaries 1 (2 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelTransportRuntime.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d75be1ff47b1ef34b0042745f531b6f9a7afdce3a0c829b1c295892e485a5c6"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedConversationPoller.run (cognitive 19): SharedConversationPoller.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 7, 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":"Packages/OsaurusCore/Services/Attention/SharedConversationPoller.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"02278e3db348a54f28656638984d2ec0424ae1d6016d0e081f9559fb8e6f6f1d"}},{"ruleId":"D2","level":"warning","message":{"text":"EventManager.syncTask (cognitive 19): EventManager.syncTask has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 6, if/else 6, ternaries 3 (6 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"057525f0abd02eacb6517e7317b196a8ee4bf5e2a4676b4acd6c793237b041f9"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduleEventSource.fireMissed (cognitive 19): ScheduleEventSource.fireMissed has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (4 pts), ternaries 1 (3 pts), match/switch 1 (2 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":"Packages/OsaurusCore/Services/Event/ScheduleEventSource.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"6235476527ed11ab9ba0eb79fab0418f41a955a1bd45adc087f0587ae4280141"}},{"ruleId":"D2","level":"warning","message":{"text":"FileChangeJournal.pruneShadows (cognitive 19): FileChangeJournal.pruneShadows has cognitive complexity 19 (threshold 15). Drivers by points: loops 7 (11 pts), if/else 4 (5 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8ebbb6fabf70eae41e202c25a806b185787c605662d7f0158e837ef0143306"}},{"ruleId":"D2","level":"warning","message":{"text":"FileChangeJournal.markEntries (cognitive 19): FileChangeJournal.markEntries has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal\u002BRevert.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f8966bcf082de79d664a5de5662f186b2279e6d2c0b1af90ded160d41a81da"}},{"ruleId":"D2","level":"warning","message":{"text":"IMessageConnectionService.runWatchSession (cognitive 19): IMessageConnectionService.runWatchSession has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"f869852007bc36b175a9475a9a0a88d47feb364ccf4b93dacc620e656b2cd53b"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreModelService.executeModelCall (cognitive 19): CoreModelService.executeModelCall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 2 (4 pts), boolean chains 3, ternaries 1 (2 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":"Packages/OsaurusCore/Services/Inference/CoreModelService.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c5dd11dd5bbc5f9578f58f46ca7b5a2dc1ab87021e360b3ac6a689b00ab8d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelServiceRouter.resolve (cognitive 19): ModelServiceRouter.resolve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, 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":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"8506f88654b003ea4c636243f798e0767be96dde1efcaadf15078a3e629ca8a3"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesToolChoiceContract.validate (cognitive 19): ResponsesToolChoiceContract.validate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 8, 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":"Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afa8368985bfaffa9aad57e10e85f01b3ff5bad570144d6a467b5f7de000eb8"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeDiff.lcsDiff (cognitive 19): KnowledgeDiff.lcsDiff has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 5 (6 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeDiff.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa87b7b90fb325f1b5866a79a67618dc6a5fc469efc6a25e378cbd1c6e0bf1e"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeDocumentParser.chunk (cognitive 19): KnowledgeDocumentParser.chunk has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (8 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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeDocumentParser.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e278833ae0c024bbedccf29bb050a29da3b82f44a0508ca10a1486065ebbe9b"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeLinkResolver.plainTextMatches (cognitive 19): KnowledgeLinkResolver.plainTextMatches has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeLinkResolver.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9445efc01c8ed13a13d08514936b057d31f09bcd39d0295bffba8e62e421d283"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaGenerationCoordinator.scheduleRecovery (cognitive 19): MediaGenerationCoordinator.scheduleRecovery has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb4162f077b900c607109c6878e721530e398ad71e3fc3f8dcccdd18beeb77d"}},{"ruleId":"D2","level":"warning","message":{"text":"MemorySearchService.ensureVectorDB (cognitive 19): MemorySearchService.ensureVectorDB has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 4 (6 pts), error handling 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":"Packages/OsaurusCore/Services/Memory/MemorySearchService.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bdd1e8a1d016daacdb00f2772e86cfffb6f558a54d07adf339481673d68f98"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryService.backfillFromChatHistory (cognitive 19): MemoryService.backfillFromChatHistory has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 1 (3 pts), loops 2 (3 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":"Packages/OsaurusCore/Services/Memory/MemoryService.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42f71a5cd7c54cd90b15d63550312b208529fc3d094049b696c1af60dc69f22"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginHostContext.checkSSRF (cognitive 19): PluginHostContext.checkSSRF has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":3009}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51d6893c44bc046a2f797e8e6c65c0c53e2bca0be7a13ffaf231814f2ce2cd5"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.extractInlineImages (cognitive 19): RemoteProviderService.extractInlineImages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5012}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cf362af0d18d49712316ca356d04e33a6a551aba5d93bc2bb158523833028c"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.fetchOsaurusModels (cognitive 19): RemoteProviderService.fetchOsaurusModels has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), ternaries 2, 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":7194}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0ab3848126b3808c0472ad962a51f913f801ade98bc3685c46e5a801581929"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteToolDetection.detectInlineToolCall (cognitive 19): RemoteToolDetection.detectInlineToolCall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 5, 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":"Packages/OsaurusCore/Services/Provider/RemoteToolDetection.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee216eaec5384212f5bb42b86e2f90569b0a165393d7d457ae1a21a13822500"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspacesService.applyDefaultBilling (cognitive 19): WorkspacesService.applyDefaultBilling has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d918421093d74be4b743e9da67c59bb3cb0acc82512ccd6e49fb500b027339d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudePluginInstaller.synthesizeSkillFromFreeformMarkdown (cognitive 19): ClaudePluginInstaller.synthesizeSkillFromFreeformMarkdown has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a85f24d0638bb39d288ec6d65774de77e77b8a39d17f440ea292b8f6e601b3"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncConversationMapper.detailWrite (cognitive 19): SyncConversationMapper.detailWrite has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, loops 3, ternaries 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c11c0dea6fc33aa2a349e55bd63ed03c8f5722780c22ed7c9877109ba3d982"}},{"ruleId":"D2","level":"warning","message":{"text":"TemplateImportRouter.fetch (cognitive 19): TemplateImportRouter.fetch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Services/Template/TemplateImportRouter.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fce9e8fae9b872368dee0932600ea0995869345087bf74c120bfebca64a3831"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardSimulationService.pasteText (cognitive 19): KeyboardSimulationService.pasteText has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 5 (8 pts), boolean chains 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Voice/KeyboardSimulationService.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4522951ed273af6285df1b32c15b6628be255e676fbfcfc1da40984c71ddbc2f"}},{"ruleId":"D2","level":"warning","message":{"text":"VADService.setupObservers (cognitive 19): VADService.setupObservers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5 (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":"Packages/OsaurusCore/Services/Voice/VADService.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e832b94b0eec1f19175b4b39805bceeb7d5a32c3d04cc5c714517f74e8ba776"}},{"ruleId":"D2","level":"warning","message":{"text":"WhatsAppConnectionService.normalizeInbound (cognitive 19): WhatsAppConnectionService.normalizeInbound has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, ternaries 7, boolean chains 4. 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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"95428f3253774c6d4c1c4de337c149f75a187ef090f906ab84f7292de6d0b983"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchitectInlineEvaluator.runScoped (cognitive 19): ArchitectInlineEvaluator.runScoped has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 8. 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":"Packages/OsaurusCore/Services/Workflow/ArchitectInlineEvaluator.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"40585237c7bdd6a739b20666bdabb98ab759382b89f11194e0be90717558df13"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogNodeExecutor.plan (cognitive 19): DialogNodeExecutor.plan has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 2 (5 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/DialogNodeExecutor.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa1a6cceef8c04cfc87cb3d094d117f83313c00d467a21e5593a45113d65004"}},{"ruleId":"D2","level":"warning","message":{"text":"HostedWorkflowClient.run (cognitive 19): HostedWorkflowClient.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/HostedWorkflowLinks.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b98d7a1fb0c9da42a1a9be1ee88a8fa59bb62810501a535c5795f6cef8d75b"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunObservations.notes (cognitive 19): WorkflowRunObservations.notes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowRunObservations.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd8693f268eac304a3765c97ef8400e097536f200583c97754dad63af965c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"TextSubagentKind.matchesApprovedAuthority (cognitive 19): TextSubagentKind.matchesApprovedAuthority has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (7 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edb56e01cdfc4374eab80df8e7d501c3e081a44b6411f20196ab4a1bc691770"}},{"ruleId":"D2","level":"warning","message":{"text":"TextSubagentKind.run (cognitive 19): TextSubagentKind.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b0f3aefa6f331996898670ec7d8cdfdb4b45232b959436fbe71e4dc75af598"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunsTool.scope (cognitive 19): WorkflowRunsTool.scope has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7592b9c3313d27a91aa8dbdeeb8e8e5e34b18b1732439315346bb36ceb389cb"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentGenerationInheritedValues.resolve (cognitive 19): AgentGenerationInheritedValues.resolve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, ternaries 4, boolean chains 3. Of this number, 16 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Packages/OsaurusCore/Views/Agent/AgentGenerationInheritedValues.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8359a27b11daca54b9acc8ea0703627c2e8220ac6cf59752520a716d5519500"}},{"ruleId":"D2","level":"warning","message":{"text":"SpawnConfigurationEditor.allowedAgents (cognitive 19): SpawnConfigurationEditor.allowedAgents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"59004c0d4ad222f8b2d8c787303e406b297f24b41793406bdbe3938c311defbd"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.handleBuiltInSlashAction (cognitive 19): FloatingInputCard.handleBuiltInSlashAction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 5). 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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":2249}}}],"partialFingerprints":{"codehealthFindingId/v1":"933d467c61ee69e3ce084b740bd1f27593edb8c460f560e6383920fff692e51c"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeActivityGroupView.stepChips (cognitive 19): NativeActivityGroupView.stepChips has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 1 (5 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9a491f75bb910e14d76231def8e497aeaf419fee5255a944233bb0d8f6689e"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeFileDiffView.applyInspectionStyle (cognitive 19): NativeFileDiffView.applyInspectionStyle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2756d3f99fb973ba4d318fe138f1711219bc53e265103c160e7c456cf8d4442"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownView.applySearchHighlightsIfNeeded (cognitive 19): NativeMarkdownView.applySearchHighlightsIfNeeded has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"220bf155faf36b0d2c1bd0f834cbffb67dde12f7024450c5a8b8b5bd1e8bd8d5"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownView.measuredHeight (cognitive 19): NativeMarkdownView.measuredHeight has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34fa547ea771888fb10ef4f3e195f7615ffa9f2bebe3d410cbb30af1ab44059"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectableTextView.updateTextStorageIncrementally (cognitive 19): SelectableTextView.updateTextStorageIncrementally has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7628fe6c02b16fa20ce7590308d7910703e443583615441dd0cb2a2bb47063"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewTab.workflowSection (cognitive 19): OverviewTab.workflowSection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 4, ternaries 1 (2 pts) (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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"35356b69f34e95e886a87130fbdb85cb44d41dfdbee1e3c23627867450996e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewTab.whoRows (cognitive 19): OverviewTab.whoRows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"9454bd98af40104a7e2a8196ca45cb5f26dbb414f40daed4126d2ceebf3e7198"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDetailView.manifestStatus (cognitive 19): ModelDetailView.manifestStatus has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, match/switch 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":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1410e011c989ad60dd187504e02d8889cc03751b705fac4fb752b5859bcff518"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareWorkflowSheet.liveView (cognitive 19): ShareWorkflowSheet.liveView has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 7 (8 pts), boolean chains 2 (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":"Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa7a8c12eca00e3fe489cd58f5e68a8badc44faf3e85198f33a9708b6db0158"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivateWorkspaceSheet.body (cognitive 19): ActivateWorkspaceSheet.body has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 5, ternaries 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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b012721204c930ddb8c1685408455efaf446aa03d378f759b1c7a382fa94e62"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceShareAgentSheet.body (cognitive 19): WorkspaceShareAgentSheet.body has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa55ba9272426818f491dfdc667f8c370293574898e08a2f6fc7edfd1059e628"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailMIME.parameters (cognitive 19): EmailMIME.parameters has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Email/EmailMIME.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc9fe8e599665793aa3eae6d471f818b26ac11d50f18939cf659e65fb55fb43"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPOAuthDiscovery.fetchProtectedResourceMetadata (cognitive 19): MCPOAuthDiscovery.fetchProtectedResourceMetadata has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 3 (6 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthDiscovery.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c5d18a71d7163a2d43158968a0b0072ad603e269328151335787f63cb6f90c"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDetailPage.hero (cognitive 19): WorkflowDetailPage.hero has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 9 (12 pts), if/else 3 (4 pts), boolean chains 3 (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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowDetailPage.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9185485b52840b3e66b489f1ff39154daca3ff5e672b67c87dea90ce9820d971"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalBootstrap.seedHostSnapshots (cognitive 18): EvalBootstrap.seedHostSnapshots has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"120145fc537d154c3a6f097d0567c092ee5389d8c4d00cc6226c3f12de187256"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalMatrix.formatConsole (cognitive 18): EvalMatrix.formatConsole has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2, 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd415d4502fbc71ac9ae19eb644fba494c8f4fcffc54d226c52068363b2de4ea"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalReport.formatAggregatedTelemetry (cognitive 18): EvalReport.formatAggregatedTelemetry has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0255f10126f8035e270fece5ed87c4c5ab492e2800efaaf6ce1244b6ce6726"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.run (cognitive 18): EvalRunner.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"56384d476a9e90e2fd38f546c555746f90997894113089df0a177ed32a4ba3d2"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalScoreboardBuilder.suiteScoreboard (cognitive 18): EvalScoreboardBuilder.suiteScoreboard has cognitive complexity 18 (threshold 15). Drivers by points: loops 7 (14 pts), if/else 3 (4 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"68428119e64a8454e25db9cb1616852a51c61d31ded70d971fcbbc45ae7a9822"}},{"ruleId":"D2","level":"warning","message":{"text":"InspectorAttachmentConfigurations.body (cognitive 18): InspectorAttachmentConfigurations.body has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 3, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/InspectorMessagingParts.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c422264fa2d2dec2132d863a6e872e38f2ac562c276bc8b06e514952f3a4875"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditTool.parseRequestedEdits (cognitive 18): FileEditTool.parseRequestedEdits has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2fd7e3cb65ed0af3c6d82c0fce74db6f1e81f0aac9458ffabda275c94c37da"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSearchTool.collectFileMatches (cognitive 18): FileSearchTool.collectFileMatches has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":5182}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f7eb014036328d9b5f828021870cf734f21d7d717d1703b0772dd620369b69"}},{"ruleId":"D2","level":"warning","message":{"text":"Keccak256.keccakF1600 (cognitive 18): Keccak256.keccakF1600 has cognitive complexity 18 (threshold 15). Drivers by points: loops 8 (18 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Identity/CryptoHelpers.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be85e10bec1094cd5d875d0bc61f3a00280794c8628ffabccfbff3c9c40d88a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentManager.migrateClaudeCodeModelsToHarness (cognitive 18): AgentManager.migrateClaudeCodeModelsToHarness has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/AgentManager\u002BHarness.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"612906ea6b23bf226201e42b1de56581dc80ac465436220cd0e4cbb1a1fcb746"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatibleTTSClient.decodeCompressedAudio (cognitive 18): OpenAICompatibleTTSClient.decodeCompressedAudio has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, error handling 2, 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":"Packages/OsaurusCore/Managers/OpenAICompatibleTTSClient.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"4223415f45eb7c707b4f2f4e521f699a45628efaeda5ee015888a2c55d786edb"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderManager.refetchModels (cognitive 18): RemoteProviderManager.refetchModels has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, error handling 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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc01f494a5994d6d3bd06c2b75cb3e7af849bcfee65894d6d8fbc5555a3806fe"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderManager.extractErrorMessage (cognitive 18): RemoteProviderManager.extractErrorMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 9). 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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d34f2a1658c51a1130e36efaf3053028f724d5be4478d6a27ff0db914d9b5b"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillManager.loadReferenceContents (cognitive 18): SkillManager.loadReferenceContents has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"628e5df4a28633e63b362368d4d519d9b2f2b6beb948d4493d8edd01532a5640"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleUpdateAgentToolEndpoint (cognitive 18): HTTPHandler.handleUpdateAgentToolEndpoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52b63aa518032eec792570b7c17f1bec634f4e5036044310a85ff42b9b95dc8"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleWorkspaceAgentRunEndpoint (cognitive 18): HTTPHandler.handleWorkspaceAgentRunEndpoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, loops 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6588}}}],"partialFingerprints":{"codehealthFindingId/v1":"655df4cb34aad2906e2231fccd0781551093124dcccdbdbf2bb54b026cbc4bf7"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleListAgents (cognitive 18): HTTPHandler.handleListAgents has cognitive complexity 18 (threshold 15). Drivers by points: loops 2 (6 pts), if/else 3 (5 pts), ternaries 4, boolean chains 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d085120e9989c5a5fe20f86d7990258b6b14b3b3ebb07c25c545b15fdd8c1d4"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleRemoteImageGeneration (cognitive 18): HTTPHandler.handleRemoteImageGeneration has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 3 (5 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13812}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e64fc0771adbf829840fc003e748d0d4763c68dfcc4b3820a4a8fd2fd1e09e"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerController.startServer (cognitive 18): ServerController.startServer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (5 pts), error handling 2 (4 pts), ternaries 2 (4 pts), loops 1 (2 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/ServerController.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b389313e11e2d56113ad81020ec09ed11b0c94a102d075dfe545c20e54e658e9"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectDownloader.urlSession (cognitive 18): DirectDownloader.urlSession has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":2120}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aee8712237585f17076b312020e41a82464dba460a934990968727aa87ae046"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.prepareContainer (cognitive 18): ModelRuntime.prepareContainer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":4782}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a01527dfa4a232568d0ae5fe3e0d4e1ff2b9dcc7cd4b545b62994214eb0487"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityLogStore.whereClause (cognitive 18): ActivityLogStore.whereClause has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, ternaries 2 (3 pts), match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"15174d7f57ef8762388d34635d06df2776823b8b20dc571253b0e1dcd1d39c4e"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskQuery.matches (cognitive 18): TaskQuery.matches has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/TaskDatabase.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd7d16ef1c4af084cd6135a0a173dc4e2387eba4b024e8b7b7ee55f9ab61413"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleScriptWarmResidencyHandoff.around (cognitive 18): AppleScriptWarmResidencyHandoff.around has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (5 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/AppleScriptWarmResidency.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"535a069c77d5b148fd9a59accc010b1f3f84f14bdb33a06c2fa844e513fc7ec9"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentAdmission.admit (cognitive 18): SubagentAdmission.admit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SubagentAdmission.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0ac8dd9c3fa728856c036453245321287d5b31df5f217688d98f0c9fc86284"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolRegistry.normalizeToolResult (cognitive 18): ToolRegistry.normalizeToolResult has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 6, ternaries 2 (3 pts), loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7fab0f0cd2b106a7e489ff5ca47e3a3055bdab66aa67216659536961f91c16"}},{"ruleId":"D2","level":"warning","message":{"text":"LogFileTailer.start (cognitive 18): LogFileTailer.start has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/LogFileTailer.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"423072487a6fdd4aa3bbcc0ef93bac6eb7d0945ca091d7ddc6758f68cd29e55e"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarCreateEventTool.run (cognitive 18): CalendarCreateEventTool.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 3 (8 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":"Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c93152c13f2c5b5c2d79e553f3b1084ff70ccf8b136b1fde9c57ae8f7999e5e"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenContextDistiller.sampleContents (cognitive 18): ScreenContextDistiller.sampleContents has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 2, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"443aad49a70f1433e615decda7f4d42b6c72105451343dc129f74e0cbcc23a34"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyApp (cognitive 18): ConfigApplier.applyApp has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (3 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3832072023fd6a2857ba5a8c6113061092095df08c700911eb635660ff923d7"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.planSearchProviders (cognitive 18): ConfigPlanner.planSearchProviders has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2422}}}],"partialFingerprints":{"codehealthFindingId/v1":"af386e5aecdfac2858d78875e3b9c8b9971f0a1a18ff4f0b206373acfd195c32"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxPluginManager.install (cognitive 18): SandboxPluginManager.install has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 2 (3 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Plugin/SandboxPluginManager.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6a830a963a77925dffe0bc540f625be1d09aa3441fc6d437a71bc8ded42165"}},{"ruleId":"D2","level":"warning","message":{"text":"DispatchEnvelope.parseWatcher (cognitive 18): DispatchEnvelope.parseWatcher has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/DispatchEnvelope.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7a848ec0afb1c651098af390f90ceff2fd413c27f2522b477995e129dbbc75"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiff.partialDelimitedRawValue (cognitive 18): FileDiff.partialDelimitedRawValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/FileDiff.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da781ca445d85b967cd0570c2637cfe9c492bc8176d01c698731b8b63c46349"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerRuntimeSettingsStore.resolvedMemorySafetyPlan (cognitive 18): ServerRuntimeSettingsStore.resolvedMemorySafetyPlan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75e7993a37498cceec55d9cef1caff4d3a891724cfab6c31d9a507a7785a3df"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityFilterToken.tokens (cognitive 18): ActivityFilterToken.tokens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Insights/InsightsScope.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"280f5e8c4479fa782806ba2962dd44b70ae0467aed7279d0b59b54348eae9505"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowCondition.compare (cognitive 18): WorkflowCondition.compare has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 3, if/else 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c4930785e10295ba57a8182ff657a450e76453974f52b2e3f4561ee08f60d1"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRequirementsDeriver.derive::visit (cognitive 18): WorkflowRequirementsDeriver.derive::visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 4 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowRequirementsDeriver.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f8870e36a322dd09b84f9c59e00b1026917c2b5885c5a5f997a1973b426587"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelAutoDestinationResolver.derivedBindings (cognitive 18): AgentChannelAutoDestinationResolver.derivedBindings has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 3 (6 pts), boolean chains 2 (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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelAutoDestinationResolver.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"87699853202c56fd2d5c78425799ec26a39f54707c4b06752c6f3ccc4828d318"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelCustomJSONRunner.mapResult (cognitive 18): AgentChannelCustomJSONRunner.mapResult has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 3 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"3402cf1b93fe4edaae37ecb12944c18430378790bb7ad98034a9d97b02b8d561"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelAgentRoster.presenceDetail (cognitive 18): ChannelAgentRoster.presenceDetail has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/ChannelAgentRoster.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f859e95def2a6f23bd199e21153ac93462dc27417ae138ee07738d9624b13b1"}},{"ruleId":"D2","level":"warning","message":{"text":"PairedDeviceChannel.wire (cognitive 18): PairedDeviceChannel.wire has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Attention/NotificationChannels.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f6be252e7871bff86f355501bf692d9ba049c4c68933bb82d995d727a36f4f"}},{"ruleId":"D2","level":"warning","message":{"text":"OwnerDeviceAccessHost.redeem (cognitive 18): OwnerDeviceAccessHost.redeem has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 6, ternaries 2, error handling 1, loops 1. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c3b7c1b15bedc3211f70027e632f227878ca8b44427f48a8641d38e9923591"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoopModelStep.classifyTerminal (cognitive 18): AgentLoopModelStep.classifyTerminal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 8 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89b05638c1a24ed2518c23306e547235eead28c4e0eb1db509f46ba4f73d65b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatTitleService.sanitize (cognitive 18): ChatTitleService.sanitize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ChatTitleService.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac41da89b852e794094aa32beeaae37e3a88ac6ea15b3178bfb187fc5693d154"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemPromptComposer.deriveEnabledManifest (cognitive 18): SystemPromptComposer.deriveEnabledManifest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, loops 2 (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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faf53b0dd808cf050954b257b4b1b16f20c90e1b55b4c802436885a851b4cda"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolResultMediaBridge.mime (cognitive 18): ToolResultMediaBridge.mime has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ToolResultMediaBridge.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e38143eb52d643af55d1505144708d5fb10e440bdc5deb0336f1eeeae07597f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportSourceResolver.resolvePage (cognitive 18): ChatImportSourceResolver.resolvePage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, error handling 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportSourceResolver.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36430b599ae453c4fe1df8a1307f74ae388a1b5af326f90e3ba6031f9969589"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentAdmissionEvaluator.run (cognitive 18): SubagentAdmissionEvaluator.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/SubagentAdmissionEvaluator.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa4d641c138d52f142aafb348ee6728aebf25a1de3165276e5a89995645b1af"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentJobEvaluator.waveEnvelope (cognitive 18): SubagentJobEvaluator.waveEnvelope has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04315df132f6393292ad741d3636a56d6fcbc40d9d2a3c783e51593009f27cb"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialStore.rename (cognitive 18): CredentialStore.rename has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 5 (7 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Credentials/CredentialStore.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fce4f5ad388dc7fa7e7afe6cec04cd47fbed2f2188327cdd85afbe8c92a73b"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscordConnectionService.diagnostics (cognitive 18): DiscordConnectionService.diagnostics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), error handling 2 (3 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"55af71bbdbc6dc697bbce6258e0f6d067ff36e669f468c8ee80d71152f815e75"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFEditor.closestField (cognitive 18): PDFEditor.closestField has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFEditor.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d92bd63552c3c3b5bd1b7ddadd840572afca5db33722adcb7c0d278f2923351"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFEditor.highlight (cognitive 18): PDFEditor.highlight has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (6 pts), boolean chains 2, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFEditor.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9d52851292ac3b787a712cbbea72ab106fe034e5be031441dca8bed56cc2c2"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFTableDetector.cells (cognitive 18): PDFTableDetector.cells has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFTableDetector.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e0447bca34b241bda7b8ae87144f3de27e552005b20ed60a8a0957549fb9a6"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenXMLTextRunCollector.parser (cognitive 18): OpenXMLTextRunCollector.parser has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, match/switch 1 (nesting depth added 7). 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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ac411991b346d1ebffa86e2352e97e14550e5555b2ef2298ff2df96c50a9ff"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkbookWorkflowValidator.parseCellReference (cognitive 18): WorkbookWorkflowValidator.parseCellReference has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, 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":"Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c42643d250e8b8bdb0d31cd9bc9c3fe5c1bc909ffec546b529414e14e5dff5"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXAdapter.renderWorkbook (cognitive 18): XLSXAdapter.renderWorkbook has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (6 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":"Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a158efab881d215092a4ed3ab0bbb2691b6247a57b7ee3b9040f52c5ef9851af"}},{"ruleId":"D2","level":"warning","message":{"text":"XLSXEmitter.parseCellReference (cognitive 18): XLSXEmitter.parseCellReference has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, 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":"Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"338362cf10ca8ffd492d3f773ad46ee349b82ad3c79a4592d96da3eb2eccac7b"}},{"ruleId":"D2","level":"warning","message":{"text":"EventManager.task (cognitive 18): EventManager.task has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 3, boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"64866adee169049b0734572c98cfbfad7ab9e077f68b8f29fb2c91eca6b3da86"}},{"ruleId":"D2","level":"warning","message":{"text":"EventMatcher.filterRejection (cognitive 18): EventMatcher.filterRejection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, 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":"Packages/OsaurusCore/Services/Event/EventMatcher.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e300ecf187be1b99d88797c94a0e73549f397eb7a93e49bd6fb264be03589eb"}},{"ruleId":"D2","level":"warning","message":{"text":"WebhookVerification.verify (cognitive 18): WebhookVerification.verify has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (8 pts), match/switch 1 (nesting depth added 4). 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":"Packages/OsaurusCore/Services/Event/WebhookProviderProfile.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"7078d57d453bd3afeba2e4847968ce7928568062bf925f632084f78bdc6d6256"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeHarnessCodec.decode (cognitive 18): ClaudeCodeHarnessCodec.decode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Harness/ClaudeCodeHarnessAdapter.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2e7b4b12daaa34191ee7e82506e7a9919c92b707e8b8476010bd2cd826fb41"}},{"ruleId":"D2","level":"warning","message":{"text":"IMessageRuntimeAssets.verifyExecutableCandidates (cognitive 18): IMessageRuntimeAssets.verifyExecutableCandidates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecbd6150750e470d67e19e7583706ea4580ff1dbeb9fa3b5fe819770e7c97d2"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDescriptionBackfill.run (cognitive 18): AgentDescriptionBackfill.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, error handling 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/AgentDescriptionBackfill.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5a68097ac76fad0d4eb5d82fadd7d8d496655cc1cf2cda4b200da8e3e286ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageHTTPParameterBuilder.edit (cognitive 18): ImageHTTPParameterBuilder.edit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, ternaries 2 (4 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":"Packages/OsaurusCore/Services/ModelRuntime/ImageHTTPParameterBuilder.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3aee41d1f28f29bde586d694ab3a8eb03f2f37ae115e4ada2bdef17d6015ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingFirstRun.runEnded (cognitive 18): OnboardingFirstRun.runEnded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"4419b7849cb3f30a8f1017a2bbc3f7a8e0402abdd6a45c2767250adf0f31ecd4"}},{"ruleId":"D2","level":"warning","message":{"text":"TeamSeeder.create (cognitive 18): TeamSeeder.create has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/TeamSeeder.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"62247b877b1aa77e34e63f83130571b3348c5ca3cc3f311ea04bb9e90a804b7f"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginProcessHostCallbacks.handle (cognitive 18): PluginProcessHostCallbacks.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 6). Of this number, 16 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":"Packages/OsaurusCore/Services/Plugin/PluginProcessHost.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"23595c579ba68a1825631e609e3750eb652893292dce1ffed9c3231437ea50df"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderNetworkDiagnostics.remoteModelDiscoveryRow (cognitive 18): ProviderNetworkDiagnostics.remoteModelDiscoveryRow has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 2 (3 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf525c68f658a29d385b512e13447d5592dbcaac5f777f5974f02bf47fcf20f"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.makeChunkStream (cognitive 18): RemoteProviderService.makeChunkStream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts), boolean chains 1, 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7777fc9c2af5370815b32aace29db5ef082ee206ed9eb19da62c6b158fba86"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteToolDetection.matchJSONObjectEnd (cognitive 18): RemoteToolDetection.matchJSONObjectEnd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 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":"Packages/OsaurusCore/Services/Provider/RemoteToolDetection.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"688409196799d6444ee24af081d96ddbcc1dfb8a469e68e6a2c1a69f07d5cfb5"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceAgentConnectService.refresh (cognitive 18): WorkspaceAgentConnectService.refresh has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, 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":"Packages/OsaurusCore/Services/Router/WorkspaceAgentConnectService.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"5423762d923fd21ef8d96928f46c7de6fca68ac9f89ec7a0092f4306935f98b1"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchEngine.run (cognitive 18): SearchEngine.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 2, match/switch 1 (2 pts) (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Search/SearchEngine.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd186a2ecb6deb987720f31e27a7432c7dab50e70190ca48684721d7874a8a1"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPJSONParser.parse (cognitive 18): MCPJSONParser.parse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9942f3378cbdb6f6d188a2f33ea88dfc196640d4fce2ca5e2045ccf46228e6"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.pump (cognitive 18): TaskScheduler.pump has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), match/switch 1 (3 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":"Packages/OsaurusCore/Services/Task/TaskScheduler.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4eb276a6423af749433aa7a5ee4164b5933aa488b2637bc89cb35716c965897"}},{"ruleId":"D2","level":"warning","message":{"text":"TemplateCascadePlan.make (cognitive 18): TemplateCascadePlan.make has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 6, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Services/Template/TemplateCascadePlan.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8590cfc800e12116d3eaa2ac759d855f35e36595e21d61c93850b1a66914a4a9"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowsRegistryAPIClient.registryTemplate (cognitive 18): WorkflowsRegistryAPIClient.registryTemplate has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 16, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbee0fd9603048eae8461a58a94944a5c7bbcf1d4fa4147099f780191696622"}},{"ruleId":"D2","level":"warning","message":{"text":"WhatsAppConnectionService.runWatchSession (cognitive 18): WhatsAppConnectionService.runWatchSession has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d460dac31601a6daa86cf268705451807156c9793e22e2f5c240b5d6755107c"}},{"ruleId":"D2","level":"warning","message":{"text":"WhatsAppRuntimeAssets.verifyExecutableCandidates (cognitive 18): WhatsAppRuntimeAssets.verifyExecutableCandidates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b780cbcab8cabbbefa664cf3a9b9a59821329e37e1744a6555e2ebbba7718d62"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentNodeExecutor.resolve (cognitive 18): AgentNodeExecutor.resolve has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/AgentNodeExecutor.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cf4e6083a6961dbc09f6399af6ac673809377e0c194736b45d926c65cef5a7"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeNodeExecutor.run (cognitive 18): CodeNodeExecutor.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, error handling 1, loops 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/CodeNodeExecutor.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b709a7b9b48268f150c06870cd9a76e75779bea8674424d4498c75075983550e"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDraftTester.reusePlan (cognitive 18): WorkflowDraftTester.reusePlan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, 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":"Packages/OsaurusCore/Services/Workflow/WorkflowDraftTester.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21ef652a8d295e54fb452c7eb6b232fa0d9ea79490ac1a236591f9d0b529eae"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageSubagentKind.localPermission (cognitive 18): ImageSubagentKind.localPermission has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (7 pts), if/else 3 (6 pts), ternaries 2 (4 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":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22b036826b51ffc68c8be592e0760fbe672f453d7ab1b37d9d853df7238daa6"}},{"ruleId":"D2","level":"warning","message":{"text":"DBExecuteTool.execute (cognitive 18): DBExecuteTool.execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (2 pts), 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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b01eb5e5c96f41d386c3e494225ed59bf346a998a3050f1a12e8208bc2f8633"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowTestTool.runFromNode (cognitive 18): WorkflowTestTool.runFromNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 3 (4 pts), ternaries 1 (2 pts), boolean chains 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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f650fe901ea05557dd4b2cad096229d031264feaff05854048950788d48a9e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputerUseConfirmOverlay.confirmCard (cognitive 18): ComputerUseConfirmOverlay.confirmCard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 6, ternaries 1 (2 pts) (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":"Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26407ffb39b66f177c34aa02f3ee41d2aece91b1025e6a958c9db46abd3505e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangeSetRow.header (cognitive 18): ChangeSetRow.header has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9 (13 pts), boolean chains 3, if/else 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FileChangesPanel.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"8685e7f884473e8dadbc7f7d26f69c80f3d478d6e55872871af7da7bb340aa4c"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.textInputArea (cognitive 18): FloatingInputCard.textInputArea has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (5 pts), ternaries 2 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":6069}}}],"partialFingerprints":{"codehealthFindingId/v1":"1334005c1aae7d6ffed31be9dd8a63dd8c35dba18d813c6b8ba054ccdc4a98bf"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialEditorSheet.body (cognitive 18): CredentialEditorSheet.body has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (9 pts), if/else 5, boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Credentials/CredentialEditorSheet.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9623ea7d001a9acdb055c5ad8721a29f34132d944f41e8ef5ab9808578020235"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPickerRow.body (cognitive 18): ChatPickerRow.body has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 5, ternaries 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aff4e9f254d7ab42d8043f589fd5f2ab516e0f0b53f7ed92156e42f8312f45d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelOverviewRow.routes (cognitive 18): ChannelOverviewRow.routes has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 2 (4 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/ChannelsOverviewTable.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eac1b690fc04415960fde97e58e3257f7edec95de8c316487fc35bf18c5b661"}},{"ruleId":"D2","level":"warning","message":{"text":"N8nSettingsView.body (cognitive 18): N8nSettingsView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 4, ternaries 3, match/switch 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":"Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dce2ff6a588c20f272189a4fbbede8b4ed0fd19884ae08548d3892b18272bad"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishedWorkflowDashboard.versions (cognitive 18): PublishedWorkflowDashboard.versions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (6 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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e03cd4576bf6e1e2ba585565d2db37e5e067cadad41a6391ba32361cdee312d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowFormFields.inputValue (cognitive 18): WorkflowFormFields.inputValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 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":"Packages/OsaurusCore/Views/Workflow/WorkflowFormView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"016c64a62e2f4f1f4a6a5014aa429100544067e2d907eea897df9f45105eb1c0"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogComponentSpec.defaults (cognitive 18): CatalogComponentSpec.defaults has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. 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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/DesignLibraryDefaults.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e383fc911934f23f6be3bac65fc33e2acbdc410aeeed3c9979d0a306cc584151"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowSetupWizardView.commit (cognitive 18): WorkflowSetupWizardView.commit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, ternaries 1 (2 pts), 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d5ffffa6df69137599edf55fa98052339be2992b39a6d898ad1a3d4693a891"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.top-level code (cognitive 18): main.swift.top-level code has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, boolean chains 6, match/switch 2, loops 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":"Packages/OsaurusCore/JSHost/main.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c71e15a939c648fb38f09883dad92f14f2544091ff6e12ccbe19a632618a48e"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.handleRequest (cognitive 18): main.swift.handleRequest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 2 (4 pts), boolean chains 2, 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":"Packages/OsaurusCore/PluginHost/main.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"365e5f8cf1533accca0b557a72c1006ae1d2d05991498ba992d9267934846ac9"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownMessageView.swift.groupBlocksIntoSegments::emitBlock (cognitive 18): MarkdownMessageView.swift.groupBlocksIntoSegments::emitBlock has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (9 pts), loops 2 (5 pts), if/else 2 (3 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":"Packages/OsaurusCore/Views/Chat/MarkdownMessageView.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e76d2faf5c57dec2664f25574029cf02dc34f10d37ae1904ef6f614a9279dd"}},{"ruleId":"D2","level":"warning","message":{"text":"Accessibility.swift.focusedViewport (cognitive 18): Accessibility.swift.focusedViewport has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"2830d96b4060bdee465b19e28de8b2c38580a61c93a8729f2ebc48b76f2c89ff"}},{"ruleId":"D2","level":"warning","message":{"text":"bridge.handleLoginEvent (cognitive 18): bridge.handleLoginEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 1 (nesting depth added 8). Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function literals 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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b9e21668915c78a0e093a0922c65108ab7e0ec30b3e4d64ad85b2274be3421"}},{"ruleId":"D2","level":"warning","message":{"text":"CoordCommand.runLock (cognitive 17): CoordCommand.runLock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (5 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Coord/CoordCommand.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbcbf364db1313e9b72eed684e5af836b73cee29d5c3a945233194f120d673f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsDev.runLegacyWatchMode (cognitive 17): ToolsDev.runLegacyWatchMode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 3). Of this number, 11 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsDev.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2f72caab656f8ef4f111215abddf0934f13e2feb7e8c730ee338af68839977"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsDoctor.execute (cognitive 17): ToolsDoctor.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsDoctor.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb566a6e731b85eebadaebb8940ff5719e40b0634d6030f3005a0f6c60a8111"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolsInstall.validateBundledManifestIfPresent (cognitive 17): ToolsInstall.validateBundledManifestIfPresent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (2 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10e3663d930fa49fc265ca9e6636979d984228bdedabc87c8e7562c310b4899"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.scoreToolUsageAudit (cognitive 17): EvalRunner.scoreToolUsageAudit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebe97fa67892145c3a23d43db6a08c452fc4bb32305ba487aacbede754b2c48"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runArchitectInlineCase (cognitive 17): EvalRunner.runArchitectInlineCase has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 3, ternaries 3, loops 1 (2 pts) (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerArchitectInline.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f48f662f8b88890ba3e23ab7a5d9b3f4fcf090b544542c64bd65e12147e02fb"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runMemoryCase (cognitive 17): EvalRunner.runMemoryCase has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 3 (5 pts), ternaries 2, boolean chains 1, error handling 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a83869f62f0fb3d19d25adbaf1196585c4711aba9b32521228292e13e55494a"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogLibraryToggle.body (cognitive 17): CatalogLibraryToggle.body has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (14 pts), if/else 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"990334146f4a1e10a0936e464c2131d86681e9eeb9c03ae6de459127b045f3bc"}},{"ruleId":"D2","level":"warning","message":{"text":"FileEditMatcher.apply (cognitive 17): FileEditMatcher.apply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (5 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":"Packages/OsaurusCore/Folder/FileEditMatcher.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e580ed5a367cee4a3591b36c0c853747f605693ebb2385c8da95b67c857903"}},{"ruleId":"D2","level":"warning","message":{"text":"FileReadImageSupport.load (cognitive 17): FileReadImageSupport.load has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (8 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FileReadImageSupport.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d16a5d133d880063cc8635c1aca4fd1e7b298fa415681c51a9b384c9dc9c79c"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProviderManager.handleCredentialsChanged (cognitive 17): MCPProviderManager.handleCredentialsChanged has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"283721c64514f47097eb9fa274ebccea80eca32528dac2265b3fdb2b74b53fb0"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillImportPolicy.scanExtractedTree (cognitive 17): SkillImportPolicy.scanExtractedTree has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 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":"Packages/OsaurusCore/Managers/SkillImportPolicy.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3f7fe564a3d2d443c8cb21f8ec4774ea766a21c11eb7e5ac91e885815fcbaf"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.jsonNestingDepthExceedsBudget (cognitive 17): HTTPHandler.jsonNestingDepthExceedsBudget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPRequestParse.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faf373fb538ca58fc0dab794ca52321a9e51d0b266b7bbb7e3914c9bb322228"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalReasoningCapability.undefinedKwargFallbackBranch (cognitive 17): LocalReasoningCapability.undefinedKwargFallbackBranch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). Of this number, 16 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":"Packages/OsaurusCore/Services/LocalReasoningCapability.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa9c003e7783c651e75b0892d339d51b6f97922ffe8ba103ef974019fef7583"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDownloadService.delete (cognitive 17): ModelDownloadService.delete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f8756b0a1fba4a07e08b7db789c2f104b19bfe93c14bb697e684a7bcf50515"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDownloadService.updateDownloadProgress (cognitive 17): ModelDownloadService.updateDownloadProgress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b2fc85fb66bb07dd608385493fa97c8ce9e1f455fc09334f2063e656894af0"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSSDResidency.localTableBytes (cognitive 17): ModelSSDResidency.localTableBytes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelSSDResidency.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f82aaca769bfd3e9594f3f4bee3f2987578e11aac0224fd69a7e4f117671c2"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelMessageStore.recordReceiveEvent (cognitive 17): AgentChannelMessageStore.recordReceiveEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 1 (2 pts), boolean chains 1, 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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f082a259a3cf3b1823f0449717df5fd24a59bca108d4461028a3b545cb2880b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDatabase.bulkWrite (cognitive 17): AgentDatabase.bulkWrite has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (11 pts), if/else 4 (6 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94d00612b839a305577e2391dcf874a057761b8ab420519ce48b5f2a298f664"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentBlobStore.spillOne (cognitive 17): AttachmentBlobStore.spillOne has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 4 (8 pts), 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":"Packages/OsaurusCore/Storage/AttachmentBlobStore.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabb3b18a5f1f57919b26f7d045060df84e321fb93957d7f32890645018c1f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentSession.prepare (cognitive 17): SubagentSession.prepare has cognitive complexity 17 (threshold 15). Drivers by points: error handling 5, if/else 5, boolean chains 4, ternaries 2, match/switch 1. Of this number, 15 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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a466b5c105de0eda43c954201b0eed67c647e9cc05bfd33d51573c75a0a9707"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxSearchFilesTool.execute (cognitive 17): SandboxSearchFilesTool.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"2051f43a745f2023e8fbffff80e6e5731dce63ca15c915e6ac36d615746b4504"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxWriteFileTool.writeWhole (cognitive 17): SandboxWriteFileTool.writeWhole has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0241f5039917c8385154e570261062ab2332686bac33e32b0211904db961777b"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxProcessTool.execute (cognitive 17): SandboxProcessTool.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 2 (4 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3209}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd795bad8ab60050ed7f55d925c8490170370e5abe3f5b46900348ff533b8332"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolWirePropertyOrder.write (cognitive 17): ToolWirePropertyOrder.write has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 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":"Packages/OsaurusCore/Tools/ToolWirePropertyOrder.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"78641118069e46a7f6b42c29a6af8a43a6b80d6651ff9d941abc8bcca3cee323"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarUpdateEventTool.run (cognitive 17): CalendarUpdateEventTool.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, ternaries 2 (4 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"197b46b888043335dd0a749b99c8166db0743efa1d4d3eeb90adf3e98332605b"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMacDriver.coordinate (cognitive 17): NativeMacDriver.coordinate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/NativeMacDriver.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0541fa0e32d5229462b0103923f02902184f3a1ec853aba7d45cb574ee37bd04"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenContextDistiller.statusToken (cognitive 17): ScreenContextDistiller.statusToken has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88701380298fa9356482c4354235c5922f6095b1b78bbb9ebc72e80966d666b"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.addProvider (cognitive 17): ConfigApplier.addProvider has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 3 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":2315}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0eeffee1a22d4fe2f20b24526ea5575c92bff374e41c82172359a7b253384e"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigChannelPosting.apply (cognitive 17): ConfigChannelPosting.apply has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (6 pts), error handling 2 (5 pts), if/else 3 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigChannelRouting.swift"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d9417a1485def6e51814c72c1993609c0354651071980268b2cf590d5bea50"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPlanner.planChannels (cognitive 17): ConfigPlanner.planChannels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d426d6c16957669fb85614cf1321da1226e119b339b20cd7845c7e98d4b707"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenResponsesTool.init (cognitive 17): OpenResponsesTool.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (15 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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd6fb0fbf37da6936ae99094fdbd89a4eb2afa696dcca2818ae6f0e3a9c33eb"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelN8nEnvelope.parse (cognitive 17): AgentChannelN8nEnvelope.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelN8nModels.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"9499ce7a07ed02197155dec9b00b3350d726bac8305ae8384ad93b7304d2b905"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelMessageEnvelope.parse (cognitive 17): ChannelMessageEnvelope.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, 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":"Packages/OsaurusCore/Models/Chat/DispatchEnvelope.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"61aa2f3c90f42e902105a0c80c7790a3725bb1a24f9bf6a2f0f08b956ab9a3c2"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicSSEResponseWriter.writeCompletedThinkingBlock (cognitive 17): AnthropicSSEResponseWriter.writeCompletedThinkingBlock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d9cec391cc3edf9796cf15f8f96036fe07d0552ee03b9c96013e8f93e82c3b"}},{"ruleId":"D2","level":"warning","message":{"text":"IMAPMailboxEncoding.decode (cognitive 17): IMAPMailboxEncoding.decode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Event/EmailMessage.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9920908db18f386495e056059f04ec2ca08bfe40c16bd87baf2dd154c62a77d"}},{"ruleId":"D2","level":"warning","message":{"text":"PrivacyFilterPipeline.scanForLeaks (cognitive 17): PrivacyFilterPipeline.scanForLeaks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e516020b08619cecc76efb35d5e32d1cba31525d36b9cb6a54b23372c35b2c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelWebhookIngress.handleTaskPoll (cognitive 17): AgentChannelWebhookIngress.handleTaskPoll has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 5, match/switch 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4b0d8eee76ee5e215ca0a4c0333f67a89d2c5a95d2b0ab3b8a75a16096aed4"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolResultMediaBridge.hoistingToolImagesToUserMessages (cognitive 17): ToolResultMediaBridge.hoistingToolImagesToUserMessages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (nesting depth added 5). Of this number, 13 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ToolResultMediaBridge.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f139a9dc0b859ff9044dd4ea6d01e089b8a3aea807df4cba535a05164fd0a473"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportPreflight.annotate (cognitive 17): ChatImportPreflight.annotate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportPreflight.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4dd131a786c9a8552c720aefa6a9e4be3ad604c29bd45a8f57bbb30534d19f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportSummary.text (cognitive 17): ChatImportSummary.text has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 4 (5 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportResults.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"043ad70c555f45744450368c9de0a2d06c84c2b97ba313933de63e3ff5457e35"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilityClaimsEvaluator.matchedCloseIndex (cognitive 17): CapabilityClaimsEvaluator.matchedCloseIndex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (3 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":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ffe7852e67b0fdc3941dc6d3ead355a5d3e75c3d64813440dbe713bcda19ec"}},{"ruleId":"D2","level":"warning","message":{"text":"SignInSessionStore.syncConnections (cognitive 17): SignInSessionStore.syncConnections has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 1 (3 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Credentials/SignInSessionStore.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"09af30c084790af444667f86998d473f7543ae62ecaec7b70cec0f833005685d"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFAdapter.glyphs (cognitive 17): PDFAdapter.glyphs has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 3 (5 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"583d6b05c5962f03ffc67276e3dd67bf264521ae163d1879adb8fefed5b71743"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFEditor.merge (cognitive 17): PDFEditor.merge has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFEditor.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6dc7d364ec8f6d156c7d431f31840b6c405fd428b863aec1780e88c9c6c824"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkbookWorkflowValidator.validateCell (cognitive 17): WorkbookWorkflowValidator.validateCell has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fbed098f77d092c92a5bb9a5503c8cf1e79c02ca4c7e26f890544dfa790a65"}},{"ruleId":"D2","level":"warning","message":{"text":"WorksheetParser.cellValue (cognitive 17): WorksheetParser.cellValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (7 pts), boolean chains 2, match/switch 1 (nesting depth added 7). 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":"Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ec056cbdeea36b845360343f945287ebe9d8707ca248229a8b697e1b8f3adb"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailChannelService.diagnostics (cognitive 17): EmailChannelService.diagnostics has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Email/EmailChannelService.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e290113f90350315a1a9006ea559bcc7987e21db5d3f2812d66d744970ddd0"}},{"ruleId":"D2","level":"warning","message":{"text":"WebhookVerification.timestamped (cognitive 17): WebhookVerification.timestamped has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/WebhookProviderProfile.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b1a0e842d0880efdc408ed707e315cd85c70431981a093bcfb3eb3c783d0af"}},{"ruleId":"D2","level":"warning","message":{"text":"IMessageConnectionService.diagnostics (cognitive 17): IMessageConnectionService.diagnostics has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 4, match/switch 1, ternaries 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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"952541637e7e8d2576b0ba3bfae8b14e51d59e61b2cf42dd4a67a8dc61cb547e"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingImportProcessor.apply (cognitive 17): PendingImportProcessor.apply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (4 pts), error handling 2 (3 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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ace6694ff0e8f2c5d800df782bac6f2172189b460661b7c38fd23a19fb53daf"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingImportProcessor.decideSetting (cognitive 17): PendingImportProcessor.decideSetting has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 4, ternaries 2 (3 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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be873c1d58e500d80ffa0e0afa9c7d53cd3e0abfbc8d719ce09c005a56125a9"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingImportProcessor.announce (cognitive 17): PendingImportProcessor.announce has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, 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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"4152309fb23831b727852adf0f21331e4f15c5f41e07be305a1d69c63fe1be55"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingStatsHint.encode (cognitive 17): StreamingStatsHint.encode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0af86b53023c5a1e95dac2e9250539568db75b51fda08fdb77b1207110301e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesGenerationAccumulator.consume (cognitive 17): ResponsesGenerationAccumulator.consume has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), 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":"Packages/OsaurusCore/Services/Inference/ResponsesGenerationAccumulator.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"af04873d985768c6119c6a20f951409b593ecbac3521a8b0dc337bb21d71a8ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesGenerationResult.openResponsesResponse (cognitive 17): ResponsesGenerationResult.openResponsesResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (6 pts), boolean chains 2, 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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"5596766760bac2a2b7789958a7d8221bbe1cf9b47b22ce10cdaf4cf09b9723cd"}},{"ruleId":"D2","level":"warning","message":{"text":"StructuredOutputCapability.support (cognitive 17): StructuredOutputCapability.support has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 5 (6 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/StructuredOutput.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"48eaf48cc2aebe0f534f6840fe03b7b3c07ccf2f57ec047b1d6ef15b2dab946a"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeDiff.lines (cognitive 17): KnowledgeDiff.lines has cognitive complexity 17 (threshold 15). Drivers by points: loops 7 (10 pts), boolean chains 5, if/else 2 (nesting depth added 3). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeDiff.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e97b2d795d02e7368297167f3d7e0d7cf791d061c6c5776c44fa9aa572bfb1"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneAgentEditing.apply (cognitive 17): PhoneAgentEditing.apply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 2, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MobileConnect/PhoneAgentEditing.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7787223dbdebe7620fb9fd93dda253254a3c56e5bb482aa12eaee3bd2cba9a"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.capacitySnapshot (cognitive 17): Registry.capacitySnapshot has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e148835d8150734b36600fb0e0478d3b8804b1c8a60bb42ae0872028457dde5"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingEvalHarness.preparedReads (cognitive 17): OnboardingEvalHarness.preparedReads has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 5, loops 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingEvalHarness.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"62023e0325cced4951c67c964512dd8d470402a2d1ec66aa4b33e72b5efc4f0e"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingPanel.make (cognitive 17): OnboardingPanel.make has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2, boolean chains 1, 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingPanel.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06efa28049f5153206761c958c7a8c0c24d3d7d9eaf3cc61b3e7c929fe4c136"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginHostContext.taskStateDict (cognitive 17): PluginHostContext.taskStateDict has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, 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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":3205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea082b55ce22f3324b70767b56ebcaf1cd60d051765c8c3a40f9a449a715a83f"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderService.fetchFireworksCatalogModels (cognitive 17): RemoteProviderService.fetchFireworksCatalogModels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":7705}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f19000f4197541c4210c312bb370e5c75e2b26c298cf1f5c10aef839cc52bc"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceRosterStore.apply (cognitive 17): WorkspaceRosterStore.apply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 4, loops 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":"Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d56db110f3fd0f784ac1c6791f1c36d3f9b8e4d3ed98aadb553491a088c2b3"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchHTML.canonicalURL (cognitive 17): SearchHTML.canonicalURL has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (5 pts), boolean chains 2, 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":"Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68930ae1ee236b047d1e3ddab22a01f873756a715af79cafe3ab547cf01e163"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchStructuredDataInspector.collectArrays (cognitive 17): SearchStructuredDataInspector.collectArrays has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Search/SearchStructuredDataStore.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1954191e0a838dedbc885185fd955a59412a423b666f441164ab1478200ebc1"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogNodeExecutor.run (cognitive 17): DialogNodeExecutor.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4, match/switch 1 (2 pts), error handling 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/DialogNodeExecutor.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e062ed7eb9096b727e40c25ca19dce12ef77b7b61b6ab678a3a0f5625541cd7"}},{"ruleId":"D2","level":"warning","message":{"text":"OAuth2ConnectionFlow.signIn (cognitive 17): OAuth2ConnectionFlow.signIn has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, error handling 6, boolean chains 3, ternaries 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":"Packages/OsaurusCore/Services/Workflow/WorkflowConnections.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"e528d019aafd3c8d3d34f47200e8e709d14d75c1d94c5555d501be5c18938d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowEvalHarness.score (cognitive 17): WorkflowEvalHarness.score has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 5 (6 pts), boolean chains 2, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5a35d8202f840980e20ebcfb8c27db9ff4fcd62346db1ce2b1e874db8545de"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowNodeError.isRetryable (cognitive 17): WorkflowNodeError.isRetryable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, match/switch 3 (6 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowNodeExecutor.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"110f103b83215cea3d84e287b8798e6fc4d5ef6fb92475dea916cdce899c71b0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDraftTool.patch (cognitive 17): AgentDraftTool.patch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 3, loops 2 (3 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Agent/AgentDraftTool.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a205b596013a66621ebfa69b8a84a6c027520ea451eda5469d9d5177f622f1b"}},{"ruleId":"D2","level":"warning","message":{"text":"DBCreateTableTool.execute (cognitive 17): DBCreateTableTool.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ed14e3a906e6a2b3431e0844c5d57f4f5337cecc0e1e400805dc7d15743a1d"}},{"ruleId":"D2","level":"warning","message":{"text":"DBExportTool.execute (cognitive 17): DBExportTool.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 1 (3 pts), error handling 1 (2 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2651daca04a1f216baff376c5b22bce9bafcee7a0852a42a7bcc45729a10231d"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchitectInlineHandoff.draftAndStart (cognitive 17): ArchitectInlineHandoff.draftAndStart has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Packages/OsaurusCore/Tools/Handoff/ArchitectInlineHandoff.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"0884c2254ad13c691c54ab688147d024846da9ad952671664d3c35b550e46a53"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunsTool.execute (cognitive 17): WorkflowRunsTool.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 5 (8 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":"Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8e9b63b6c95fc9e30a8dea8401c95c0f90f15849c751d22ca47c5317265630"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentDetailView.quickActionRow (cognitive 17): AgentDetailView.quickActionRow has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 5 (7 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5981}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d1bb0df6d152b14725b3c83974d38202ff4e864779469c7e4fce24f23f3e4a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionSidebar.workspaceMemberSection (cognitive 17): ChatSessionSidebar.workspaceMemberSection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (7 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"0521973ff1a63c0e815ef4e7abaaeb626e6050c9a4a71ab939ce861688c37827"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.stop (cognitive 17): ChatSession.stop has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":3070}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a83d1a1e814d28ac959fca2c37779ae1fe171babe2aebd8414bbe44dd0e1d57"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingInputCard.checkForSilenceTimeout (cognitive 17): FloatingInputCard.checkForSilenceTimeout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"10296e0d0a1407d1bffb67966b2f7f5506fe4e04e39032168b028ffddde3e1e8"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeArtifactCardView.buildPreview (cognitive 17): NativeArtifactCardView.buildPreview has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e5ba1d7278cbfd76f717e9b38e237a8a5cc05e5026b97cbcf5f01962c0a6e3"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownView.configure (cognitive 17): NativeMarkdownView.configure has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 7, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"0623c430e373ed2672cc5376234660e929103add280871c2d71b4b4683bc34f8"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingMarkdownBalancer.stripFreshlyOpenedTrailingMarker (cognitive 17): StreamingMarkdownBalancer.stripFreshlyOpenedTrailingMarker has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/StreamingMarkdownBalancer.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e0e6ee9004dfdc52d26d6522376e500d9fae91edd25fac8328acef95c106d2"}},{"ruleId":"D2","level":"warning","message":{"text":"VaultAccountsView.sessionRow (cognitive 17): VaultAccountsView.sessionRow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3 (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":"Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cbc1337a07bb56d9340900aee291c174aaaf47fc464105f6cae4ec0b1805d3"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewTab.interactionSection (cognitive 17): OverviewTab.interactionSection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 2, ternaries 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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eacd037b7fe2b368d9818238856a9a5706425ecbcd3ecf1d3aa5dae209cd607"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageSettingsView.applyEncryption (cognitive 17): StorageSettingsView.applyEncryption has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 5 (6 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13f7ec90846fcb2dac9f1878ea74de93d8d6ccc19dd19370b90a568bbfd92b7"}},{"ruleId":"D2","level":"warning","message":{"text":"WhatsAppSettingsView.startPairing (cognitive 17): WhatsAppSettingsView.startPairing has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1, 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":"Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d966a7de2f82ea44bfc3898f873e7bbbf71f46923964a28e03f4146e079e1f"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskPresentation.statusLine (cognitive 17): TaskPresentation.statusLine has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Task/TaskRow.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5528e436f08d38aff1ca3f595f5de61e196fe803b6bc523f8dc8d9fa5e418dce"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceDetailView.poolSection (cognitive 17): WorkspaceDetailView.poolSection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2dcdd92ecda0a9ecd54304c6496db98d7f44042c2f7b563e0d9c0d3cdf36acf"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateWorkspaceSheet.body (cognitive 17): CreateWorkspaceSheet.body has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, if/else 6, ternaries 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"6138e0c43254a08046d7f05120820d06ec7f15bdef531c6f5797b2824721375f"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginAssertion.verify (cognitive 17): LoginAssertion.verify has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 6, error handling 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Auth/LoginWithOsaurus/LoginAssertion.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f52e7add0d72cccacfbda452372afa26aa61bce7f4d9446357a61df503566b3"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalizedUnits.init (cognitive 17): NormalizedUnits.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/OOXMLText.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3894cca19eda80f722b7ff8bd0d4de544edaa8cd3f27b81af66339e8a01d492d"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailMIME.parseHeaders (cognitive 17): EmailMIME.parseHeaders has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, 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":"Packages/OsaurusCore/Services/Event/Email/EmailMIME.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0faf41d3b43c6e07c3886d27ee69494146c5896e8b4e507d91bd54e6b3c365"}},{"ruleId":"D2","level":"warning","message":{"text":"SSEScopeDriver.handle (cognitive 17): SSEScopeDriver.handle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Stream/SSEEventSource.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c9cbd26929b7431345e26ba5576c93b55acd8b524a1cd2d0ba41936c27decf"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPOAuthService.performRefresh (cognitive 17): MCPOAuthService.performRefresh has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6 (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":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"215f415eb6775d80c42d904a421f39dcad6520301ec86fad4a15879f58a217c0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSetupWizardView.finish (cognitive 17): AgentSetupWizardView.finish has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, loops 1 (2 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5452630ef5292a065b20fbaf5bacf8f65d64365bf5b02ed345c100b89033e3"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaStepEditor.imageParameters (cognitive 17): MediaStepEditor.imageParameters has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c79c518d33c47a587ff72aea699e401fccd3fc65c7c132399d9de9b3f46227"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowFlowLayout.crossings (cognitive 17): WorkflowFlowLayout.crossings has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 4 (6 pts), boolean chains 4 (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":"Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowLayout.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5261eda3c540ad13801627b245abf50f45335eec9df8cbbe4ee332b2b8273b09"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowSetupWizardView.body (cognitive 17): WorkflowSetupWizardView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, ternaries 5, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b13926d8aec511d14642797a74512107a842925edf34c0c67d0c432db1034e1"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteProviderEditSheet.swift.parsePastedEndpoint (cognitive 17): RemoteProviderEditSheet.swift.parsePastedEndpoint has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 5, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94338720e4e0b9063114fd94c803ff83ac1f774db644ac7b5c412001c6b6672"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCommand.runExport (cognitive 16): ConfigCommand.runExport has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 1 (2 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"459cc291f03d98c7da99a94c3226becddb8178df7b296fd10405b93a0034bd93"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCommand.request (cognitive 16): ConfigCommand.request has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"5270e4e3150966581ce6831adb20a0629578461e937f98893a1147d0f603249f"}},{"ruleId":"D2","level":"warning","message":{"text":"PullCommand.fetchMatchingFiles (cognitive 16): PullCommand.fetchMatchingFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3d11acb062732ffd5dcee79313cea5fc75c38a5c5837e40ed258bfb56aff0a"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestValidate.validateConfigFields (cognitive 16): ManifestValidate.validateConfigFields has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestValidate.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48f93a6baae6e19fa3302757317aab621f4575bd6bcb08452f0504d71e9d4fd"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputerUseScorecardBuilder.build (cognitive 16): ComputerUseScorecardBuilder.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3, loops 2, match/switch 1 (2 pts), boolean chains 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b968f645846edf2b9bddf38ce586b21eb7fe54e01a0b05cd5a67c1ba13d470"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalBootstrap.applyKVRegimeOverrideIfRequested (cognitive 16): EvalBootstrap.applyKVRegimeOverrideIfRequested has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b720628bebf4308a73d1e78ec6aeee2efa9d4cf0efdceaeec70207030b6651"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalFixtureServer.respond (cognitive 16): EvalFixtureServer.respond has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalFixtureServer.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5222b803bd5cc483605551caecd5cc23740cd4b7c521204357b256697efb458"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheProofDecodeGate.evaluate (cognitive 16): CacheProofDecodeGate.evaluate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMetricGates.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa6ebb3575b66f19d72f52fb6d08e2ab7f7566646173878181e633e57083b23"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalReviewReportBuilder.loadReportsRecursively (cognitive 16): EvalReviewReportBuilder.loadReportsRecursively has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, error handling 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"456f9b4eced77ab95a4c7b7756adde5c94531b463ba8354c4348ac002d3fb42a"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalReviewReportBuilder.compare (cognitive 16): EvalReviewReportBuilder.compare has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, loops 3, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"0499216a0deac79f5e8d29208dc09c303122ff5e3d9442b906f6e94a768ac05e"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRunner.runCapabilitySearchCase (cognitive 16): EvalRunner.runCapabilitySearchCase has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2703ca04d84f8448e953f9e4f39d15f0ecf8efb4bc12eb4485182c78e075f29b"}},{"ruleId":"D2","level":"warning","message":{"text":"EvalRemoteProviderBootstrap.preset (cognitive 16): EvalRemoteProviderBootstrap.preset has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 2, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/RemoteProviderBootstrap.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"9239193774480f2a3d66ca2ba6392bf852d6e6c478bbe79cfe531537d3ef1211"}},{"ruleId":"D2","level":"warning","message":{"text":"TextLineReader.forEachLine (cognitive 16): TextLineReader.forEachLine has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 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":"Packages/OsaurusPlugins/StatsPack/Sources/OsaurusStatsPack/TextLineReader.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c322b1ad89a91faaabaad4d38dc53666f44d0940d2158250b6d778c9673da551"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogTokenButtonStyle.makeBody (cognitive 16): CatalogTokenButtonStyle.makeBody has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 12, boolean chains 4. 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":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b60fd750bce36d778c4d065270c5e09a4f614d22e2a16f58b6525adea9a6f2"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogContentView.body (cognitive 16): CatalogContentView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 5, boolean chains 4. 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":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eff9891d52bd35f8ec9632964aae08d4af5ba4237456fc4e9f3367c8859fce6"}},{"ruleId":"D2","level":"warning","message":{"text":"DesignCatalogLayoutChecks.run (cognitive 16): DesignCatalogLayoutChecks.run has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, loops 2 (5 pts), if/else 2 (3 pts), error handling 1 (nesting depth added 4). Of this number, 14 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":"Packages/OsaurusCore/DevelopmentDesign/DesignCatalogLayoutChecks.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2939116f5467fe980c53ad30e0e28fd9d11f92091a3eae231f5c0b7522c8a4c9"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceWriteSafety.unifiedDiff (cognitive 16): WorkspaceWriteSafety.unifiedDiff has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, ternaries 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/WorkspaceWriteSafety.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad6a3d3bf04d797993215859ee5ea1e58133a3202e2530f941037ed2f0fcda6"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundTaskManager.lookupContinuedSession (cognitive 16): BackgroundTaskManager.lookupContinuedSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, 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":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea789048e3e025d274b7272d2cf63cad365d0c1c1db713305d4846a713420b3f"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowManager.show (cognitive 16): WindowManager.show has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/WindowManager.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d58577bc880548759aa9a34e1b5e2f18236b1b53afb3248efc4d69ea7bb664"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleAgentWarmEndpoint (cognitive 16): HTTPHandler.handleAgentWarmEndpoint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, match/switch 1 (3 pts), error handling 1 (2 pts), ternaries 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6330}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e4e675c160f9a87fce534696982fa2b9d55e4bd1461f3c64f975b6a6709c66"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPHandler.handleSecureSessionEndpoint (cognitive 16): HTTPHandler.handleSecureSessionEndpoint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 4). Of this number, 15 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9019}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc8c65bca7bceac0427f7b430f570df59cc011db456ebcc2ff8db91d55ccc18"}},{"ruleId":"D2","level":"warning","message":{"text":"HostAPIBridgeHandler.channelRead (cognitive 16): HostAPIBridgeHandler.channelRead has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, ternaries 1 (2 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HostAPIBridgeServer.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb16732f3c1cdec2581e61e81765509997afe53e5ac81fcab17c79c77d55a71"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubSkillService.listSkillAssets (cognitive 16): GitHubSkillService.listSkillAssets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (5 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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3ef6c6adfb99cc434876eabb4461c901fbf962311a13fe96802fa179aeaa7a"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.clearDiskCaches (cognitive 16): ModelRuntime.clearDiskCaches has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d67b51b32867452121b0a46e02e59dfdc78c457a1ddae8f9c5bc36e5ff1669b"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSSDResidency.validatedNGramBytes (cognitive 16): ModelSSDResidency.validatedNGramBytes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelSSDResidency.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfdbcb43d6290df8bcec02cd88ee0762582806031a5a7cbed322d37b995aa72"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingModelsProxy.resolve (cognitive 16): OnboardingModelsProxy.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/OnboardingModelsProxy.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"596483c09d3ca9a7dda8e02c1942f2531e30f5166dde4b2d26a9ab0b5082420f"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageExportService.performRotation (cognitive 16): StorageExportService.performRotation has cognitive complexity 16 (threshold 15). Drivers by points: error handling 5 (8 pts), if/else 3 (5 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/StorageExportService.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc187f4df86cc5a8a151fae97e4235b1f64e909744daade7cf4391c2634b360"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageFormatConverter.export (cognitive 16): StorageFormatConverter.export has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 2 (4 pts), ternaries 1 (2 pts), boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/StorageFormatConverter.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"21486b5d227ba223896c31944bdd075b65275ec2267f949c4903aa0916113911"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentChildRequestEstimate.boundedPositionBudget (cognitive 16): SubagentChildRequestEstimate.boundedPositionBudget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4 (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":"Packages/OsaurusCore/Subagent/SubagentBatchAdmissionPlanner.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b97221fc98b14df4fc9d8c3fadc23f707ef2f4f4f7e56e9976ea1faecf29e2"}},{"ruleId":"D2","level":"warning","message":{"text":"CalculatorTool.payload (cognitive 16): CalculatorTool.payload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/CalculatorTool.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e51810540b36e1ca0f1edf3d6793d49a89b877a48dc17ae42ac532242862c5f"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusInspectTool.statusEnvelope (cognitive 16): OsaurusInspectTool.statusEnvelope has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"2408bc7183a7efbc38466db5d521e02d119a2e123db890ca490eea97e8336840"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderChartTool.resolveJSONPath (cognitive 16): RenderChartTool.resolveJSONPath has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, 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":"Packages/OsaurusCore/Tools/RenderChartTool.swift"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2af7f44a5fbf4e27aa31ceb5fa92b30e1ec6fd4d9e48f924f838f072f7c396"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderChartTool.unwrapQuotedDelimitedPayload (cognitive 16): RenderChartTool.unwrapQuotedDelimitedPayload has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (6 pts), ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/RenderChartTool.swift"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efdc8efc42690f6e191dd363936f87aafbdfc74a2df088ecc8b5b7f1534fca4"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaValidator.normalizeKeySpelling (cognitive 16): SchemaValidator.normalizeKeySpelling has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 5, loops 4 (5 pts), if/else 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SchemaValidator.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"012b03661979575610d880722a3e30b7333a0683fb07b385f21ef529bf81fc8d"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortcutsCLIService.run (cognitive 16): ShortcutsCLIService.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (4 pts), boolean chains 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":"Packages/OsaurusCore/AppleApps/Shortcuts/ShortcutsTools.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"43307b92cbeea0773741123fe5d32c97c4eb75b17b4e57a7af679703e04b28f8"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleJSON.serializable (cognitive 16): AppleJSON.serializable has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (6 pts), if/else 3 (4 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31d937dce2b8a57f3e425f47bc3cceea9df0b85f6b7baeb5305bd13b80f757d"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserSession.waitFor (cognitive 16): BrowserSession.waitFor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1019d8df30f9a80554388b0608c2a2bdb0049d41bdccca43d8dd7edeca17c3"}},{"ruleId":"D2","level":"warning","message":{"text":"FrameScrubber.recognizeAndDetect (cognitive 16): FrameScrubber.recognizeAndDetect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 2 (4 pts), error handling 3, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Perception/FrameScrubber.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"020caa38d2f79927c61c3561fed8dd3650c92583494722d7e6a0af79f5f6f3c9"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyCommands (cognitive 16): ConfigApplier.applyCommands has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9233602b864b7485335619aed9537ba3403f7575187de5266dba549f1f56575"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigApplier.applyPlugins (cognitive 16): ConfigApplier.applyPlugins has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8db03a89dc37cc0560da4e491c604c86f45daf22eab0578f28b1305c3c2c92"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusConfigTool.handleHistory (cognitive 16): OsaurusConfigTool.handleHistory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, error handling 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool\u002BHistory.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0d87f35576fa6ccd280d597cbd333738a0eb84d08224402e30de9ba874bd8a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionImporter.parseChatGPT (cognitive 16): ChatSessionImporter.parseChatGPT has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5caf37c01526565573dc1c0fb170049d83f168a1835e8213cc31ad3b585f65ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatWindowState.restoreTabs (cognitive 16): ChatWindowState.restoreTabs has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (6 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0e8da08d850c09a170b56ab159b5b7212d801c297cb9eaf8a5074a3964895f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessage.substitute (cognitive 16): ChatMessage.substitute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, loops 2 (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":"Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"160224d67da4b65e16cfa06764b33e30e52095997dcf509db4509e5704bac5e9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelLiveProofReadiness.telegram (cognitive 16): AgentChannelLiveProofReadiness.telegram has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, ternaries 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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6794270cdb87ae4002c186f47fb16c6a45f0d49f319451ed827175318889e76c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelLiveProofReadiness.slack (cognitive 16): AgentChannelLiveProofReadiness.slack has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c06a726c6e116db00e4ada66e2a119bfee2329d4866ebece7db135b0822565c"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyInboundDispatchCarryOver.connectionsFile (cognitive 16): LegacyInboundDispatchCarryOver.connectionsFile has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), loops 2 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/LegacyInboundDispatchCarryOver.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3161de435e117a65aa36930fb53702389fa4affa93eef878d20673971ae909"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicReasoningContract.wireControls (cognitive 16): AnthropicReasoningContract.wireControls has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 4, match/switch 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/AnthropicReasoningContract.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"698cfc6a236aa100e858ccbb1281682264f9944359ab6939bc697a78baa55d75"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXModel.localBundleDownloadSizeBytes (cognitive 16): MLXModel.localBundleDownloadSizeBytes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/MLXModel.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e56a13aa55ec6a935f6bf26c224e97def16099b0e137ca77d9bbe407e839a6"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerRuntimeSettingsStore.shouldRepairMemorySafetyOwnedCacheDefaults (cognitive 16): ServerRuntimeSettingsStore.shouldRepairMemorySafetyOwnedCacheDefaults has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 15, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"68580917c5da7d044d2a88e39bff8bc8a7721ee678340b82b2757495ccd54ef8"}},{"ruleId":"D2","level":"warning","message":{"text":"OsaurusEvent.sourceSummary (cognitive 16): OsaurusEvent.sourceSummary has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 2 (3 pts), match/switch 2 (3 pts) (nesting depth added 7). 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":"Packages/OsaurusCore/Models/Event/OsaurusEvent.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b88a3be2c5fb0d3deebfe2b96f73dc4dce734e687523d2c2db7b81bc4610371"}},{"ruleId":"D2","level":"warning","message":{"text":"Template.parseExactly (cognitive 16): Template.parseExactly has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Models/Template/Template.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb27adad14ef7bbc24c9de75531e8c7b65415cf295d5af552f652d0dc4041a4"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDiff.plainLines (cognitive 16): WorkflowDiff.plainLines has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), match/switch 4 (6 pts), ternaries 2 (4 pts) (nesting depth added 5). Of this number, 13 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"1933001aa3be5a710e9f880e9f010b042a4dce7c1712b3106bdb4e7386aa2de0"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowValidator.toolOutputWarnings (cognitive 16): WorkflowValidator.toolOutputWarnings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (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":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3516c22c82ccac24a2ec36896fcf53cec4f2e1641e9695fad4c051f71bb5089"}},{"ruleId":"D2","level":"warning","message":{"text":"PrivacyFilterModelBundle.verify (cognitive 16): PrivacyFilterModelBundle.verify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 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":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelBundle.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2632631d94c4179c4b483d151fe7802121af06787a36df06dd69f38ed043669"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentBundleService.resolveImportIdentity (cognitive 16): AgentBundleService.resolveImportIdentity has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"626b09050927653fde8ed57894b1da0b88c4b08fa820a0b439a388f5246fd5b1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelTemplateRenderer.replacement (cognitive 16): AgentChannelTemplateRenderer.replacement has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"245f110f79481781bac5cf9b63c285316d501e84267be3fe21391a7fae05c482"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelPublishService.operatorSend (cognitive 16): AgentChannelPublishService.operatorSend has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8272184094b774b64a84e8c098a47e46d1ffbdf22add5577567af254547f0d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentChannelWebhookIngress.handleInbound (cognitive 16): AgentChannelWebhookIngress.handleInbound has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 3, match/switch 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3646841bfebb3f110f1033f15181403c4921d2f42368e9e1cad939a8a05bd8"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelReplyTokenService.validateToken (cognitive 16): ChannelReplyTokenService.validateToken has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Channels/ChannelReplyTokenService.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4814534dce09308da9c9eb26b5fea04e91ea60c0f840a971f3785fb53062c4c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolLoop.runBatchInParallel (cognitive 16): AgentToolLoop.runBatchInParallel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (5 pts), boolean chains 1, error handling 1 (nesting depth added 4). Of this number, 14 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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f1091c8f5c352e26abe4d60f40a7d94a2ca14dfc1ad61afb52b65f03cfe458"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextBudgetManager.countRecentMessages (cognitive 16): ContextBudgetManager.countRecentMessages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ContextBudgetManager.swift"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"12406c050eeb82b3dd2898ed5200b8346ddbaa97ad06c90786ccd1fe84a85614"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextCompactionService.summarize (cognitive 16): ContextCompactionService.summarize has cognitive complexity 16 (threshold 15). Drivers by points: error handling 7, if/else 4 (5 pts), match/switch 1 (2 pts), ternaries 2 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7765d0e68cce0fad75f1bdf7558137bce407d909aed32b062e6e8acb5d69cd07"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemPromptComposer.hasAnyConfiguredAgentChannel (cognitive 16): SystemPromptComposer.hasAnyConfiguredAgentChannel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a362ba4fed480d6b8686ad91e53292275ec877856f21a840436e33df8bd196a"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemPromptComposer.compactWorkspaceSpec (cognitive 16): SystemPromptComposer.compactWorkspaceSpec has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3453}}}],"partialFingerprints":{"codehealthFindingId/v1":"4898df1fbf656044934fe9eed3799ad6dcc14c310f2c91afcf48d23f13b44115"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatImportSummary.describe (cognitive 16): ChatImportSummary.describe has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 3, match/switch 1 (nesting depth added 6). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (noun). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/ChatImportResults.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"650e358b9ad92945b53dbeae93e069d6a456c5586b96efad73ea26258d4e3df5"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialMigration.importPlugins (cognitive 16): CredentialMigration.importPlugins has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (6 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":"Packages/OsaurusCore/Services/Credentials/CredentialMigration.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9028a7c8c3b6af9ca8bf21857630811d8bed5581ca703d13977a3c18c30c3067"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialMigration.importGlobal (cognitive 16): CredentialMigration.importGlobal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 3, loops 2, ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Services/Credentials/CredentialMigration.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaaa5573682ff2c7967afe46bf25f3e24281f3710de5550cacc8034876c6808a"}},{"ruleId":"D2","level":"warning","message":{"text":"PDFTableDetector.tables (cognitive 16): PDFTableDetector.tables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFTableDetector.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7f6128b87c1d3584ad92d5424f15e51d9cc0d3497ed14b6e4d96761b1e38f5"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailChannelTransportRuntime.tick (cognitive 16): EmailChannelTransportRuntime.tick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, error handling 2, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Email/EmailChannelTransportRuntime.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf17b612aa1178152d1508615d816e26a8ec1521f91aa82205c1ce0ea465277a"}},{"ruleId":"D2","level":"warning","message":{"text":"EventManager.finalize (cognitive 16): EventManager.finalize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, 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":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf36284bf6d62c4feb8722bd2b7bb0f3abe46267a4019e63612b12ebc4a1f40f"}},{"ruleId":"D2","level":"warning","message":{"text":"EventMigration.legacyChannelEvents (cognitive 16): EventMigration.legacyChannelEvents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/EventMigration.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb82fb55135e0cf947de9817a4604d778927d93de002350390f5af84298ce51"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingImportProcessor.referencingAgents (cognitive 16): PendingImportProcessor.referencingAgents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"52af93fbace53e3698eda2a7c71958689b98681f63dcf9333ed7f784b319eddd"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityExportService.describe (cognitive 16): ActivityExportService.describe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Insights/ActivityExportService.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70eb787945b8a6def336e97d585aa49517366ec3ff71c875e7ce9f57ebc1482"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeDocumentParser.extraFields (cognitive 16): KnowledgeDocumentParser.extraFields has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeDocumentParser.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8109055040afc019b448515cffc5ef8ca1c5a2b48da80f73b098e078719749"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPProviderProbeService.mapFailure (cognitive 16): MCPProviderProbeService.mapFailure has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 6, match/switch 2 (4 pts) (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df40adaf9501e4b7c4c8629012edf9c3a3af72ce1e03a727c2077911617f384"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenizerBridge.deepseekV4String (cognitive 16): TokenizerBridge.deepseekV4String has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"f697af0ec60f95ed0e2399aec7b57eedca99f68108a02df2170db5a6b53675fc"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryCenter.liveSnapshot (cognitive 16): DiscoveryCenter.liveSnapshot has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 3 (6 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"693818f332f1459407f1f24fcd90e4501a19844e780c3fc571d0330f400a40de"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginHostContext.prepareInference (cognitive 16): PluginHostContext.prepareInference has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e0575ef72fae3582a93f4fae466627885431349a746b45bd04826f54d89c2b"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginHostContext.ssrfBlockedIPv4 (cognitive 16): PluginHostContext.ssrfBlockedIPv4 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":3071}}}],"partialFingerprints":{"codehealthFindingId/v1":"723d87ef8ecb9f2497fd0f7484e0a181c13cc6cedb65e222afaba89b5dcda699"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedAgentIdentity.make (cognitive 16): SharedAgentIdentity.make has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 5, ternaries 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/SharedAgentIdentity.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fcd65cf041d9b15171252b35bfba755b3c9da71a867acd32e1096762d471f9"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceAuditLog.verify (cognitive 16): WorkspaceAuditLog.verify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b56dc2fc9ab23264b4a5030add1cc9bac10c571d1f68d1ada963d9338c7f05a"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSyncService.receive (cognitive 16): WorkspaceSyncService.receive has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (7 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceSyncService.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bcb6f2d002d80104cece8edce0856368f767cb6eec7900d73b4c3008ef7480"}},{"ruleId":"D2","level":"warning","message":{"text":"BraveScrapeBackend.parseHTML (cognitive 16): BraveScrapeBackend.parseHTML has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1155f8fa6745ddccf15f937e511f4821b6f9c5ea25424130568657321f0a285e"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchHTML.decodeHTMLEntities (cognitive 16): SearchHTML.decodeHTMLEntities has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8cb15c1d37776184f7438c886cba2b640cbdf783fd0b22bcc49d5c317f78fc"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchHTML.blockedIPv6Reason (cognitive 16): SearchHTML.blockedIPv6Reason has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca8bab848af8c3fae9fe8e645189e8bbfcdc3e237149f361d2a230c5f27ed98"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchHTML.blockedIPv4Reason (cognitive 16): SearchHTML.blockedIPv4Reason has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6c100ea96dc4fd30b4af18c4ea55130c861b7fe636d2d19ded776595e096d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudePluginInstaller.inferCron (cognitive 16): ClaudePluginInstaller.inferCron has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ea28e03144b826e49b2113d890d0e860d9990e87b82e11f3b17428a453fa32"}},{"ruleId":"D2","level":"warning","message":{"text":"SlackSocketModeTransportRuntime.runStep (cognitive 16): SlackSocketModeTransportRuntime.runStep has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 4, boolean chains 2, loops 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":"Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30503d0bdf61175fc1567d45172dab2893f4ba3a74bc529e2c5f956f9b55dc2"}},{"ruleId":"D2","level":"warning","message":{"text":"SpaceLauncher.prepare (cognitive 16): SpaceLauncher.prepare has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Spaces/SpaceLauncher.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7c6afc77003c7087c1cd100f1733543e3411750af1e7bb220f14254248e44c"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncInboundApplier.flush (cognitive 16): SyncInboundApplier.flush has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 5 (7 pts) (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncInboundApplier.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0b490ad26c3d5c43a0660ef897df3248e8150ed0215e3b37e8c22b6dc8e054"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncInboundApplier.applyStaleSessions (cognitive 16): SyncInboundApplier.applyStaleSessions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (6 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":"Packages/OsaurusCore/Services/Sync/SyncInboundApplier.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1549a3e53ca148e92ea8fa41247c332b4b5e240be4ac2fceb5a64e573dd3f8"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncTurnStreamer.tick (cognitive 16): SyncTurnStreamer.tick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncTurnStreamer.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7422b9f2a67a35633578061f81c6a5e13d5f1fc9849043b9ec789a8765b935d"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolIndexService.syncFromRegistry (cognitive 16): ToolIndexService.syncFromRegistry has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 5 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Tool/ToolIndexService.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"353744c3355be53300fd7d13f481e2efd4ad8a9af3dc7b0c215932f07bffc7f5"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolSearchService.searchHybridWithDiagnostic (cognitive 16): ToolSearchService.searchHybridWithDiagnostic has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, error handling 1, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Tool/ToolSearchService.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c020829c5711b4ea0a11d55070db82961ae8bead125c182097c7b495cc5cc935"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogCoordinator.normalize (cognitive 16): DialogCoordinator.normalize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/DialogCoordinator.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea78204407dd0d37bba30f68a1ce0e5e0f5708bc26325b2134664df8d1b417ec"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaNodeExecutor.validate (cognitive 16): MediaNodeExecutor.validate has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 2 (6 pts), boolean chains 4, if/else 1 (3 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be8424e87be481cb2ede862be2b2997ae03a802d62271a467523b44df778131"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowArtifactCollector.share (cognitive 16): WorkflowArtifactCollector.share has cognitive complexity 16 (threshold 15). Drivers by points: error handling 2 (4 pts), if/else 4, ternaries 2 (4 pts), boolean chains 2, match/switch 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":"Packages/OsaurusCore/Services/Workflow/WorkflowArtifacts.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c56412ae60adf2036ac9b2afc01b96b201ba294f8b61b61e6f25f13af721e29"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowConnectionResolver.resolve (cognitive 16): WorkflowConnectionResolver.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowConnections.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"496dfbffa93ad0d4c55637ecfa749916b7d8780e04dd1f4ed2b39640d6479ee6"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRunner.schedule (cognitive 16): WorkflowRunner.schedule has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"444206159adfd52467864f93c4f41687c249d0d8cce0f2d4e2008a676a1a1b6d"}},{"ruleId":"D2","level":"warning","message":{"text":"HiddenAgentHandoffKind.run (cognitive 16): HiddenAgentHandoffKind.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (3 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Handoff/HiddenAgentHandoffRunner.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ce6ad1332ff5a0da982c4bc21bd375d1544eedbb2ce34d1ecf594874c89ad7"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowDiscoverTool.models (cognitive 16): WorkflowDiscoverTool.models has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1, ternaries 1 (nesting depth added 4). Of this number, 15 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":"Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"93de5f6ab069749403e926b174fd8943508e480eafa99d1bfa6eeb0b3d54693c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentGenerationSettingsEditor.body (cognitive 16): AgentGenerationSettingsEditor.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 5, error handling 1 (2 pts), ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentGenerationSettingsEditor.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8aa392f92e4e1e2ece53515d444c87f2aa3dd3bd9b8572cd65bb5855f52d8a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentsView.body (cognitive 16): AgentsView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, ternaries 1 (2 pts) (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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c027f6dd5cf7e89e87735e48c97b4ceb77302850899c50940fe073e15485f2d8"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceAgentSidebarRow.body (cognitive 16): WorkspaceAgentSidebarRow.body has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 5 (7 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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c73dd9e4f468cfe30d23438ecbd265919e62eb0a19de1e46adeffaa5db7655"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.modelVisibleAssistantMessage (cognitive 16): ChatSession.modelVisibleAssistantMessage has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 4, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":2822}}}],"partialFingerprints":{"codehealthFindingId/v1":"71528740a0392cf4308c7162712302961e59001204b3dda5a4c850cabb2e2c24"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSession.streamMockToolTimeline (cognitive 16): ChatSession.streamMockToolTimeline has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":6788}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f679062de9afa77c622d37f22db83981e0699b0c80e25e44ab2eacf8fe6d236"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownView.rectOfSearchOccurrence (cognitive 16): NativeMarkdownView.rectOfSearchOccurrence has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb5afb6dc6d66d0edc8636a9729625fb3c9fa9a3752b3f44387b31e322bb66c"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMessageCellView.measureFittedRowHeight (cognitive 16): NativeMessageCellView.measureFittedRowHeight has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcac06a7eb8ff912f2babda8c8ff93e5cd58e95aca1c8835dd01a77a3e87a73a"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectableTextView.updateNSView (cognitive 16): SelectableTextView.updateNSView has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (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":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a493a2cea4595043722cd89e0a09a83b3945aa47660aea8eebfdd423822c22"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingMarkdownBalancer.trailingProseStart (cognitive 16): StreamingMarkdownBalancer.trailingProseStart has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/StreamingMarkdownBalancer.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f71ab9e368d2f13e09349129e2dd90e04dba5cb1d5cc142f32dcb0d8d6736e9"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolDisplayName.friendly (cognitive 16): ToolDisplayName.friendly has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ToolDisplayName.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f0a9ea41e84f0da3941e096f0d5190d9f1e2633eef75b6131569a5bda8f40b"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolDisplayName.configLabel (cognitive 16): ToolDisplayName.configLabel has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 1, match/switch 1 (nesting depth added 7). 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":"Packages/OsaurusCore/Views/Chat/ToolDisplayName.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"814b635d8584bca6313a0abfde3c1006ed49e1c85d55abfb9140c7a11695bfde"}},{"ruleId":"D2","level":"warning","message":{"text":"KeysView.keyRow (cognitive 16): KeysView.keyRow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, ternaries 4 (6 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Credentials/KeysView.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b1da91f606b4da4d2edcb6900baabf3e05218fc9be9238686694a68748fd5d"}},{"ruleId":"D2","level":"warning","message":{"text":"AppKeyEditorSheet.body (cognitive 16): AppKeyEditorSheet.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Credentials/KeysView.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"4519527e6c853aeffb0aa24ba98ee00b469e832a8e778c3e3e980c973cf3d1c8"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsEmptyState.hero (cognitive 16): SettingsEmptyState.hero has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 6, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/DesignSystem/SettingsEmptyState.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaeb29e2180727b598c5a3e15f75127d6e2622b9d760509a9f840e34900ef3b2"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryConsoleInspectSheet.metadataGrid (cognitive 16): MemoryConsoleInspectSheet.metadataGrid has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25161dec9626c12ad0f278e24ed377b5b9361256de32bf9e75d7dff7eead725"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPPreviewView.body (cognitive 16): MCPPreviewView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (7 pts), boolean chains 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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a77adf3d48b577401a31c5275c4ea422646486f35c4653d3e7c20df8adf6fa"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessRuntimeEditorSheet.parseEnvironment (cognitive 16): HarnessRuntimeEditorSheet.parseEnvironment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/AgentRuntimesView.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"614e0c932d2fe0518c05476b79b45545c2c451716cbc9fd996592bbe2c67f416"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandLineToolSection.resolveCLIExecutableURL (cognitive 16): CommandLineToolSection.resolveCLIExecutableURL has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/CommandLineToolSection.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c293d0541ff8ddb21546b9b1e564da8d284d8e7bf10d5b65fdef1a202a3f01"}},{"ruleId":"D2","level":"warning","message":{"text":"N8nSettingsView.locationConsequences (cognitive 16): N8nSettingsView.locationConsequences has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 2 (3 pts), match/switch 1 (nesting depth added 7). 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":"Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"717c5888381eab0e5f358663b7e0f57fd7461f953ee21c1ab6394c3ff9bdbe0d"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageSettingsView.convergenceSummary (cognitive 16): StorageSettingsView.convergenceSummary has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 4 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"86eb04a60fd53efc89eeee28557e8be5edc39d52c6f11afe582249a9cf525317"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareWorkflowSheet.retryListing (cognitive 16): ShareWorkflowSheet.retryListing has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (4 pts), boolean chains 1, 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":"Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d63b05d401800f2db3f18b366d0d6c7bd6f4ea31c494f2ebc7b938eedd1df2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowFormFields.fields (cognitive 16): WorkflowFormFields.fields has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, ternaries 1 (2 pts) (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":"Packages/OsaurusCore/Views/Workflow/WorkflowFormView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"076d141f90c6080fa9090a699b6db2fb2c60ab2c444d1d83bdd1d88aafffa9f6"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowSavePromptOverlay.body (cognitive 16): WorkflowSavePromptOverlay.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Views/Workflow/WorkflowSavePrompt.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6838ee4633957e32467e3ea59132f34ea0deefbc296fb73e80a41aaf796c5e65"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceAuditCard.body (cognitive 16): WorkspaceAuditCard.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"370c9f03310d52b141c20ee9f7e5a2dba2cc2acc93eb92e3e966e2c91a83abf7"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinWorkspaceSheet.body (cognitive 16): JoinWorkspaceSheet.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"532187d111b7db53748a195ab3018cff7d8d0af0e481113ed35588bb01df733f"}},{"ruleId":"D2","level":"warning","message":{"text":"DOCXEditor.markdownParagraph (cognitive 16): DOCXEditor.markdownParagraph has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 6). Of this number, 14 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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6804ad7a096ac9e870c3210a66006b49b193ec0651689d17150de024513bfbf"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailMIME.quotedPrintable (cognitive 16): EmailMIME.quotedPrintable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 4). Of this number, 14 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":"Packages/OsaurusCore/Services/Event/Email/EmailMIME.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"960b3712f52a68199fd226a6a2146da466025e685f5127f11266b4a5722ee44d"}},{"ruleId":"D2","level":"warning","message":{"text":"IMAPClient.fetch (cognitive 16): IMAPClient.fetch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a182f14e67d964589a17327fbd9928d7e8953a0d86225f94d588f0c9b8d76c70"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleScriptCatalogSource.item (cognitive 16): AppleScriptCatalogSource.item has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (6 pts), match/switch 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":"Packages/OsaurusCore/Views/Model/Catalog/AppleScriptCatalogSource.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6027f1e66e7c2f85679b056af95ea3c6fb0391c0a68158348a7ff62f73b76224"}},{"ruleId":"D2","level":"warning","message":{"text":"MTPSection.body (cognitive 16): MTPSection.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, loops 2 (3 pts), ternaries 2 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/ServerSettings/MTPSection.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0a46aecfada3b0be0565037360cf57d6e89227540fc2ce2ab2ce7998daabbe"}},{"ruleId":"D2","level":"warning","message":{"text":"DraftStepList.card (cognitive 16): DraftStepList.card has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (10 pts), if/else 5, boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e37b8dfc9dc9808527a4e7af263420e0da0b014efc200228e5bba1593b9ebd0"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowFlowInspector.more (cognitive 16): WorkflowFlowInspector.more has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 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":"Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowInspector.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae328fff98d5fb128219474160fd7c92dcead7b5a12c3d890f52929b0e6b866b"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowReviewStep.body (cognitive 16): WorkflowReviewStep.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb27d2f8f47fbfe740c48bdf86700dd354593176e581145b3ae6560e33d1c2a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.buildHelperHostAPI (cognitive 16): main.swift.buildHelperHostAPI has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PluginHost/main.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7a2d5acf872917ed42583911abdcc15a5fbcd39bc6a053fda86d3f31521460"}},{"ruleId":"D2","level":"warning","message":{"text":"Accessibility.swift.computeFocusDelta (cognitive 16): Accessibility.swift.computeFocusDelta has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (5 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"f771de75cc029804bc3e415b497285ca79b59b87d61d88323b558a4bc94cc2f7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HTTPHandler: ClassTooLong \u2014 13659 significant lines (blank, comment-only and punctuation-only lines excluded), 258 methods. The bar is 400 significant lines; this is 13259 over it, 34.15\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"4258f78af7b9a60d820ce36ffe6e8465732b9010b8934b865d7993f32d137e65"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Networking/HTTPHandler.swift: FileTooLong \u2014 13793 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: HTTPHandler (222-19166). The bar is 500 significant lines; this is 13293 over it, 27.59\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cdd58048340df16c3fdb6ab3d05a822f5692f6ee62ed9bf7ee1ea311590dc4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ChatView.swift: FileTooLong \u2014 7321 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: ChatSession (158-10371). The bar is 500 significant lines; this is 6821 over it, 14.64\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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"711395e16fd969c79bba99fcfc4727900adf0be414e40114e272daa87eb1c3f1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatSession: ClassTooLong \u2014 5287 significant lines (blank, comment-only and punctuation-only lines excluded), 221 methods. The bar is 400 significant lines; this is 4887 over it, 13.22\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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f762457e9e6b176ff7b6f5a7f39b51936a030a845ca6d0bac6683f3a32e4f19"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSession.dispatchSend: MethodTooLong \u2014 dispatchSend runs 1321 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1221 over it, 13.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7577}}}],"partialFingerprints":{"codehealthFindingId/v1":"00448af534111cee8f749ef21486ffdad1170f4aa687c82df4629e13e84d50f4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleAgentRunEndpoint: MethodTooLong \u2014 handleAgentRunEndpoint runs 1131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1031 over it, 11.31\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10496}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4d8a5af3733a03593784015e44d2f67f0f4a62cfb12890e69751f81d392c9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/FloatingInputCard.swift: FileTooLong \u2014 5608 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5108 over it, 11.22\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e53400d3e62fcdf32b420b56a5379f1fcc0a9683614056b0af4ed2f8ab1154e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppleScriptLoop.run: MethodTooLong \u2014 run runs 1030 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 930 over it, 10.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57898659bff5aa4472b404433d7bbbb261016faf6fc4ea0f9827390d4337293"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsSearchIndex: ClassTooLong \u2014 4110 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 3710 over it, 10.28\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":"Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"15994af6f0391ae1dbe9a79c76491274b06e15508cfdc9ce78319c6272714048"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/ModelRuntime.swift: FileTooLong \u2014 5117 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4617 over it, 10.23\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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63fb8938513ddb2023ad128bff41c706052c87b52085da1e0d2fadaef028c55"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Provider/RemoteProviderService.swift: FileTooLong \u2014 4483 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3983 over it, 8.97\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc89ededd018ca2dac7e1f54b666a6786474dbade151d4d28b30c35d8cf8e30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/AgentsView.swift: FileTooLong \u2014 4405 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: AgentDetailView (1251-6773). The bar is 500 significant lines; this is 3905 over it, 8.81\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d085a8ee9fffcea0318e9686167e2e51563fe16ce7d75c0a675d170afaf4f00f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentDetailView: ClassTooLong \u2014 3491 significant lines (blank, comment-only and punctuation-only lines excluded), 99 methods. The bar is 400 significant lines; this is 3091 over it, 8.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f39a860cb82cf60611e355135d889925dc3cbc0481e88a686067d63034b5c4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HTTPHandler: TooManyMethods \u2014 258 methods, declared across 4 files: Networking/HTTPHandler.swift (241), Networking/HTTPProtocolErrors.swift (11), Networking/HTTPLoopHelpers.swift (4), Networking/HTTPRequestParse.swift (2). The bar is 30 methods; this is 228 over it, 8.60\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1c4034aa1cde70dc07fd04d1dae6b6a81d93b0f2c62a56e332d41b68ecb869"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.channelRead: MethodTooLong \u2014 channelRead runs 848 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 748 over it, 8.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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d260c06cc9997ba7838c12851b53d2a83afaec43ffdb1e99dc24965296da44b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Configuration/SettingsSearchIndex.swift: FileTooLong \u2014 4149 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SettingsSearchIndex (84-5157). The bar is 500 significant lines; this is 3649 over it, 8.30\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":"Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdfe09295b10acb83de45635721b58a482c1a7c3a836f1edd868d454af990a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Folder/FolderTools.swift: FileTooLong \u2014 4104 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3604 over it, 8.21\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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bb08464bf9f770654f7ec9ce7daa76ab0d9dd0da61e6affcfc0277e16789c3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatSession: TooManyMethods \u2014 221 methods, declared across 8 files: Chat/ChatView.swift (198), Workflow/WorkflowWorkModeResume.swift (6), Chat/ChatSession\u002BHarness.swift (5), Chat/ChatSessionWarmup.swift (4), \u002B4 more file(s). The bar is 30 methods; this is 191 over it, 7.37\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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"750c3366a20fe85ea884bb10c0214bb58ad63e00d72de88fc727d47e4a4a696b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelRuntime: TooManyMethods \u2014 217 methods. The bar is 30 methods; this is 187 over it, 7.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7804719dae80f5d7c10fde6855cb27c45d17bab0536b196f44abd63be96cdb38"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentToolLoop.runHoldingResidency: MethodTooLong \u2014 runHoldingResidency runs 722 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 622 over it, 7.22\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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"533e9be7ee1d3a8928ed727b11c01357d1bd7842d145d68aa96a4373ce3b8213"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/NativeMessageCellView.swift: FileTooLong \u2014 3058 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2558 over it, 6.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a7acc14f1db50803b1ad35f3e19077b80ad1a4c0ef5029ba2d5e282b4b18ae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SubagentSession.runPreparedHost: MethodTooLong \u2014 runPreparedHost runs 611 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 511 over it, 6.11\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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0bcc2c5e0fb8ed3179ab83dcedc751f20ce894e6e09161acb91f9ac14767d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ChatSessionSidebar.swift: FileTooLong \u2014 3009 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2509 over it, 6.02\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8179f1bc41807bd5102a2b9028a5066efd61ce042a447932cfbf7de4e3d22ede"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteProviderService: TooManyMethods \u2014 170 methods. The bar is 30 methods; this is 140 over it, 5.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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"954208972a59f0c0a53af03faf778ba64fedc7a2dd6edfaee60c050ba8a2328c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemPromptComposer: ClassTooLong \u2014 2228 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 1828 over it, 5.57\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c30ef8137fd8a823c7d482b26b32cd2cbd95811f35e848264ff605544e332f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentLoopEvaluator.runConversation: MethodTooLong \u2014 runConversation runs 508 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 408 over it, 5.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb9ea601e366f647042259ffa25c3d0ba8a45572b88af6293aa16e26d06512c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MemoryDatabase: ClassTooLong \u2014 2022 significant lines (blank, comment-only and punctuation-only lines excluded), 116 methods. The bar is 400 significant lines; this is 1622 over it, 5.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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"07298b7526e757bd005264017ff9f778dc866317b525f879c65e1fe70d1effea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/BuiltinSandboxTools.swift: FileTooLong \u2014 2480 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1980 over it, 4.96\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd31cbf31abb07e63243dc0f2fcca92aaf71b457986c968e3882fdddb34ec1a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EvalCase: ClassTooLong \u2014 1974 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 1574 over it, 4.94\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e434c08cd39577af71070d84be21f3c388f29c4b7633c5371cc6ba8fcb496dea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runAgentLoopCaseWithSettings: MethodTooLong \u2014 runAgentLoopCaseWithSettings runs 473 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 373 over it, 4.73\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea7466494dc17306b5766ee21c7f5c4287bfea1f6f864b24f5de20909a67310"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Plugin/PluginHostAPI.swift: FileTooLong \u2014 2356 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: PluginHostContext (64-2934). The bar is 500 significant lines; this is 1856 over it, 4.71\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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29395ba577c99a08121a83c856909124180d1c57dff152ee4ebb43e38d2983ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigEvents.build: MethodTooLong \u2014 build runs 450 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 350 over it, 4.50\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"435e6a448470cf2d248bdca2cee5b52df8b8747eef0c5e33b2008e52cbf6db24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/SystemPromptComposer.swift: FileTooLong \u2014 2231 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: SystemPromptComposer (19-4213). The bar is 500 significant lines; this is 1731 over it, 4.46\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"411d911e4997e00ffd17b9ab204eeec9d042d235faa1f4ad9e2e67ac9752f042"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConfigApplier: ClassTooLong \u2014 1776 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 1376 over it, 4.44\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"df85167d6607b7cb1cfbced8c173a0fdce54168caae40c18691aea8074b8110a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ToolRegistry: ClassTooLong \u2014 1753 significant lines (blank, comment-only and punctuation-only lines excluded), 99 methods. The bar is 400 significant lines; this is 1353 over it, 4.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"959febb9f046954992bc4e98ba5c1898b3530cc24aad95f28e924e1aae027543"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelRuntime.loadContainer: MethodTooLong \u2014 loadContainer runs 432 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 332 over it, 4.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":4841}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fb696f63eb42cbb4ac39fddef404d167b1d19eea6d15a186ad306dd83cbce1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatView.chatModeContent: MethodTooLong \u2014 chatModeContent runs 431 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 331 over it, 4.31\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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":11698}}}],"partialFingerprints":{"codehealthFindingId/v1":"00787174f5049574efd1025386770df4634767ea648759fcb08bf671430a3c1c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: View: TooManyMethods \u2014 129 methods, declared across 56 files: Theme/ComponentInspection.swift (10), DesignSystem/SettingsButtons.swift (8), InspectionAdapters/InspectorComposerChips.swift (7), InspectionAdapters/InspectorAgentPickerStyle.swift (6), \u002B52 more file(s). The bar is 30 methods; this is 99 over it, 4.30\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":"Packages/OsaurusCore/DevelopmentDesign/CatalogBaseControlPreview.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a4575a265e0c49eae845082c77936b79663d10791d96a3ba82cb0adcda1040"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EvalRunner: ClassTooLong \u2014 1708 significant lines (blank, comment-only and punctuation-only lines excluded), 170 methods. The bar is 400 significant lines; this is 1308 over it, 4.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a39d74fcebd891832d34e0d81382a9c0e133b701366720680448c8e0d7f1048"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConfigPlanner: ClassTooLong \u2014 1643 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 1243 over it, 4.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b045419f7b8fac72417183d8f5648accc97388bdc12ee681b53061f0a5ecae07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Storage/MemoryDatabase.swift: FileTooLong \u2014 2052 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MemoryDatabase (56-3151). The bar is 500 significant lines; this is 1552 over it, 4.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4117d4ea358682258aae60435462b0be35105f8fcce74f143b96118263768947"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handlePluginRoute: MethodTooLong \u2014 handlePluginRoute runs 407 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 307 over it, 4.07\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2959}}}],"partialFingerprints":{"codehealthFindingId/v1":"710e5404b078d063a9c10c76c50820c895d893c174692c347462ab7f75532ff6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleChatCompletions: MethodTooLong \u2014 handleChatCompletions runs 407 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 307 over it, 4.07\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15297}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b021b80be51de0e81056d39a6a215b6888eedac6dd32c97f499e90e23c00040"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatWindowState: ClassTooLong \u2014 1626 significant lines (blank, comment-only and punctuation-only lines excluded), 115 methods. The bar is 400 significant lines; this is 1226 over it, 4.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":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ea2bd4abe47d2580b23817cf36a4d0b86a0c70ca152e272aff2b17fcef7467"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PluginHostContext: ClassTooLong \u2014 1616 significant lines (blank, comment-only and punctuation-only lines excluded), 120 methods. The bar is 400 significant lines; this is 1216 over it, 4.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6aed9d043466c9a976af8860e384d40fef875684467fa6595998a94cf22f809"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppleScriptLoop: ClassTooLong \u2014 1612 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 1212 over it, 4.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a57991ce2325286af6108fda5a656243a6664abce02f471573c2b168f97139"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigPlanner.validate: MethodTooLong \u2014 validate runs 402 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 302 over it, 4.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a582793921246a627dc7f8587faaf3395e70f4ebdda253e1e0b5b8e08b1bdd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PluginHostContext: TooManyMethods \u2014 120 methods, declared across 2 files: Plugin/PluginHostAPI.swift (115), Plugin/PluginHostAPI\u002BSessionPersistence.swift (5). The bar is 30 methods; this is 90 over it, 4.00\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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bba7a03a2dd4c561e64cf4cab1148a75dedf4772f9ef47cb194894108acb2cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalCase.swift: FileTooLong \u2014 1976 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: EvalCase (23-4036). The bar is 500 significant lines; this is 1476 over it, 3.95\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f36c88f86d11d40f1f8a49ffe7d13f26448412969e99cff370ff65274331860"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemPromptComposer.appendGatedSections: MethodTooLong \u2014 appendGatedSections runs 392 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 292 over it, 3.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4d9f092b2ca7e0a564d4c564e41bfa43533303fa4c92d0fbaf99719a9b3f8b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryDatabase: TooManyMethods \u2014 116 methods. The bar is 30 methods; this is 86 over it, 3.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e0d24b5b9caa3ab5412144419c5b7619505b5fc1e66aa95adb7b2b4ac746b1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BackgroundTaskManager: TooManyMethods \u2014 115 methods. The bar is 30 methods; this is 85 over it, 3.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":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4b0c7025ff02b764de1655929c8035fb27e5a601afdd7d9085bf4e7cc9523d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatWindowState: TooManyMethods \u2014 115 methods. The bar is 30 methods; this is 85 over it, 3.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":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71fb2e7d26c6fd99c8a0bece50393efca781c3f35c26ef89da444b5b016cc1f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatView: ClassTooLong \u2014 1531 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 1131 over it, 3.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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":10400}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f02137f33351021b0ad0f3db68b17ab830cc502c0608bfea2151a01149b50bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/ToolRegistry.swift: FileTooLong \u2014 1904 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ToolRegistry (179-3681). The bar is 500 significant lines; this is 1404 over it, 3.81\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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ea3e3abf6a14ea6f4abb41610670a2578da5b39ccae15d5d549286f4e9ae82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runCacheProofCase: MethodTooLong \u2014 runCacheProofCase runs 380 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 280 over it, 3.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3be65ab8e459da669220fef899745782bb9cab10373e612c0615a5dd177289"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentDatabase: ClassTooLong \u2014 1519 significant lines (blank, comment-only and punctuation-only lines excluded), 74 methods. The bar is 400 significant lines; this is 1119 over it, 3.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa0893dd00cddd2433145b640a7a35ca2cfe01358c62a98ca501a2415652bd5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MLXBatchAdapter: ClassTooLong \u2014 1497 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 1097 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":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fc50b12812c9623be693fb27f699ff2e234ba0ec00edc9702a168bcfff21b1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentChannelConnectionService: ClassTooLong \u2014 1496 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 1096 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"833f40508b140fb62fc1ac445ad7f6ccd404a12e83f17c264bb5c4923be01378"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/ProvidersView.swift: FileTooLong \u2014 1846 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: ProviderEditSheet (1048-2774). The bar is 500 significant lines; this is 1346 over it, 3.69\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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f061ccedb37a6bafe71e9aba1a92ae71ac50d19ed18b8c41d26e7d59916609f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Declarative/ConfigApplier.swift: FileTooLong \u2014 1799 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ConfigApplier (68-2597). The bar is 500 significant lines; this is 1299 over it, 3.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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65763cf1b3d02a4d84247553a3198903bc40b760f0f1991d6afe7dc4bd47f1aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalRunner.swift: FileTooLong \u2014 1773 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: EvalRunner (19-2784). The bar is 500 significant lines; this is 1273 over it, 3.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d245945729722728da6ac5de6afe1ba47bd83ba545d46a03565d9d778d71ea7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/AgentToolLoop.swift: FileTooLong \u2014 1770 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: AgentToolLoop (1133-3613). The bar is 500 significant lines; this is 1270 over it, 3.54\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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6659c70df2a58a422dc2e8a522274ca66966941fc7817da963d0c33b9d77a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ComputerUseLoop: ClassTooLong \u2014 1414 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 1014 over it, 3.54\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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"26037c43568ef4c393071f98c703821775e229447245b0ad4083b28be9680777"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Loop/AppleScriptLoop.swift: FileTooLong \u2014 1742 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AppleScriptLoop (305-2639). The bar is 500 significant lines; this is 1242 over it, 3.48\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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e27f6f0dcdd7f91c570be64979fc8dd31aeb1899512a621b07330242a00dea7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TokenizerBridge.applyChatTemplate: MethodTooLong \u2014 applyChatTemplate runs 348 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 248 over it, 3.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":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d474dfcf22561f06153d1fbf1243893e2928fab26c98321a11f586ade7530f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Declarative/ConfigPlanner.swift: FileTooLong \u2014 1736 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: ConfigPlanner (171-2472). The bar is 500 significant lines; this is 1236 over it, 3.47\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"306ac6fed7c09c9e69823a5f93ac0dfe725ae50d5a5b13b9523b2ac33b9f40ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Storage/AgentChannelMessageStore.swift: FileTooLong \u2014 1735 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: AgentChannelMessageStore (466-2256). The bar is 500 significant lines; this is 1235 over it, 3.47\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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1778383f012267124cbee550fff6aaddb24055e293fa0c6e03e8d363e6da601"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentManager: TooManyMethods \u2014 104 methods, declared across 2 files: Managers/AgentManager.swift (99), Managers/AgentManager\u002BHarness.swift (5). The bar is 30 methods; this is 74 over it, 3.47\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":"Packages/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8618874bdf45297cdf2c8aaff3b9ecf0531e1aa175a329e238be2331ee1e28a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Plugin/PluginsView.swift: FileTooLong \u2014 1716 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1216 over it, 3.43\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"420a8aa9e98bd70442ff397e2ef984d9922a433dab0d49ae7a8642101d093662"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudePluginInstaller.install: MethodTooLong \u2014 install runs 343 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 243 over it, 3.43\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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e2ea11703a4e531c6189fac0d2b65ed34b0e28d4a064906a13f64b6c539108"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentChannelMessageStore: ClassTooLong \u2014 1369 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 400 significant lines; this is 969 over it, 3.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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cacf8c82142a0e7f74860e2e676edb1450987fa862b43014b3b254b72b146b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ChatWindowState.swift: FileTooLong \u2014 1700 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ChatWindowState (189-3295). The bar is 500 significant lines; this is 1200 over it, 3.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":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3e8752d75ae050c91877c5dc117a06a8caa32143ea6445c378028120d55d85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Storage/AgentDatabase.swift: FileTooLong \u2014 1697 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: AgentDatabase (289-2661). The bar is 500 significant lines; this is 1197 over it, 3.39\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5728ff397c1d112a47e22fceb11859fbefec2839942e743553080ed537f5f6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BackgroundTaskManager: ClassTooLong \u2014 1343 significant lines (blank, comment-only and punctuation-only lines excluded), 115 methods. The bar is 400 significant lines; this is 943 over it, 3.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a200e0ee4854baba0feafced666f32e6cb4699ee60edc930f2f58c14f8d0b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/NativeToolCallGroupView.swift: FileTooLong \u2014 1666 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: NativeToolCallRowView (856-2756). The bar is 500 significant lines; this is 1166 over it, 3.33\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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9cbcfc0f62faf17f7faae2bae80b927f429f711383a8f6e3957b26246e414a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Skill.builtInSkills: MethodTooLong \u2014 builtInSkills runs 333 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 233 over it, 3.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":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc26a80e7250ec80414029b9e80ba15cc57959e4e4cae767dc421c7fffb57a55"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentToolLoop: ClassTooLong \u2014 1327 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 927 over it, 3.32\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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2239685e52fcbe01bf6143c67eecfbf3aef97a41c87d45b41b47895c74bee20a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ToolRegistry: TooManyMethods \u2014 99 methods. The bar is 30 methods; this is 69 over it, 3.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4083f6b2d2cb3b1dd864dee60b6f80cb2d70ac25c28def03eea27a779cb400b9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentDetailView: TooManyMethods \u2014 99 methods. The bar is 30 methods; this is 69 over it, 3.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"534033c3e7aa9a0ba277deb659ba66bf7527e92d982fcc8e1ed9fbb98d405b61"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSession.processStreamDeltas: MethodTooLong \u2014 processStreamDeltas runs 328 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 228 over it, 3.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":6167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8a1e1b6daacde3b4b40d21693e0e5010a399130980f50233ccfe31370785c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Insights/InsightsDetailPane.swift: FileTooLong \u2014 1568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1068 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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de43907afcdeec90bda1483cac33a803243177768bcae6491d719bbd1c5b7f0f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileChangeJournal: TooManyMethods \u2014 94 methods, declared across 3 files: FileHistory/FileChangeJournal.swift (61), FileHistory/FileChangeJournal\u002BRevert.swift (32), FileHistory/FileDiffEngine.swift (1). The bar is 30 methods; this is 64 over it, 3.13\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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8da47650590acd08c7d9c9b88b73a65308a96c2d184a8da6b563fb9955d541"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FloatingInputCard: TooManyMethods \u2014 94 methods. The bar is 30 methods; this is 64 over it, 3.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b47f4490861354ea8351a7163cf9659bd393efe362af92cece29383ea9e9fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusCore/AppDelegate.swift: FileTooLong \u2014 1558 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: AppDelegate (23-2358). The bar is 500 significant lines; this is 1058 over it, 3.12\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":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e030ffceeb6dbe61646f643d1eaa2190e879785823b00cf2f745b537eda58e83"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentChannel/AgentChannelCustomJSONRunner.swift: FileTooLong \u2014 1554 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: AgentChannelCustomJSONRunner (225-1409). The bar is 500 significant lines; this is 1054 over it, 3.11\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f75e628303381231f2458068998388fe6afe86cc768fba97e8f8f5feeef6ef"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsKitGallery: ClassTooLong \u2014 1232 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 832 over it, 3.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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6104107a307b798b5dc998c1bbddadeff69867459694bc820ab4a356e207fbd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChannelEvalHarness.runProactivePublish: MethodTooLong \u2014 runProactivePublish runs 308 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 208 over it, 3.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3c2fe8e274ac1e85e1c18c88efa6610f95dcb656f82006a0068e3d1844f102"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/RemoteProviderEditSheet.swift: FileTooLong \u2014 1533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1033 over it, 3.07\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8123c21a99b443f0056ad0bcb75858f48a8e7818036a5437ee5c395b632dfa06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Loop/ComputerUseLoop.swift: FileTooLong \u2014 1525 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ComputerUseLoop (175-2249). The bar is 500 significant lines; this is 1025 over it, 3.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"297d5c5884cb2370925850501a85f61bd912968119cb64caf1cee2f841bf249c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: N8nSettingsView: ClassTooLong \u2014 1216 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 816 over it, 3.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b33c584137ddd3c111abc4714c21a9cb35597c1107e206eaa4edb8c078a11e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentChannel/AgentChannelConnectionService.swift: FileTooLong \u2014 1518 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AgentChannelConnectionService (36-1932). The bar is 500 significant lines; this is 1018 over it, 3.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f5c51275a3047e2c0a19d511ddc40ed62fff8a26959707c52945c5aa08277a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ModelRuntime/MLXBatchAdapter.swift: FileTooLong \u2014 1505 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MLXBatchAdapter (33-2654). The bar is 500 significant lines; this is 1005 over it, 3.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"138488541aedeccf783d7f458b7e191763658f62c1f950cc62b37bfe19305ca2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemPromptComposer.resolveTools: MethodTooLong \u2014 resolveTools runs 299 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 199 over it, 2.99\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":2766}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e0885100aadb88110df2a738b75f6ce87cc380feb3a1b350b74e524464f8a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeToolCallRowView: ClassTooLong \u2014 1193 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 793 over it, 2.98\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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55dedddd1dcbbba669347bbc23f3c2f2621b2990c18d2e3afd82b4360b9211c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 88 methods. The bar is 30 methods; this is 58 over it, 2.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf3bd356f5e8177c04d2a5276cb65021dbec837b8071a033d7025277d97dfd0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatSessionSidebar: ClassTooLong \u2014 1172 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 400 significant lines; this is 772 over it, 2.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29a6f860cff9c2609f3077d71c2d3647d16ae6768b54cf63570d4974defa674"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatEngine.completeChat: MethodTooLong \u2014 completeChat runs 293 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 193 over it, 2.93\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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"095be1655d30843dee4ce6d6e40df1d555a79460fc5ce116532297ddf5b5ae4d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OsaurusRouterAPIClient: TooManyMethods \u2014 87 methods. The bar is 30 methods; this is 57 over it, 2.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"085717c1427918050e9e518bf8334c12685e344a51a3a05b4e64852893d2e9b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ChatEngine.swift: FileTooLong \u2014 1448 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 948 over it, 2.90\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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5301974c807731d8cca77229da4e451480ff8e4cbfa3a61c417117c6259343e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteProviderManager: TooManyMethods \u2014 86 methods. The bar is 30 methods; this is 56 over it, 2.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd200d7cf835235b5caa8a2b8cb0e65eba60f42f425eb269d26dc9c50140b386"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PluginHostContext.completeStream: MethodTooLong \u2014 completeStream runs 284 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 184 over it, 2.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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"439c3cd75ea5a8ffd39a3768a252f84907282902df161435fc65aa3268755679"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteProviderService._streamRemote: MethodTooLong \u2014 _streamRemote runs 284 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 184 over it, 2.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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"910cbe21e01234b1e2f0e8c9b3bb5b827a1c48416579c96a1b262c2aaf6762a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/BackgroundTaskManager.swift: FileTooLong \u2014 1413 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: BackgroundTaskManager (116-2654). The bar is 500 significant lines; this is 913 over it, 2.83\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f15944bb53e2820de2e4fbf8c901792c29d158a02ab27f14b5e6439f5073d2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MCPProviderManager: ClassTooLong \u2014 1130 significant lines (blank, comment-only and punctuation-only lines excluded), 73 methods. The bar is 400 significant lines; this is 730 over it, 2.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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d978cec23b6ee4580a33c64b9fb63cc754b915b48b530a2b1219e07720e65e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.applicationDidFinishLaunching: MethodTooLong \u2014 applicationDidFinishLaunching runs 281 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 181 over it, 2.81\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":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"442a7808ef5fbadf03a1e2d349ee196347d685fbb417e8825a27e73093fdb3f8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SlackConnectionService: ClassTooLong \u2014 1117 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 400 significant lines; this is 717 over it, 2.79\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb35ce989c12f216b29f71dfff504a4636d94f3172936a3d23561bc8833a8b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflow/WorkflowDefinition.swift: FileTooLong \u2014 1394 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 894 over it, 2.79\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":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae3c09bc0d82fbcb25595b518931adb78609d658a9e2b3343792bc9da276865"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemPromptTemplates: ClassTooLong \u2014 1113 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 713 over it, 2.78\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":"Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7643d1d498db5bc7cf06181225896581f27bc56ce08e7e4158ddbc760e02afa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteProviderManager: ClassTooLong \u2014 1111 significant lines (blank, comment-only and punctuation-only lines excluded), 86 methods. The bar is 400 significant lines; this is 711 over it, 2.78\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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f602441bba9b7874fd1f797676029aa982c21613cd1ec0fb2b392be4671344"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContentBlock.generateBlocks: MethodTooLong \u2014 generateBlocks runs 276 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 176 over it, 2.76\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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"a989f14c196033ec31c0871aa1946bf105fe4cad48a171a6d0dbc50a8fe98f4b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelDownloadService: ClassTooLong \u2014 1103 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 703 over it, 2.76\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bad565d4a95b54f5afa2e25af7b75b91364c5e4e698366eb47c3c6466eef60"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProviderEditSheet: ClassTooLong \u2014 1100 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 700 over it, 2.75\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9125be4322a8bf60d45649a153eda8ab7d8e02120dd04e542c18bbe48630cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Slack/SlackConnectionService.swift: FileTooLong \u2014 1375 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: SlackConnectionService (328-1855). The bar is 500 significant lines; this is 875 over it, 2.75\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":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7918240ca8dcb7144753e56c1287e425b1fa5c1408f496a6647d458a9c6c7694"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleCompletions: MethodTooLong \u2014 handleCompletions runs 275 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 175 over it, 2.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14835}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a98db525b481206b6244c2666cf2c24471beba93a49b15ffa45243cd0223ed9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleMCPCallTool: MethodTooLong \u2014 handleMCPCallTool runs 274 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 174 over it, 2.74\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17425}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e4563947d9ddc738ea26b2a353ffa6c181d5a57566b7699bfaeaeb5b100b15"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelDownloadService.runOrchestration: MethodTooLong \u2014 runOrchestration runs 274 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 174 over it, 2.74\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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"8007b712efb782100b9b1a44f76ca0c0c4bd0de9705991ae0d0a51ae235f2b48"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EventManager: TooManyMethods \u2014 82 methods, declared across 2 files: Event/EventManager.swift (69), Event/ChannelMessageEventSource.swift (13). The bar is 30 methods; this is 52 over it, 2.73\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":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c50cd02b7f21414a71b3cf2086104a4b31a5a8828cfd48cb20eb75b3817510b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handlePairInviteEndpoint: MethodTooLong \u2014 handlePairInviteEndpoint runs 273 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9509}}}],"partialFingerprints":{"codehealthFindingId/v1":"684e999b1d091f646fb70365ea141c4a2d7349c52ebc0e1faea799f31fe6dfcf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/AgentChannelDestinationViews.swift: FileTooLong \u2014 1361 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 861 over it, 2.72\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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"032ddfeb2fd6f904ffab06eeac65343d272c2a74c86ce5ffb4adcd04fb7935bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Model/ModelManager.swift: FileTooLong \u2014 1358 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 858 over it, 2.72\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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf41bef18a34cf323c13a3f6f31fc991c867270f3cf26593602d1af70e6ef63"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/ModelDownloadService.swift: FileTooLong \u2014 1351 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: ModelDownloadService (16-1818). The bar is 500 significant lines; this is 851 over it, 2.70\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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca42a126646db0476d73c5a0ecd2b9fe8fc4818efe8f59c94a6ea3a91d16389"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileReadTool: ClassTooLong \u2014 1080 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 680 over it, 2.70\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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d193f7a1bfcdb566c104cbe62f4c76cb9a21574fce93c345ecc6a12768fe031"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/ToolsCreate.swift: FileTooLong \u2014 1332 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 832 over it, 2.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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c794b3bdc9e075dcc99b44b08f39e3c2c5adc1af0739e879477533392e04fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/ServerView.swift: FileTooLong \u2014 1330 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 830 over it, 2.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":"Packages/OsaurusCore/Views/Settings/ServerView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3875a9fa325ebb0d84134fc749af8e8e7657b20a44cc13f78d27977e597a5708"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppDelegate: ClassTooLong \u2014 1063 significant lines (blank, comment-only and punctuation-only lines excluded), 88 methods. The bar is 400 significant lines; this is 663 over it, 2.66\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":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c69756cf2dae9dbb73b42ac21c837376e17f8e0305f3c46e1a85f80571e8f7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatEngine.wrapStreamWithLogging: MethodTooLong \u2014 wrapStreamWithLogging runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"1008df41629440fb9cc4ead76c27c2f0910cc84f64b6efac9a430879982c6905"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ResponseWriters.swift: FileTooLong \u2014 1311 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 811 over it, 2.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"357195b73933929fe55fa96dd8e850692f7a42c439dfb654c21fbac6dd35ead4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileReadTool.readResolved: MethodTooLong \u2014 readResolved runs 261 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 161 over it, 2.61\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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cc658c65635c2330dede92e34dc691ed9c70b80dee2942876b9bae8ee6ba0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/N8nSettingsView.swift: FileTooLong \u2014 1300 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: N8nSettingsView (23-1793). The bar is 500 significant lines; this is 800 over it, 2.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":"Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e1a0a6c418056d8ea164231e717c5ed62eb7accf136a4195fce2abd35cb210"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Knowledge/KnowledgeView.swift: FileTooLong \u2014 1289 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 789 over it, 2.58\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":"Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0801d86552cbda6ae25d94fe6a3de0df1399bab05edbaa1bc3086757d4a71151"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentChannelEvalHarness: ClassTooLong \u2014 1030 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 630 over it, 2.58\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":"Packages/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c05358c8b49eeabbdd92231db4f6d6d391ec3084e127913f537adedf8e4394"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WhatsAppSettingsView: ClassTooLong \u2014 1028 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 628 over it, 2.57\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":"Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50fdb649e3aba6140ebb61622ff3caf336124a8085e2e094ba0baa5783d51a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkspacesService: ClassTooLong \u2014 1027 significant lines (blank, comment-only and punctuation-only lines excluded), 74 methods. The bar is 400 significant lines; this is 627 over it, 2.57\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":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"05777765907f6411320161faf453532434ccda4720b070d7c39dac415d73c4af"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OsaurusEvalsCLI: TooManyMethods \u2014 77 methods, declared across 8 files: OsaurusEvalsCLI/EvalReviewReportCLI.swift (22), OsaurusEvalsCLI/OsaurusEvalsCLI.swift (15), OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift (12), OsaurusEvalsCLI/EvalDiffMatrixCLI.swift (10), \u002B4 more file(s). The bar is 30 methods; this is 47 over it, 2.57\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2001c05f57eb75abe7ee065ab0bcd2631574d21f8d27e3dfe91e54e576a3e6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Telegram/TelegramConnectionService.swift: FileTooLong \u2014 1280 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: TelegramConnectionService (391-1471). The bar is 500 significant lines; this is 780 over it, 2.56\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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e7dd73c19fc58d3db2b3987af6cea8a818cba3ee75a748eac7a869c1afca9f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextSubagentKind: ClassTooLong \u2014 1021 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 621 over it, 2.55\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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5925f72043843d16146a9f615de4f4016fb8b575802b3eb8545c9b29fd1857"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigApplier.applyMCPServers: MethodTooLong \u2014 applyMCPServers runs 255 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 155 over it, 2.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48cf85390e8bbad9e5fb3724c5e15a9d7da0b146813e70e65a93eb70e2ef137"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChannelEvalHarness.runN8nInboundContract: MethodTooLong \u2014 runN8nInboundContract runs 254 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 154 over it, 2.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06a555e1c2ff0b87713a205b4e407c2f91efe8558cc6bea82a431fab9da4215"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatSessionSidebar: TooManyMethods \u2014 76 methods. The bar is 30 methods; this is 46 over it, 2.53\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37948a9d09dda1ff1d99d244203ae509eb5a52e9a5b2bff6562e03b9acd2c7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DesignSystem/SettingsKitGallery.swift: FileTooLong \u2014 1263 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: SettingsKitGallery (14-1634). The bar is 500 significant lines; this is 763 over it, 2.53\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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a30f546b9b92fc3143717fe61931e9d01bb53d671b6de61541737f224406a6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusInspectTool.describeItem: MethodTooLong \u2014 describeItem runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"164b11f079ab6971b5db0f371bd8b05284aa2765c4289a3fa831a07c35367869"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConfigManifest: ClassTooLong \u2014 1003 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 603 over it, 2.51\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3e4a1402fd0b0680ed877dc9b380e1af996412198ee57f882ccd626b60e827"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalRunnerAgentLoop.swift: FileTooLong \u2014 1251 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 751 over it, 2.50\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01c42553285d893e381b25921a6d99fb3795297500d4f5c16ebc40cabad5207"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/GitHubSkillService.swift: FileTooLong \u2014 1250 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 750 over it, 2.50\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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bea24404296805b1425f05024de47c2e2c970f2f234b1739c92ea7d39712753"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PluginManager: ClassTooLong \u2014 994 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 400 significant lines; this is 594 over it, 2.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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4f512c6f74f5bd3bb9f2edfdc68faa4f3ad05d98c4fc49a2009bee8c6e8cc1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SlackSettingsView: ClassTooLong \u2014 988 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 588 over it, 2.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9f72073afd7d3a68ec648149462c326266a936dfa2e2a8772a9f4aa0bb4b8e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkflowValidator.validateNode: MethodTooLong \u2014 validateNode runs 247 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 147 over it, 2.47\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":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"3967c04331ac1a23e0a8ccc7db83e86d108b5a69fac2d7b61e83bb10d2e6204d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusBundle.load: MethodTooLong \u2014 load runs 247 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 147 over it, 2.47\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":"Packages/OsaurusRepository/OsaurusBundle.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3c3041a6a3141e6070b601a99ee9c587b5fc08ac423f0620d623da1f75a458"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatWindowManager: TooManyMethods \u2014 74 methods. The bar is 30 methods; this is 44 over it, 2.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25bef7db55950aa38608fdbe854044c52a0cea9e59089a308fb6d6c4f8ca246"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkspacesService: TooManyMethods \u2014 74 methods. The bar is 30 methods; this is 44 over it, 2.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"895f2e8ca5bd64978181429755693d5930296387a61ad0a6453f9a9416333d13"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentDatabase: TooManyMethods \u2014 74 methods. The bar is 30 methods; this is 44 over it, 2.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"2148c655ac3c1cd2b8ce4c43c489ab3393fa9a6aaf1f75cd070a6a64b3c56641"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SubagentSession: ClassTooLong \u2014 986 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 586 over it, 2.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"615c16efab64c9ebbb9eedee064b3da87ce839ce70b8621b3641e9b3b44fd6fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Database/DatabaseTools.swift: FileTooLong \u2014 1227 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 727 over it, 2.45\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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa94f80f92fb65480ae04f1dafbb59256dd3cf7fd2379e9a2fde414d02900e40"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleCacheStatsEndpoint: MethodTooLong \u2014 handleCacheStatsEndpoint runs 244 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 144 over it, 2.44\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e3a30be8e7a813f44f50304cc424f8095f14aaacf9ee3e5597c12c8aa3564e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MCPProviderManager: TooManyMethods \u2014 73 methods. The bar is 30 methods; this is 43 over it, 2.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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72447bc536f300faf0756559b42c97e8d695c59550b002430ecde1b4984eeb6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Library/WorkflowSetupWizardView.swift: FileTooLong \u2014 1211 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 711 over it, 2.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fced7ed61e57fb889ea4bafcace69040e472b64ed01fc43280188f0d7cf7aea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SlackConnectionService: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f725840204e19fe2f38a2320f0e6ecf2c71d9630933cd64122d22a2eda9b9cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentChannelMessageStore: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce82a2d46c6aca98df0bb7f0ed4063971f708de25e68bab608554ebb3bf6cd0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleConfigAdminEndpoint: MethodTooLong \u2014 handleConfigAdminEndpoint runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f86773e9196cfcd2f4cea42fbed241eeb96d8d2caab99ddf25016f1034e8df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusTool.agentChannelFailure: MethodTooLong \u2014 agentChannelFailure runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f87e9f65e174fbe4be299813556dc1656f4f930a5a4a2a11a16bf6e8b70c1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/AgentChannelTools.swift: FileTooLong \u2014 1199 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 699 over it, 2.40\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":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ac57d144991da26c5d12fa43bc5adc532d4e9c21618eb0c50ba67ec85ec575"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/MessageTableRepresentable.swift: FileTooLong \u2014 1199 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 699 over it, 2.40\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":"Packages/OsaurusCore/Views/Chat/MessageTableRepresentable.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d2151394651bc8336292d588587db7c5f8849d2df2e3d3bcd597538467d37d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WhatsAppConnectionService: ClassTooLong \u2014 956 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 556 over it, 2.39\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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b7f90f8ef98fdaf802adc97548ea06ba59f2c0f72e3b016198affb76b2279b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Documents/PPTXAdapter.swift: FileTooLong \u2014 1194 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: PPTXAdapter (15-1002). The bar is 500 significant lines; this is 694 over it, 2.39\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1be2f5934381f9db9f9e94566fcab265c9179003f2a9fd3c554d9157faee36a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/ConfigurationTools.swift: FileTooLong \u2014 1194 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 694 over it, 2.39\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":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aead3d48c749e87a1d3f205a6bed64bf8d2540f55178bc7d1cb527c185884d64"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeMarkdownView: ClassTooLong \u2014 950 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 550 over it, 2.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7f309fba13fc4311a84cec859e5bdbe913a2acc87ffcfe2043202d021a291b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IMessageSettingsView: ClassTooLong \u2014 947 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 547 over it, 2.37\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee1cd01d5b457c3bca4187102d7b5ecb9ed038b4291cdbadb0a9a36f0db38f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SystemPromptComposer: TooManyMethods \u2014 71 methods. The bar is 30 methods; this is 41 over it, 2.37\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"24279fb816c71eed5ef62c43e1f27183ea8b63db7230c90c3619d62a7bdbff9f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncConversationStore: TooManyMethods \u2014 71 methods. The bar is 30 methods; this is 41 over it, 2.37\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":"Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e08e7d9ba4e5a0370a9e5f7996d516f4edbf927f655d976f8bb6440c0c0234"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentChannelCustomJSONRunner: ClassTooLong \u2014 934 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 534 over it, 2.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5044f6239267d2dd9ee52d95f4b4847ebd0c49a5ef766388c66035c323d1d02"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatHistoryDatabase: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f292aefeeea4e5d400dfd4fa01734656b2e813cd742851041b24eb2649ca943"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/MCPProviderManager.swift: FileTooLong \u2014 1161 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: MCPProviderManager (20-2043). The bar is 500 significant lines; this is 661 over it, 2.32\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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"352b2f9aac9dd96e702759a8bda5ce441cb585db24279cb818b6f49d52f8714c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API/OpenResponsesAPI.swift: FileTooLong \u2014 1160 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 660 over it, 2.32\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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a11cd1aae0045f1d5ccfa798b6341dc5857d3c3cac02015b700a5523bbd599"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSession.init: MethodTooLong \u2014 init runs 232 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 132 over it, 2.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedb02c43cdd8e9a3ed2eb1eacc7ad4233358b94fa3b6c6195b5e7275cce84a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/RemoteProviderManager.swift: FileTooLong \u2014 1157 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: RemoteProviderManager (47-2072). The bar is 500 significant lines; this is 657 over it, 2.31\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82a1384b3116802119b3ce94fd4c65b472055538ad4c365c2fd771079de7d6c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeDatabase: ClassTooLong \u2014 925 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 525 over it, 2.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e39657534635b8e81d2eabfd1fcb6871aee1227547719b5f1996580ed9b47d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelManager: TooManyMethods \u2014 69 methods, declared across 3 files: Model/ModelManager.swift (63), Model/ModelManifestUpdates.swift (3), Model/ModelUpdatePolling.swift (3). The bar is 30 methods; this is 39 over it, 2.30\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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c97780eef834812da8ce20a649e3e66fef789b1c7a34921c0ce8e0c6211b355"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrivacyFilterPipeline.applyOutbound: MethodTooLong \u2014 applyOutbound runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"067d3b42772b63685feee3c5656938e6993f3df48cea444215e9cf030bb57a34"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolRegistry.execute: MethodTooLong \u2014 execute runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c3ad74f0425227a88975da76979c75b62720b465664646c689fdb560ea4d61"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runComputerUseLoopCase: MethodTooLong \u2014 runComputerUseLoopCase runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd1a387eff5390b41a5a8ca5d0cf896166a304bdba87cd8cd6eb869f371ecd9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workspaces/WorkspaceDetailView.swift: FileTooLong \u2014 1144 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: WorkspaceDetailView (16-1417). The bar is 500 significant lines; this is 644 over it, 2.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17649ae737402434570d05aaa3df657b03e818a1f0930d62f3e8c7677be750b8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkspaceDetailView: ClassTooLong \u2014 910 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 510 over it, 2.28\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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"56acb72abe3ab4e6bf17179ddc019cf398f40d628ab2ab85aa53ed5567216fe4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Architect/ArchitectSidebarPanel.swift: FileTooLong \u2014 1136 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 636 over it, 2.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82889aa586efcb755af2ca76e81cef30182186a4de050c28e51024d88ea84ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ChatEmptyState.swift: FileTooLong \u2014 1130 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 630 over it, 2.26\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":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48500d70c02f4909c287dbf84ccfc08ba029b4c37100a130deff75e93347dcc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Onboarding/OnboardingConfigureAIView.swift: FileTooLong \u2014 1128 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 628 over it, 2.26\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":"Packages/OsaurusCore/Views/Onboarding/OnboardingConfigureAIView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a64a0cee445a159f68bde165092f9a0b50644e420bd1058424ea09870a152d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/AgentManager.swift: FileTooLong \u2014 1126 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: AgentManager (54-1325). The bar is 500 significant lines; this is 626 over it, 2.25\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":"Packages/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdddb2bc11c30fd6c0f3a8ba61293b783cabc78338d5c9e933707efec326f5e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusInspectTool.resolvedListEnvelope: MethodTooLong \u2014 resolvedListEnvelope runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37d3065cc54531de29921381ef94736a351f973c456c6d33f8c9dcfb9766b28"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChannelPublishService.publish: MethodTooLong \u2014 publish runs 223 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 123 over it, 2.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"951230f258e5b2d233ee9d24a2f054588fc1c5b6181308d6d2d60d48b3a9db35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/SystemPromptTemplates.swift: FileTooLong \u2014 1114 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: SystemPromptTemplates (12-2032). The bar is 500 significant lines; this is 614 over it, 2.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea991da466e59828ec90a6408523b78a8bb49620595fb033ce3f0ec447466364"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/SpeechService.swift: FileTooLong \u2014 1111 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 611 over it, 2.22\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":"Packages/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa28047a30688095b2c01cff2d0ea43b65fe31a9a0e6ae0e0573cfd9a37ebeb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ShareWorkflowSheet: ClassTooLong \u2014 888 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 488 over it, 2.22\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":"Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48b289f283327dd4fa83ae19e45ead2d50c6033bd722ae3cea4051874e23139"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CacheProofEvaluator.runConversation: MethodTooLong \u2014 runConversation runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\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":"Packages/OsaurusCore/Services/Context/CacheProofEvaluator.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a9deca146ec948773a185ff16b44fc5f934de662b405605533e44a6777960b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelRowCellView.configure: MethodTooLong \u2014 configure runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\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":"Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c61723885bf312860c57fd0de965907b58e6e8ab1f84cb988f8cf0b0b1aecf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Event/EventFormComponents.swift: FileTooLong \u2014 1103 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 603 over it, 2.21\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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3382009f549713a6f7a8cdc153127f3b8f3619676c684a687d448dcb340efe98"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MarkdownBlockParsing.swift.parseBlocks: FunctionTooLong \u2014 parseBlocks runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/MarkdownBlockParsing.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12c52316bbfe1efa5476c2e95677639dfa97521eae2f4ff7abf8ca87bc0c633"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalMatrixBuilder.build: MethodTooLong \u2014 build runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39e152f05f8cd6cffff22324799be34a65b127aa947e0a4e6cd0295ee926fd0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: WhatsApp/WhatsAppConnectionService.swift: FileTooLong \u2014 1097 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: WhatsAppConnectionService (182-1557). The bar is 500 significant lines; this is 597 over it, 2.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5316e6df773a48a95125efe651de5478871ce32e60a33b1b5c46420ace3d2ee2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleDispatchEndpoint: MethodTooLong \u2014 handleDispatchEndpoint runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12520}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90115c99d22f7985c19b6dbd3ff44d43a0d356085b1c29def131afcdad4c511"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PluginManager: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd266e08caae50a60af009b306a56fd34d8ce91a9b20c6ed34b1ff3f279a85d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Declarative/ConfigEvents.swift: FileTooLong \u2014 1082 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: ConfigEvents (231-1271). The bar is 500 significant lines; this is 582 over it, 2.16\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f16be7e000fb329fa2215435fa27528b6878f1388594bce4356da6f89e0a6c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Skill/ClaudePluginInstaller.swift: FileTooLong \u2014 1082 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: ClaudePluginInstaller (197-1599). The bar is 500 significant lines; this is 582 over it, 2.16\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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15eba97f3d1175a43a7f2398fe19e84136f077bf2bcdf9c8c52637d04342a275"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleMemoryIngest: MethodTooLong \u2014 handleMemoryIngest runs 216 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4703}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b25f0ff2090d9b6a33023bace2c7f34141895b9ffc2acb8cf554ebb2ee62e0a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelDetailView: ClassTooLong \u2014 861 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 461 over it, 2.15\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35d2f74348a5fa8f3b8448534012035ff677a4d624ef4360416a37677d39917"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Mac/Accessibility.swift: FileTooLong \u2014 1059 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 559 over it, 2.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8595fdddefbaa32642456647f8b980847a0d7543b1fb2b3c50433da7a6a89e4d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Subagent/SubagentSession.swift: FileTooLong \u2014 1056 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: SubagentSession (135-1599). The bar is 500 significant lines; this is 556 over it, 2.11\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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb71aa00ea894ef5777cdf752a9a30a54404932fb0261fa971f61142830f07c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OsaurusConfigTool: ClassTooLong \u2014 844 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 444 over it, 2.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a768ef5f303fcaa44be79e2908eb63da02968f5017f854aca0a0e0b732427c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChannelWebhookIngress.handleInbound: MethodTooLong \u2014 handleInbound runs 211 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0eb19bf5669c5e23ba60d195bbd0c47a4a7514c3b7e66adbbc73b2f58c46ff8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ChatWindowManager.swift: FileTooLong \u2014 1054 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: ChatWindowManager (65-1553). The bar is 500 significant lines; this is 554 over it, 2.11\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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3198c927182bcabbb593188431bb7d6debed2268462c8edec13094a7cdc1d89"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Declarative/ConfigManifest.swift: FileTooLong \u2014 1049 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ConfigManifest (113-1332). The bar is 500 significant lines; this is 549 over it, 2.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"152b4f15e05319208555b7fb462b8baa50257189e709dcc3238e64495fd98f4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Model/ModelPickerTableRepresentable.swift: FileTooLong \u2014 1049 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 549 over it, 2.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88814d330d3486c35e383292469f59120d86b0aaed4871c7979fe7439d7a8ce9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserSession: ClassTooLong \u2014 837 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 437 over it, 2.09\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":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"317fa6fa2a44902be9b85fa5519fcbcb92892c4beb907b3081cf835f74f3a59b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContextOptimizerSearch.plan: MethodTooLong \u2014 plan runs 209 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"013d1eaf21b1276b0bd7ee0433df8518b4800d0860f8e41b7bf9bb4a91392687"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Context/AgentChannelEvalHarness.swift: FileTooLong \u2014 1040 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AgentChannelEvalHarness (38-1456). The bar is 500 significant lines; this is 540 over it, 2.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d372aa9d55ed7c960a3bc962a3006aa5608508976f7addac08d03044bf1e8ba"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AddProviderFlow: ClassTooLong \u2014 829 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 429 over it, 2.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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"53feea5bcd3a1174899bf861df72cf19f6e08e4061d093b967919c4e6e3e6657"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserChildTools.all: MethodTooLong \u2014 all runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\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":"Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fee68a39823b64da194196ee501f7ca102e8b2b3f11c5133d046d924cb34ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemPromptComposer.compactWorkspaceSpec: MethodTooLong \u2014 compactWorkspaceSpec runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3453}}}],"partialFingerprints":{"codehealthFindingId/v1":"663df23004f56cab470f0357d38891bf753993bf948bf94536f4f2c5e3849e9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Kinds/TextSubagentKind.swift: FileTooLong \u2014 1034 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: TextSubagentKind (30-1779). The bar is 500 significant lines; this is 534 over it, 2.07\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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8856fe484dc94675f4f0543c6a560d4ef147f5756bab691b5cc8e2684aa33947"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/WhatsAppSettingsView.swift: FileTooLong \u2014 1033 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WhatsAppSettingsView (21-1472). The bar is 500 significant lines; this is 533 over it, 2.07\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":"Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bebe6e0667f20b7e2b8b64c1730385a303c345b8b451a1ded2ff13b08c9b57"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClaudePluginInstaller: ClassTooLong \u2014 826 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 426 over it, 2.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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1df152fd77653bc39306575270e221399d6e1c070f042b2d19ccebc77e680b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Router/WorkspacesService.swift: FileTooLong \u2014 1030 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WorkspacesService (16-1758). The bar is 500 significant lines; this is 530 over it, 2.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspacesService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa0ee6d6c41367c5b53578af14b85bfe7d5d359bc25a23c6c552fddf8d00a98"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeView.body: MethodTooLong \u2014 body runs 206 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 106 over it, 2.06\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":"Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4855139f98759256eaaf86dadb220dfcb8b1031870601151d6d05eafd82a9a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IMessageConnectionService: ClassTooLong \u2014 822 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 422 over it, 2.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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f566ac32668729ddeed9adb1f321f2d8df7bda518a1d6ffa4eeaa9b389abbc71"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TelegramSettingsView: ClassTooLong \u2014 821 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 421 over it, 2.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3764e4d47f4aef230cca4c0f24abcda458a9afc477517905771220afcfd0a01a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolEnvelope.fromError: MethodTooLong \u2014 fromError runs 205 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 105 over it, 2.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ToolEnvelope.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65fe0cd9b3e23e8fb217ed283509dcb0d179b288bb0cccaa669bf77bcad39da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Model/ModelDetailView.swift: FileTooLong \u2014 1024 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: ModelDetailView (13-1418). The bar is 500 significant lines; this is 524 over it, 2.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a36c76b99a8bb973b08cecd6d2c2d206a46dbf612092250e723dea1b51a607"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/Agent.swift: FileTooLong \u2014 1018 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 518 over it, 2.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Agent/Agent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bec875f328ae624207b192baa441ffd01232cf9454548ea10bb8fa5dde4db8f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SystemPermissionService: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1bc4fa5128e1053eea799c93e7cb5a42108d177b7473c771a2baaead5e26a1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RenderChartTool.execute: MethodTooLong \u2014 execute runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/RenderChartTool.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90122beb4550966df4d9020a7c1b29951dc228b8d25eb10bb137363041af1a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/CapabilityTools.swift: FileTooLong \u2014 1010 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 510 over it, 2.02\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":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bb1c2b2cae7c1f30f8f1af03f7abf08315d80b3b40cafc7125507fae5a775d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChannelCustomJSONRunner.execute: MethodTooLong \u2014 execute runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"4338eaf2c23bdbd9acc6bbb03183123702958bf1351e0e922e78c94580ff91b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/NativeMarkdownView.swift: FileTooLong \u2014 1007 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: NativeMarkdownView (29-1645). The bar is 500 significant lines; this is 507 over it, 2.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49af77a59e908873bc625ebb05546e066779cb16171b4a911e03c9ad42abcb87"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkflowEvalHarness: ClassTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 405 over it, 2.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":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4360b0ce251a35201e68fb8b80d9384ba70e0f8893125eb29f26ebf9ddee0ba5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API/OpenAIAPI.swift: FileTooLong \u2014 1004 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 504 over it, 2.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":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"972004a1fa89dad87afa41315c0e137614858771b91056960341346e41dc7d39"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Plugin/PluginManager.swift: FileTooLong \u2014 1001 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PluginManager (16-1985). The bar is 500 significant lines; this is 501 over it, 2.00\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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa43038209c1480c31189e31e4c9d3c3d3f05d3b4e2107a39cda57c98ffe4d62"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeToolCallRowView.configure: MethodTooLong \u2014 configure runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dee57cc74ef0ba2d291ae1201fe567496d6904c2550f453b815295028feeb73"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DatabaseTablesView: ClassTooLong \u2014 796 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 396 over it, 1.99\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"42304d417d1bf9780de9468bb4a46db52020493188755712e4eac78fbd21548f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncConversationStore: ClassTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 395 over it, 1.99\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":"Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd656527ba968cfcd9871a467fe256203559f5fbe2e16a45b116bf9c790109f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SlackSettingsView.swift: FileTooLong \u2014 992 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: SlackSettingsView (14-1418). The bar is 500 significant lines; this is 492 over it, 1.98\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":"Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d1a72d93b81df73ccb624358c5da08973a753b7b33ab6fd2fabe746c0e8e5f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TelegramConnectionService: ClassTooLong \u2014 788 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 388 over it, 1.97\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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd969a4ff52683c707aff2ba81eee2a526ad7cbeb0763c34b4d7655d909233b3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RelayTunnelManager: TooManyMethods \u2014 59 methods. The bar is 30 methods; this is 29 over it, 1.97\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":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b632f316e7dc0951d0049fde488c145b949da347a7c726932c6f2f4ae0f40f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ActivityLogStore: TooManyMethods \u2014 59 methods. The bar is 30 methods; this is 29 over it, 1.97\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":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"239f84704c59920fec64d1cd3acc9d64833c2ce5004e50868c654ebc48470225"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runAppleScriptCase: MethodTooLong \u2014 runAppleScriptCase runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b98328464fa7ef0b6d132b19751da5317ffacc2f6dda9a210e656c1fabe79e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TokenizerBridge: ClassTooLong \u2014 783 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 383 over it, 1.96\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d380a9c47d4c66540e32afdd1576dce58206dc9d7ed908e558b14a929e4d8469"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/FileChangesPanel.swift: FileTooLong \u2014 978 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 478 over it, 1.96\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":"Packages/OsaurusCore/Views/Chat/FileChangesPanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9435b7462aa22ac01200f344822c90e08b6c1db89d82bff78de0379169f28300"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleRuntimeSettingsEndpoint: MethodTooLong \u2014 handleRuntimeSettingsEndpoint runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70fbcdfcb809f2ca1e866f052b2a3538b7b0e26d14f9007ad03ab88e6766ec2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: IMessage/IMessageConnectionService.swift: FileTooLong \u2014 973 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: IMessageConnectionService (177-1379). The bar is 500 significant lines; this is 473 over it, 1.95\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b7a29262f28fb7d41755153edd7a6e832ff7416676bb6c2f646ca754e59583"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentChannelCustomJSONRunner: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"865086b44a2f7792d76530aee3e4616fb800a092ce6eea954b4b75d01fcb8fb3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkflowShareService: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/WorkflowShareService.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb60cc4db103a74e93b2330997fc0b41653b15235ad1ef95638efcbd9e6db2ea"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ActivityLogStore: ClassTooLong \u2014 773 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods. The bar is 400 significant lines; this is 373 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7bfdaeb2c57acb2f3077168eb9a39ad1cd22e7978586d5b6ed8137f9897dfa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentChannel/AgentChannelPublishService.swift: FileTooLong \u2014 966 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 466 over it, 1.93\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b7cfe975ab9ef69d9d0943426beb3998cefa631a816cc722f68ef8900fe89c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConfigEvents: ClassTooLong \u2014 772 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 372 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c77a101c07750e6ff1e241cce444aab859a110f07df17a60b8f553c22e3e38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Context/AgentLoopEvaluator.swift: FileTooLong \u2014 964 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 464 over it, 1.93\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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b03914fb73eac04dd86424c2eaf7a56566fbbed111b4d1eb6406f9b641f0a30"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkflowShareService: ClassTooLong \u2014 768 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 368 over it, 1.92\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":"Packages/OsaurusCore/Services/Template/WorkflowShareService.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15a0f1b2a0a937dc20b604c2c1570c703faf9c4c33a3ef6b89d287fe7d4c01e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Storage/KnowledgeDatabase.swift: FileTooLong \u2014 957 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: KnowledgeDatabase (50-1453). The bar is 500 significant lines; this is 457 over it, 1.91\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fb52060ffa8b3f3c44f70c089719bb219c5b837cdbb384ec3376e338be62e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runDefaultAgentCase: MethodTooLong \u2014 runDefaultAgentCase runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"169a39d7543c01976b39801672ed54a64f8dc66aca1101a0bb5b3f2ab764d1cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentChannelConnectionService: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82afd0123d8dc23ea0909f8e1f282f5459e435a52efd24f04e0a4487e58c173"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/IMessageSettingsView.swift: FileTooLong \u2014 948 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: IMessageSettingsView (18-1368). The bar is 500 significant lines; this is 448 over it, 1.90\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cd2c11dd9d31b420696c6d574fe8f06ac746a447f4300e24e3b78696d0c6a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentDelegationDispatcher.run: MethodTooLong \u2014 run runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.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":"Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8325e6a0417d714f1378d67a92f996e597c4c6b7e0fdea294ff8da41e5fc4bee"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OsaurusEvalsCLI: ClassTooLong \u2014 754 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 400 significant lines; this is 354 over it, 1.89\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ec436daefed66710d3f1316da61dd4d28addcee3998d9ec54c763a01f1f2b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SetupChecker.check: MethodTooLong \u2014 check runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/SetupChecker.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"a960bde82dc33b0d8fdef61c3c1478de8fc59666fde8a96d7bc6b4b0abe679c3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatHistoryDatabase: ClassTooLong \u2014 751 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 400 significant lines; this is 351 over it, 1.88\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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ffcf20cc2e3d475d0b812a65f432aad75226d274213c9f63a6d0a037c4bab9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/NativeBlockViews.swift: FileTooLong \u2014 935 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 435 over it, 1.87\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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc24a6530b0357007bc6938d113121a94f98231f72d29c5ccd3d051151f9553"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runPromptSurfaceCase: MethodTooLong \u2014 runPromptSurfaceCase 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerPromptSurface.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9030a31ec45e9406daf9453b76015d31e552aa51fc197b99da3a076261d1371"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatView: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":10400}}}],"partialFingerprints":{"codehealthFindingId/v1":"231c09b3b2750c9978e6de18afac8f8b79e03c2923d6735034e3767332f1e9b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteChatRequest.toOpenResponsesRequest: MethodTooLong \u2014 toOpenResponsesRequest runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":6050}}}],"partialFingerprints":{"codehealthFindingId/v1":"3152330d97d7c88f9eda5c822ce020c7d261af952b30e48de4c4549dd7b83e58"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflow/ArchitectTools.swift: FileTooLong \u2014 927 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 427 over it, 1.85\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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbaf988dabd63f5f4611ba0e4ea8aba32d9162e15279c0f668b54675dff4ff38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Memory/MemoryService.swift: FileTooLong \u2014 926 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 426 over it, 1.85\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":"Packages/OsaurusCore/Services/Memory/MemoryService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b21e283dfff4cfd2904d5400958e93c13af8d1572159d360507337f91097c09"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatWindowManager: ClassTooLong \u2014 737 significant lines (blank, comment-only and punctuation-only lines excluded), 74 methods. The bar is 400 significant lines; this is 337 over it, 1.84\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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"1698286e8a1af6ec3105a1f401858a88a255418ea67d24491127f352657de34b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RelayTunnelManager: ClassTooLong \u2014 736 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods. The bar is 400 significant lines; this is 336 over it, 1.84\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":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fc53092d84fcc79e8101356d706884d8144e0ff201cde09c0164194d4c96b4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PublishedWorkflowDashboard: ClassTooLong \u2014 736 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 336 over it, 1.84\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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff94432d9d43faff1a19f89d671d4490db9f67677dea3cfd0b3c2075d1bdd77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocalVisionEvidence.read: MethodTooLong \u2014 read 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":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"081c2ce49f3e4edc5e532e2fd1b56bfa4d911c935dc9382185eeb6b99155daba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SlackSocketModeTransportRuntime.runStep: MethodTooLong \u2014 runStep 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":"Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"86814b508af168e86e6f646264b6b52a1d743832cadb7581b0117cff2d599462"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.score: MethodTooLong \u2014 score 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0bd04577aaacce5465b3554270004838809fa29e7e6baff63bf4d8cb63f2eb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EventManager: ClassTooLong \u2014 734 significant lines (blank, comment-only and punctuation-only lines excluded), 82 methods. The bar is 400 significant lines; this is 334 over it, 1.84\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":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6e2d7ace67cf9c63b0b4f22953e9533be079f3f639c379d692a3a3e246da29"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentDelegation/SubagentConfiguration.swift: FileTooLong \u2014 917 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 417 over it, 1.83\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":"Packages/OsaurusCore/Models/AgentDelegation/SubagentConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ff2f735e2b10608dfb93a8bc6debd24841af45f72bbedf2c990aa2508e66c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Declarative/OsaurusConfigTool.swift: FileTooLong \u2014 916 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: OsaurusConfigTool (36-1200). The bar is 500 significant lines; this is 416 over it, 1.83\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d108ffba55803655ff1631ed577518332dae81851db4dbdefc18fca473761611"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ContentBlock.swift: FileTooLong \u2014 910 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 410 over it, 1.82\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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bb5596623ae5f5f2eeeeaa56533a0a699042841e955106ce04d6e68347ed82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: osaurus-wa/bridge.go: FileTooLong \u2014 909 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: bridge (31 blocks, 30-1355). The bar is 500 significant lines; this is 409 over it, 1.82\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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f015c1fafea634a1561cb98d7a1589a0edc29e3824bc4b24d8e9d5dde436fecb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BoundedArchiveExtractor: ClassTooLong \u2014 726 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 326 over it, 1.82\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":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a859277cfa6645c9e1d3322ce7078fd28b8e87ea80d7c75ce0ac21e435e4de1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelRuntime.generateEventStream: MethodTooLong \u2014 generateEventStream runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":6235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c16ff6ac665a9ce6d949171d19cac7ee5f768e7610fe60a861bf41527720f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KnowledgeDatabase: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a921b9ea2df64b550606ca1346b3e2c1eee9d1f8c2e89b8f1ea260c3c3cc66"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeToolCallRowView: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"de02f3c03e7b8f2740ae75e6aee7a676b86079112cbf21bf9c2707d686ef1380"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflow/WorkflowRunner.swift: FileTooLong \u2014 900 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 400 over it, 1.80\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":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8768935ccc51300b7ee915d4e8cce7c05709938bc11e1b2b22fd7598cc2d87fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BoundedArchiveExtractor.inspect: MethodTooLong \u2014 inspect 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":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"003224c36a08f83029b2758a3c71038ccdac975a20ac35d7b11e5cea7c083588"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PPTXAdapter: ClassTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 318 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cd84023eb227094defc660291b38e35d9768b86ded746ddfadc67f8d629810"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DiscordConnectionService: ClassTooLong \u2014 713 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 313 over it, 1.78\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"766acf228129b15e6d608b516c2888797609e45e826f29551538c73d12c9b069"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentDetailView.abilityCards: MethodTooLong \u2014 abilityCards runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe62a1299237a67b4ab59cd93d572ac89265ee5e42be3f38ab73c1a0d778802"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusEvalsCLI.printUsage: MethodTooLong \u2014 printUsage runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"06cf98c78d5f97952d9fb62efc569f5c0a5c9be491d7dc7b0881f8202a273bd4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Template/ShareWorkflowSheet.swift: FileTooLong \u2014 889 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ShareWorkflowSheet (32-1242). The bar is 500 significant lines; this is 389 over it, 1.78\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":"Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b34814731f21339b1146618aaeac1f8069ccaed62e6d54cffc2bec655c1009"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeImageJobCoordinator.runJob: MethodTooLong \u2014 runJob runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"015c95a3c41fbc5f82c68037fb9d32c21af336716ffa2605d909f36786b344d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentTaskState.record: MethodTooLong \u2014 record runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f47ec6f719f89c5fb91664b672a775d5337b74c20967bba25f39c1a50d71ac1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeToolCallRowView.buildViews: MethodTooLong \u2014 buildViews runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":2029}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5a75670b14a74771f43ce3870a006e148c43bc13d3fbd85d7d2e058e46374e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runCapabilityClaimsCase: MethodTooLong \u2014 runCapabilityClaimsCase runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf12bb6416b3b8cb257fd138e8bcfbb0ad0dd220cb00b3aa68b92fcb1e3f07ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Model/ModelPickerView.swift: FileTooLong \u2014 881 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: ModelPickerView (156-1274). The bar is 500 significant lines; this is 381 over it, 1.76\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":"Packages/OsaurusCore/Views/Model/ModelPickerView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b7084ffe1520d9e77363d664a2a815384d0e753fed891a5ba204ed808ef9fc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelPickerView: ClassTooLong \u2014 702 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 302 over it, 1.76\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ModelPickerView.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5775f089dead1208065855baaa0f1801e49c5b07ae5087d3fd4d228325d44290"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileSearchTool.execute: MethodTooLong \u2014 execute runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4846}}}],"partialFingerprints":{"codehealthFindingId/v1":"4662b73bef9e3551a897d1f824ed239becf81e843ad9235ae1229c9bbd08c8ae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PluginHostContext.complete: MethodTooLong \u2014 complete runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"9845e83148a6735b484564cc53f67b909a8a4b90b2913a44521b661d33704adc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentTaskState: ClassTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 297 over it, 1.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":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa0a1a0642eccbd148a6257185bd900a5ed9a29472c62b29e8a046c4308dd32"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/RequestLog.swift: FileTooLong \u2014 864 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: RequestLog (498-1302). The bar is 500 significant lines; this is 364 over it, 1.73\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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e481e537ac9232ecf1cf4024b930d54d48f8f2ef67da4fb67c6028f837f33d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Context/SubagentJobEvaluator.swift: FileTooLong \u2014 864 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: SubagentJobEvaluator (331-1206). The bar is 500 significant lines; this is 364 over it, 1.73\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":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bcef85167257edb9911bf5bbbcb01e8183cac16a1ddbd41148f2cd4a65fe57"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/AgentChannelCustomConnectionSheet.swift: FileTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 363 over it, 1.73\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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26871732a3868d3f1cc31c381c19342e71784716684fd2349c0bf2928f0205d0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExternalModelLocator: ClassTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 289 over it, 1.72\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":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4649b74866aeb26e3112ef81301d76b742608af0c5f0651ee46657c1835f4ede"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API/AnthropicAPI.swift: FileTooLong \u2014 861 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 361 over it, 1.72\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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c82bd07298888289fe06fe3ee8465171701106422b349b5e36d8ac1d1bdb30b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MediaNodeExecutor: ClassTooLong \u2014 688 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 288 over it, 1.72\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":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c968a979fdb9995c709b60e53b20a7393f5d6176b8b0697b35d1e71f50609db"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PendingImportProcessor: ClassTooLong \u2014 688 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 288 over it, 1.72\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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4652daae2ff6b513c9e088c0e92dc9def9934f98e4bf83fd06f5d054a05bfbd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeMarkdownView.applyMixedSegments: MethodTooLong \u2014 applyMixedSegments runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"718f95d0cbf0ce38ce3e185c4c41cfe157dcf7eaed55825a3768b9b465a0b438"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalMatrix.formatMarkdown: MethodTooLong \u2014 formatMarkdown runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b526295b26007e1c5d0ec1fae1ee16f12f4da364a7dd730afef0bc54e700e8f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentManager: ClassTooLong \u2014 687 significant lines (blank, comment-only and punctuation-only lines excluded), 104 methods. The bar is 400 significant lines; this is 287 over it, 1.72\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":"Packages/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0e573e90ccf0dc493d110ef620bd57ac48013f16846ad2a846d9e1e388796e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DiscordSettingsView: ClassTooLong \u2014 685 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 285 over it, 1.71\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a515c0e572d51b445ebc937691759eddc0aef37de05b149fa79fd78651463baa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SpawnConfigurationEditor: ClassTooLong \u2014 685 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 285 over it, 1.71\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":"Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"972b9cc430efdc0a233585f7b8a90d4b4a4c75e955a1dc4425eedbb7a7e09d3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Plugin/GitHubImportSheet.swift: FileTooLong \u2014 850 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: GitHubImportSheet (14-934). The bar is 500 significant lines; this is 350 over it, 1.70\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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7314810ac3314811bd3caca17a57356b3b8f47423f778181638c02f32c324c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComputerUseLoop.act: MethodTooLong \u2014 act runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"32591285dc8da6815e955b572ad0967970be46a904ccd82117802027a94cd056"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelCompatibilityDiagnostics: ClassTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 279 over it, 1.70\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":"Packages/OsaurusCore/Services/ModelCompatibilityDiagnostics.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fb17b0414f9add0115ee0a5ea476cbefb6d83306936e8fcf6ebca99b18237a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteChatRequest: ClassTooLong \u2014 678 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 278 over it, 1.70\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5142}}}],"partialFingerprints":{"codehealthFindingId/v1":"937c407f68c1dd940da10459fe55f89cdd4b1d16409d9e92cbc14528f8827ad6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Networking/RelayTunnelManager.swift: FileTooLong \u2014 845 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: RelayTunnelManager (200-1468). The bar is 500 significant lines; this is 345 over it, 1.69\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":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec03c54c07e4684ac53b8967dca03d457f9202db01162279806cdf95dff01edf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileWriteTool.execute: MethodTooLong \u2014 execute runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":2766}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5679ad0af8934536ebb48ad5b280689ba9af0ece13caaba50be44575b47ae37"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PendingImportProcessor.install: MethodTooLong \u2014 install runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"a943169ec4f60f1d06f8f715746cb1a5e075b1fac6ed68db0cd7867f4e791557"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MemoryView: ClassTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 275 over it, 1.69\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":"Packages/OsaurusCore/Views/Memory/MemoryView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"79976a8545d38d64debd1b88ec7ab0132046d4dc9e592ed7156808869380b561"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RenderChartTool: ClassTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 274 over it, 1.69\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":"Packages/OsaurusCore/Tools/RenderChartTool.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b99f56a65a40e869a037c365e4933f4d1c250a923814613493c023ef97973c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workspaces/WorkspaceSheets.swift: FileTooLong \u2014 842 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 342 over it, 1.68\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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c655e12e38c26ea0539ab1daedb51c2746840e97c44350e805f849c71443c3a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FloatingInputCard: ClassTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), 94 methods. The bar is 400 significant lines; this is 273 over it, 1.68\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fc50460c51afbc31588465abf7831196735f0867c00f0cb329b6533309e2ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Runtime/BrowserSession.swift: FileTooLong \u2014 841 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: BrowserSession (22-1204). The bar is 500 significant lines; this is 341 over it, 1.68\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":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82cfc72a9f5b32286eec555ef03aa95bd23df36e62613e6632852798a872400"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PrivacyChecksums: ClassTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded), 81 methods. The bar is 400 significant lines; this is 272 over it, 1.68\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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"051862790763fc441b7a8d9f3ef5c11e9543c677633b944c036565f8d56b0c36"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Discord/DiscordConnectionService.swift: FileTooLong \u2014 840 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: DiscordConnectionService (167-1124). The bar is 500 significant lines; this is 340 over it, 1.68\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"765f86827fcc3993737f38d21befb2b0edf6861064abfc278d6589f9c464e8fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FloatingInputCard.normalBody: MethodTooLong \u2014 normalBody runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4b11f190f762901f0782806c5538ec12ada55096f6ce70d22354f614d6dea5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utils/CalculatorEngine.swift: FileTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 339 over it, 1.68\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":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb53a1639b7e43b1c79a067c59956fcd1c1063c1cdcfedd0a20e05c76ddecd0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/SyncConversationStore.swift: FileTooLong \u2014 837 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SyncConversationStore (19-1204). The bar is 500 significant lines; this is 337 over it, 1.67\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86396ac336feccb77baaa59066949e81345fd6cd6949fd579f083488af7f02e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Template/WorkflowShareService.swift: FileTooLong \u2014 836 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: WorkflowShareService (130-1251). The bar is 500 significant lines; this is 336 over it, 1.67\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/WorkflowShareService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c885bc6df4bc5d1cc746b89b102fb5fa5b0a601015d14b6169654177b16d0252"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Plugin/ClaudePluginDetailView.swift: FileTooLong \u2014 836 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 336 over it, 1.67\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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca23c1e96e1247d0bf64c79835de55797309e26d0c43bc6ebfcdc176f82d80f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PluginManager.loadPluginWithError: MethodTooLong \u2014 loadPluginWithError runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"366bb8ba5bec2e7dd0663b1a3d0953df658dc315055a50737769d69e007d897b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextSubagentKind.run: MethodTooLong \u2014 run runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a95ef4d55a93e03aa91b6cc105cf35622d514f0ffb9bf213d3afad68a1cb900"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WhatsAppConnectionService: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1afbc4512bb0a58a5ccb94d92bad1d875a5273e442d44f28eb8c12d8d7e8b6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeArtifactCardView: ClassTooLong \u2014 664 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 264 over it, 1.66\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":"Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a56e7ade205e263a40b26eb50f704a074f9f1e13c80c8297bf0d6b796baae3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Documents/XLSXAdapter.swift: FileTooLong \u2014 830 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 330 over it, 1.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":"Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bbb0d8064c616bb64cd514393784c9cb00fb0ebaf29e32c8b3b9783f6e49fa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BackgroundTaskManager.dispatchChat: MethodTooLong \u2014 dispatchChat runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\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":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe52614772c55b5898f51a49eb3ab82969b133f58be086b0e858662602310996"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubSkillService: ClassTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 258 over it, 1.65\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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a315a6372e34423b9102938aed1815e3d57f96346cb97ea8af18fab5788349"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/TelegramSettingsView.swift: FileTooLong \u2014 822 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: TelegramSettingsView (10-1191). The bar is 500 significant lines; this is 322 over it, 1.64\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":"Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b297e0779292506f90d81aedc2a7a5657020a3c678b38bf7d33bac4899558b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentChannel/AgentChannelConfiguration.swift: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 320 over it, 1.64\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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dde8e91a719ee5427e0a6f74a304e3a9b95bc89f99ee4fe6c6f83232444a50f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Template/WorkflowsRegistryAPIClient.swift: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 320 over it, 1.64\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":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c9040c9670f32a3557a401cb0b3252b408ff7c7386c5315047fff2e4d82607"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SearchView.swift: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 320 over it, 1.64\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":"Packages/OsaurusCore/Views/Settings/SearchView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56db3f84d249b783ac6e1b2c0f2344755b1e973bf3d2790f5116827dc051bed6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserSession.takeSnapshot: MethodTooLong \u2014 takeSnapshot runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"75800cd723d550e23bd5dcfd27de720c59577c7eff81040f2b178579146e41e8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentChannelInboundRelay: ClassTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 255 over it, 1.64\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2da8b4f7986e6266e16e5ae8054d4d8e32156cab0eea3f2411f4c15f7216c33"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/SelectableTextView.swift: FileTooLong \u2014 817 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: SelectableTextView (51-946). The bar is 500 significant lines; this is 317 over it, 1.63\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":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"154599a8128d30e5de2eaf238c738765e085ecc67822d0d1577986e876794234"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TelegramConnectionService: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b67526df54fb26ca5434ad07e1446236c994809d3adc091abba18c29a0e5681"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileEditTool: ClassTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 253 over it, 1.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c4b5d8213481149fc9349176f58ff9dec2f1cf87e5571e38a6456f031395d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/InsightsService.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":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f84eaa161b0297a4a3719372a117279e21ec5c6e27b512e8756d0f43f28a08"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ModelRuntime/SwiftTransformersTokenizerLoader.swift: FileTooLong \u2014 814 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TokenizerBridge (57-1122). The bar is 500 significant lines; this is 314 over it, 1.63\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":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa7e6ed6eb27512b9679fa4a47e378e4491377d38f5fa05cb5f49898f659670"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsCLI/OsaurusEvalsCLI.swift: FileTooLong \u2014 814 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: OsaurusEvalsCLI (29-1237). The bar is 500 significant lines; this is 314 over it, 1.63\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e889a7366ba3409b6db36f58aaf65eb7c9d8853c9133c21eb5cee0fd352e7628"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DOCXEditor: ClassTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 249 over it, 1.62\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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"888c7bf618ac26a85c0c3a0521c3ec73de3f078c1e9d9c32d497fe4f9faf5e3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Database/DatabaseTablesView.swift: FileTooLong \u2014 811 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DatabaseTablesView (22-1140). The bar is 500 significant lines; this is 311 over it, 1.62\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3728f3eeefaae544e48724e0faffc16b90486f5be882ec9169bf88bcba8ff593"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflow/MediaNodeExecutor.swift: FileTooLong \u2014 810 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: MediaNodeExecutor (192-1102). The bar is 500 significant lines; this is 310 over it, 1.62\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":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f478e9d0a7cb98190688b6f6ec54fbf7beb772adfbb17a0ee94b658220646ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflow/WorkflowEvalHarness.swift: FileTooLong \u2014 807 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WorkflowEvalHarness (16-1146). The bar is 500 significant lines; this is 307 over it, 1.61\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":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72277bc9cd2a24f0338fc35fc9452ad0fa518d3d0d447c82161ad6438d5973f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleShowEndpoint: MethodTooLong \u2014 handleShowEndpoint runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b15e56444acc84120b0ab01d9f4d3bd756de157f74bc0bf7cb9c188260b3701"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalMatrix.swift: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 302 over it, 1.60\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3643e28f910aca06cc51dc402604cf2defab8cd339f27f8ed5a6451b241ab0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MemoryManagementConsoleService: ClassTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 241 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bd0e89eec2bac871191665fde69d912419a24357313873a552d3477798322b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalRunnerHTTPAPI.swift: FileTooLong \u2014 801 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 301 over it, 1.60\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca5e6e09a93459d614eafd3eddb63aa35f2ce46f201a021b235e977dc8b7eb4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InsightsService: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd98eb33b8c2693490a585634c7e99ee7b01aff2af131e234a1372f1d7a6318"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FileHistory/FileChangeJournal.swift: FileTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 300 over it, 1.60\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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a239685137751c0b8f5a9ee6dc8670c5eac8ec11a2c5c3103f8c53efaf3d29"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkflowValidator: ClassTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 239 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf70ded81d4a5a216425a65633fa07b8f62fe1099842f75ed8e73bacdc773490"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Storage/ActivityLogStore.swift: FileTooLong \u2014 792 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ActivityLogStore (50-1165). The bar is 500 significant lines; this is 292 over it, 1.58\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":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0be3dc5a0d58f3ed9bc30af7c56ef125539cbc17e588a75b98700ff42c9f516"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ChatTabStripView.swift: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 290 over it, 1.58\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":"Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e60eb85bde2a39841064d7ed65bce3e30c57d21b2ed6196782c87b29d729b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteProviderManager.testConnection: MethodTooLong \u2014 testConnection runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"694f7ca074d4dcdf4b0eebe5b2e3c0eacd260d3269c989cd52477b141f55e407"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleOpenResponsesStreaming: MethodTooLong \u2014 handleOpenResponsesStreaming runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18604}}}],"partialFingerprints":{"codehealthFindingId/v1":"63386acd6e7130936fce1558eac7c055359f4c883457c8948aa6e48bba904459"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionRow: ClassTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 230 over it, 1.58\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2920}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9fb9108b041ed79ae2b6b6ddd7381c7a61f8f9a7be6924a1383e747d0983cd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OverviewTab: ClassTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 229 over it, 1.57\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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95d9f21a90bfb9946232d7bdd55e645fe01e9fcafc26460184d05d9bffba5b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FlowViewer/WorkflowFlowCanvas.swift: FileTooLong \u2014 785 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 285 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowCanvas.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b556fe157a9e54b662865cd1f3f62314e6158f0be0ce50373eed6e513935085"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatEngine.prepareDispatch: MethodTooLong \u2014 prepareDispatch runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3daee75377e04f9ae3e8e042fff1bf4e111d27e9065076748be5351bab590f27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XLSXEditor.shiftRows: MethodTooLong \u2014 shiftRows runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"967edb249965c620c0fc36ba4b5a9ea7896482f5d7ec9b9590e0f2afc70eeefb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalRunnerSubagent.swift: FileTooLong \u2014 783 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 283 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4dd8dbe89e9e8fcee63f59df961c47d7cc75f5b8bede6d46e9320cbc3fb53c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EmailSettingsView: ClassTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 226 over it, 1.57\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":"Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"18579839319b7c4f683bcae23145f69d7909da578391e8ebcf8ed85c8fb6d8b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusRepository/BoundedArchiveExtractor.swift: FileTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: BoundedArchiveExtractor (57-1046). The bar is 500 significant lines; this is 280 over it, 1.56\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":"Packages/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"082233382ed7f70d7d5227e9e21062150689574325ea0a37cf8d1fa635e66e84"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelManager.scanLocalModels: MethodTooLong \u2014 scanLocalModels 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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bfffab4d8ad083b41e35227197a03c7f92480cbd70625d23c0857e761a0df1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runToolResultGroundingCase: MethodTooLong \u2014 runToolResultGroundingCase 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerToolResultGrounding.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95e06de4214e076defe4fc43a48cb9647c1fd00499ffdb02231d177c9a1830f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShellRunTool.execute: MethodTooLong \u2014 execute runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":5735}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89d6901fd3fc47d8b4dfe52b43fcaa9e30e2f49491e22cab6d9fd0779be5810"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusEvalsCLI.runOptimizeContext: MethodTooLong \u2014 runOptimizeContext runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/ContextOptimizeCLI.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc9ca9a9d8d075c00a21e9ceaf189b48bdf8100e9df1daa4793da9ba17ec860"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SetupChecker: ClassTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 218 over it, 1.55\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":"Packages/OsaurusCore/Services/Template/SetupChecker.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db80f69b43af9c0ca8878b420c6c695ca69256aacd50ea694d49357be2a9fb8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentDraftPanel: ClassTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 216 over it, 1.54\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":"Packages/OsaurusCore/Views/Agent/Creation/AgentDraftPanel.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f78dc7c12dfba64f656f02569a7e02099fd4dced246885abce234fb709ee2c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RedactFileTool.execute: MethodTooLong \u2014 execute runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/RedactionTools.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56884aad1757b35da4abe17a33bd49102e5b06b27915b3fd3d55f6ddaa98710"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteProviderService.buildURLRequest: MethodTooLong \u2014 buildURLRequest runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":4101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2eeb2951216fc63e6925460b6bb19360650687b692cf15fa7a1dca5ac879d15"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runMicroPerfCase: MethodTooLong \u2014 runMicroPerfCase runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ae7c5d9cac81204c50666cfc67e17e8e77ba791e970278ab6636d77b5aa23d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PluginsView: ClassTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 215 over it, 1.54\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b9a96494f481fd5c22cd68c41662e5bddc2840c7b8fbba56611450889e2651"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SkillManager: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\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":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ff3563f3545b46493151affdfb3f471f44fb2b76fbc307be2fb81d2ca89604"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OnboardingFirstRun: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\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":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3535f93d805123b8dcdc6712d12d32bd45315435769d63b0497d4df10f17dec9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Storage/ChatHistoryDatabase.swift: FileTooLong \u2014 766 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ChatHistoryDatabase (38-1311). The bar is 500 significant lines; this is 266 over it, 1.53\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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce218f975cbefb67efe7cbdff5789c286ce4d53c5781f986e5cbaa70092d059"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DesignSystem/SettingsFields.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":"Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7316383ae531062a9fcbf93b88818285a1005b24a7e81ec5f82db45174aead1a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncHostRunner: ClassTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 210 over it, 1.53\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":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d92fbaef6c7ecbdf7dbdb0e8087cabfe7e970ab845da95b827757309fab008"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PDFAdapter: ClassTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 208 over it, 1.52\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":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb30dd3cadef3fa3fd13fe999618245985b2a4820f40bfe6a4f144ec4ae54927"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CreditsView: ClassTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 208 over it, 1.52\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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9b2c8a739a269cac60254e0aa34aa983c8423355d7eae3b673a098a973ab68"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CapabilitiesDiscoverTool.execute: MethodTooLong \u2014 execute runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4ebe93d550cbeb3cacb5822ec0e30713333d51d0b24b7a1bd4ce94853266e8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentChannelConnectionCenterView: ClassTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 203 over it, 1.51\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":"Packages/OsaurusCore/Views/Settings/AgentChannelConnectionCenterView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3285f9ba01191485aac1c6417533ee5d41af55c9ddfea029fe7d402e655cafa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IMessageConnectionService: 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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b466967246ca4b20141d9eacc3ad7f9b75ec5cfc41a4e317a3000b1baa448a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImageGenerationService: 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":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6988590eaceea4afb6e3d674501d1abfdf8719b235fc8eca93f16597087a73"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PendingImportProcessor.prepare: MethodTooLong \u2014 prepare runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"233a0043b9da3e33a612199e64f07e2de9e915c84d2f1d841593e815188765c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProviderCredentialInstructionsCatalog.entry: MethodTooLong \u2014 entry runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"Packages/OsaurusCore/Services/Provider/ProviderCredentialInstructions.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"af93743222226c2026fbdfd72d3d394d753174b94e05f22a24a84a0be7624d3a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolRegistry.runPermissionGate: MethodTooLong \u2014 runPermissionGate runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ab74652b79050f875a85d1e49c16165544e3f5ff9c9b49250374591224a5cd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SkillsView.body: MethodTooLong \u2014 body runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"Packages/OsaurusCore/Views/Skill/SkillsView.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f445a7e7b88b67116ee438723428ac9451033720a1a6deeb22b4d431dc45daa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusEvalsCLI.runCommand: MethodTooLong \u2014 runCommand runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e20e1f27f0cdffc8b0b2ab5da48d9765687c05e50cc4cb8f8961f607a8c2f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Insights/InsightsView.swift: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 249 over it, 1.50\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":"Packages/OsaurusCore/Views/Insights/InsightsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"785347f0356d31503703c0767095679c440fcf31cfb9abbb69ce6bbb20f581df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalReviewReport.swift: FileTooLong \u2014 747 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 247 over it, 1.49\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f5337280fc3c6f2b596e46f8353a89d60c94349732013e4ac3ee385ec4b8f7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkflowDetailPage: ClassTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 197 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowDetailPage.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f2cdde944c5834c93100ae21f85d25902849bf5b18f0771e9db071f029eed4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncConversationMapper: ClassTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded), 35 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":"Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b13de176b34985cc2b38095bb30b19fb0943374700a56bf0cc6daa610804284"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ToolPermissionPromptService: ClassTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 195 over it, 1.49\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ToolPermissionPromptService.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"988732558e22248f01dda01f2e953d9de93fbdbe168d96e55fda147396d1392e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Event/EventManager.swift: FileTooLong \u2014 740 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: EventManager (29-1129). The bar is 500 significant lines; this is 240 over it, 1.48\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":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e2bd6a9a21348b67042ca415d75a7b6b0a38424d0edb6fb82be4472938fc38"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProviderPreset.configuration: MethodTooLong \u2014 configuration 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":"Packages/OsaurusCore/Models/Configuration/ProviderPresets.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3580ba6c51156adc3271e6a6eda7c1ab3b0be1f671755d292f7e55611fbcedb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Template/PublishedWorkflowDashboard.swift: FileTooLong \u2014 737 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: PublishedWorkflowDashboard (22-1013). The bar is 500 significant lines; this is 237 over it, 1.47\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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5f8e00764578d7139d18a2d04cff97058e545ba27d04a8c4c546e2614d8cb8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentChannelDestinationEditorSheet: ClassTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 189 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"11890a673c35378886e37fefc3a58dfed10ecc8159912ec72fe0f7f361e95ed1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubImportSheet: ClassTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 188 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"478da9ed53bb741487b0a9b3a696914a1431449af82f77654abc697627cec314"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DevelopmentDesign/CatalogInspector.swift: FileTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 235 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba416e38d3fe434f273d1789cf5cccdc8c57c38d6ebe936fb7fcd394df63ddd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Configuration/ModelOptions.swift: FileTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 235 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ModelOptions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c068bb2f7a90374404379ab2815c6267981a52b82c9f07244c8bb6611500766"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentChannel/AgentChannelInboundRelay.swift: FileTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: AgentChannelInboundRelay (128-1076). The bar is 500 significant lines; this is 235 over it, 1.47\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"424f10d97f9365b19b4117fafb05f5d3616bc507af3bafeda45d9c65a1efe265"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleChatNDJSON: MethodTooLong \u2014 handleChatNDJSON runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15863}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69abeac1ae77604fc5ec1641a4d5f86724e1d68a1d62d71eb50f9caa777ccf9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusEvalsCLI.runCaptureScreen: MethodTooLong \u2014 runCaptureScreen runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4285aecfb5a05c95c89ca326ac21464af96e7296ca7dd25e10911a3e681782"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeMarkdownView: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"094c749937af1f4c73d4a029d4e43cf7f4066619009cc7c8438bfc1bd382ce43"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DevelopmentDesign/CatalogComponents.swift: FileTooLong \u2014 732 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: CatalogLibraryFixture (278-787). The bar is 500 significant lines; this is 232 over it, 1.46\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":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7b059b7ea7c35be800f5e722615fe4492637abd2a297327089e1714717e8dd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: bridge: ClassTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods, 31 blocks, lines 30-1355. 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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3d9552c5061aca611c7292145e64a189786bb7258343d08ab7a30d8ea8226d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: XLSXEditor: ClassTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 183 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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0a6621b67d0845c5bee825a4e6dad98d59885ee1c55d129e7add74c90425e8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SkillManager: ClassTooLong \u2014 580 significant lines (blank, comment-only and punctuation-only lines excluded), 46 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":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"032c860fa7293761736fc9dd8da4d6f2f67e9e938fba21ca2c72a1fb9d97f1b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MLXBatchAdapter.prepareInput: MethodTooLong \u2014 prepareInput runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1206c6112395544b7a3339ca63583f86ffb2df054a9870642e158e0b6d2b838b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleOllamaGenerate: MethodTooLong \u2014 handleOllamaGenerate runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e03ff6adcaac724679108cf0d093dcb50af2ee3ca683d5221b1f99408d30c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleAudioTranscriptions: MethodTooLong \u2014 handleAudioTranscriptions runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18241}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc7257134fdca54280cf8e492c5da057c7eff087ccba016b0e476ee4f857519"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentsView.body: MethodTooLong \u2014 body runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c570ee984269f692260ba2f584fd8bfb105dad6bc8f2b5f7547172dbaefd3bfa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/AgentTaskState.swift: FileTooLong \u2014 719 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: AgentTaskState (84-1606). The bar is 500 significant lines; this is 219 over it, 1.44\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":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84443ace1457af0bf161ce39d44d166c5caeccf426c7ba1f14cfd43ce80414d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Router/OsaurusRouterTypes.swift: FileTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 218 over it, 1.44\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":"Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f5e2603d0adda466e4461eda7876149cc35084f1596d98ffc95d1ae7b62f82"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserToolExecutor: ClassTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 174 over it, 1.44\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":"Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d313a63409faa263b31208f577770e2a32a86ef07aae28d80890e1e00804dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/Skill.swift: FileTooLong \u2014 717 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 217 over it, 1.43\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":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65326342ca4c9d5c1620651b86494d250bdfff296f6388430d83ab016e7d621e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CredentialStore: TooManyMethods \u2014 43 methods, declared across 2 files: Credentials/CredentialStore.swift (41), Credentials/CredentialBinding.swift (2). The bar is 30 methods; this is 13 over it, 1.43\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":"Packages/OsaurusCore/Services/Credentials/CredentialStore.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee7f78071bcbbb42919300603b84e802a27cee7b51f953c4f5feaec521db6da"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DiscordConnectionService: 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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"478c4183e12910f7b5d31bc9da2bdf363eb0d53deb26a68c22b20714c1e5f304"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelDownloadService: 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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e807a22ca59344cf0db2e0ab9807e3f2da5f9eccdd7594e6edd49476ff5d405d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentDelegation/NativeImageJobCoordinator.swift: FileTooLong \u2014 715 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 215 over it, 1.43\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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba72e4286e508b0084a7b8d132da40c6b6e135bd179779b6c9a8921d2e74217"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusConfigTool.applyDocument: MethodTooLong \u2014 applyDocument runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5a015134497105fbeb6120e5e091ab1adde5245a621b465d5e4f74c37ef9a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileWriteTool.writeDocument: MethodTooLong \u2014 writeDocument runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f896d252587aef5c03e05df19d311ce8ef6f6d4b7f823bd384e711fc942885cd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Options.parse: MethodTooLong \u2014 parse runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"62468ff8e96bfdd803932cee84405aa15be62caef9e739ac4b31d5c14574547c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Memory/MemoryManagementConsoleService.swift: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: MemoryManagementConsoleService (111-952). The bar is 500 significant lines; this is 214 over it, 1.43\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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad8933be31a2c08fc0a79f7367dee26366adea8965c2c20ebd128e13e1e9437"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncManageFeed: ClassTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 169 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":"Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e651be0f4887c1a7a08b67dccc7b116b44619f6dec32ecb9268f81976324c70"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleRemoteImageGeneration: MethodTooLong \u2014 handleRemoteImageGeneration runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13812}}}],"partialFingerprints":{"codehealthFindingId/v1":"852c981140c0cadcffb2e193105da41ca9a363b70e256c93782a4369bd41f3e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkflowStepRisk.badges: MethodTooLong \u2014 badges runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowTrust.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aee0a9ffa9c1e95f09d9bcc8e398b80dca6d1cdf7c025f9a2e7914971b99bd2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CompatibilityReport.formatMarkdown: MethodTooLong \u2014 formatMarkdown runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c16c88ff65efc4f344eaafa96884ede9f2b7927054b388ea86e8951a74b0e4d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusRepository/OsaurusBundle.swift: FileTooLong \u2014 709 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 209 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusRepository/OsaurusBundle.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"781a9ff4bfcddda1dda942e6e195d47b2a2db8551f1f2ef266600fe64a5bdc6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Documents/BusinessDocumentStudioService.swift: FileTooLong \u2014 708 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: BusinessDocumentStudioService (359-942). The bar is 500 significant lines; this is 208 over it, 1.42\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":"Packages/OsaurusCore/Services/Documents/BusinessDocumentStudioService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff08abb57cd31959d5531674974a90de6a1329440693f6e375946ed99344243a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentLoopEvaluator: ClassTooLong \u2014 564 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 164 over it, 1.41\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd4b6a4a1923d82a3bd3959d7babd8d92b227a47ff8303ca6a9f34f066f3629"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalScoreboard.swift: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 205 over it, 1.41\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8bf983f0a3660242641a6b86e9a53c643cdf93e57c9df59d9f15f8423907a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileCopyTool.execute: MethodTooLong \u2014 execute runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\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":"Packages/OsaurusCore/Folder/FileCopyTool.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a032dae408230d6702d580fca4b96c04703ca31b8794a5009997ea51a1ae2287"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelRuntime.preencodeLiveVoiceAudioIfResident: MethodTooLong \u2014 preencodeLiveVoiceAudioIfResident runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d832cc843fdc0ddbccba17f6cd2ae1ce4e9d2564e66c11b10992472a1cf066"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelRuntime.unloadClaimed: MethodTooLong \u2014 unloadClaimed runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":2435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e32d9b98924c9ad1bbce2c2d880ae613543c06f0eb5d218464d6849e8472ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkflowFailure.classify: MethodTooLong \u2014 classify runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\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":"Packages/OsaurusCore/Services/Workflow/WorkflowFailure.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84b2e82528c7798301dd611ad5a9cde3573bea35852750af7f8e435cb764896"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Plugin/ExternalPlugin.swift: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 204 over it, 1.41\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":"Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a195788f3d955630485d9c09c50c4f0ed835ad9434b496f4dcffad466f8326"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Memory/MemoryView.swift: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MemoryView (56-1146). The bar is 500 significant lines; this is 204 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Memory/MemoryView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1b96da15b960dadf9f8c3b95f250fd8bd5cfbcb79c5cd592546f5c7a909bb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ChatHistoryPane.swift: FileTooLong \u2014 701 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 201 over it, 1.40\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":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b528c33eecec577cddc997c5eea2419ea6573492411827f7e8abcbc4d500e5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ServerRuntimeSettingsStore: ClassTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 160 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d646b8a2d850401311070e295a101d69d69a4d8d3720607327cd557370bcdc9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnboardingFirstRun: ClassTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 160 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2788199ee271f1e97afe63a5c87bbb5365de5e61be453a32dd20a43999cc109"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrowserSession: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be5c63de213825a9dae3de3e8497732884a844a1d33616d99670d47d7a2d582"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ContentBlock: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf832fad5a804172b30c19a04db3b4371a4084f05678d9e90dc51705a162ae33"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MLXBatchAdapter: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cd7d5a211efd4c3fb5240528cee0ed02bdac1af2a2e50b539888a104cf1ab7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkflowRunner: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace9d0ee1afe85520a85a2dc99d213776430706a697e2648e14432cb8b93b76d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkflowsView: TooManyMethods \u2014 42 methods, declared across 2 files: Library/WorkflowsView.swift (33), Library/WorkflowsRunHome.swift (9). The bar is 30 methods; this is 12 over it, 1.40\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowsView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3af439118d6c8fff6730fddea8dbfe46dddc2ea6045364e5c95f2afa7234b63"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CatalogLayoutAssignments: ClassTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 160 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/DesignLibrary/CatalogLayoutAssignments.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9ad1cd77c319148f5cc38ceb41e3ff49789deebbd337e0d4b7d104a1ada2b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncHostRunner.process: MethodTooLong \u2014 process runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"169db3e5d40af74a68c12508e62fa43dffaf27bf9ecc3867e212b4d0f6dcf3bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/HuggingFaceService.swift: FileTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 197 over it, 1.39\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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fd302323de7134a0fe2dd24b4b68d3d3819077eaeb2282c78bfa6b19b44d9e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileSearchTool: ClassTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 156 over it, 1.39\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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4738}}}],"partialFingerprints":{"codehealthFindingId/v1":"984024ec8bc9ace06dc16c9528bf0ab7f781d6147b34348b5ea25307e0b11323"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Import/PendingImportProcessor.swift: FileTooLong \u2014 693 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PendingImportProcessor (31-968). The bar is 500 significant lines; this is 193 over it, 1.39\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ec377730791509d13ab4263d10d12a91fa7d989b6b52f564cc93ff00fd0d48"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SelectableTextView: ClassTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 153 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6839cd18d7d2d5e1d26541afc65ebab0f7f664b82a353b5cd5d1b14a7bab83f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/ExternalModelLocator.swift: FileTooLong \u2014 691 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ExternalModelLocator (30-1102). The bar is 500 significant lines; this is 191 over it, 1.38\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":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0281977ceccc45e76ae24b13c79feaccffd379d276dbd738864e0b1925359650"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ModelRuntime/ImageGenerationService.swift: FileTooLong \u2014 691 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 191 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":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"112e7165762c3c274c9781fd8b680bb0c2454214602be3bc8b272a629fbed7f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Identity/IdentityView.swift: FileTooLong \u2014 691 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 191 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":"Packages/OsaurusCore/Views/Identity/IdentityView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d07869321e704ea86748c3623d6a7cd4f5e7abf92044f197c2e606334959679"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Mail/MailService.swift: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: AppleScriptMailService (318-923). The bar is 500 significant lines; this is 190 over it, 1.38\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":"Packages/OsaurusCore/AppleApps/Mail/MailService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e96245511cd2b59f8534b78be6d2e71ae1fe8678ba40fd0318af9763802542d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workspaces/WorkspacesIntroExplainer.swift: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: WorkspacesIntroCanvas (300-974). The bar is 500 significant lines; this is 190 over it, 1.38\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":"Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a167ef6f2e3c0d7ea975a48cc538cb77de55eb05a414638b5ed0a9989f639c6b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleSessionEndpoint: MethodTooLong \u2014 handleSessionEndpoint runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8502}}}],"partialFingerprints":{"codehealthFindingId/v1":"00acadcc388288f50086589897a1aee43d18ee52fd8b5ae91d286001a91ad4d9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ArchitectSidebarPanel: ClassTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 150 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d987f9b886b0e1c0647612f4888908cadb648c951062a32f73ef69616ad5ef30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/SpawnConfigurationEditor.swift: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: SpawnConfigurationEditor (18-1032). The bar is 500 significant lines; this is 186 over it, 1.37\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7ca3c851400b7474e9ce870e38f0284f34ae53391d445174ec40df777d785a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/DiscordSettingsView.swift: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: DiscordSettingsView (10-1003). The bar is 500 significant lines; this is 186 over it, 1.37\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab89f35d15d9d0f30556b01a59f6523e9d3168749ac4fe57b96685d71af51a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteProviderService.processEventPayload: MethodTooLong \u2014 processEventPayload runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"637332aca47b2429729d754380ad82b014603eb8976e8620de5dd8937d274b89"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteProviderService.buildChatRequest: MethodTooLong \u2014 buildChatRequest runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":3466}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f4bbca6ed77ea8c17cc98a6f72e05470a74fb87c2ed12280662529f325c3a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SubagentJobEvaluator: ClassTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 147 over it, 1.37\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":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bbfc8b23c1081333b182c0e1665b30ae63e043d3ab3ebd4be50a415edb8987"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskStore: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"Packages/OsaurusCore/Services/Task/TaskStore.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"875fbcdfcef986d23fc03780321ec192490e2e28a62459234a6f4189c8ab257f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeActivityGroupView: ClassTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 145 over it, 1.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c585c541c7c259bd15d8903c78d39e2eb28a7d60005640df50552341afe6d25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/ModelCompatibilityDiagnostics.swift: FileTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ModelCompatibilityDiagnostics (13-946). The bar is 500 significant lines; this is 180 over it, 1.36\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":"Packages/OsaurusCore/Services/ModelCompatibilityDiagnostics.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dabab2a0bcfbf9ff5f97b8a447581c3fed8852bc75efb8d6092b37099ab950c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteChatRequest.toAnthropicRequest: MethodTooLong \u2014 toAnthropicRequest runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5366}}}],"partialFingerprints":{"codehealthFindingId/v1":"114d96c766006e50c922371ba8ab7621ce131c70cb3437efc8a03cd8d51d7ea3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SandboxExecTool.run: MethodTooLong \u2014 run runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e1cd1cafe078d6e786df043a6520f864276316b116f3c1ca15565ad121c3b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/SkillManager.swift: FileTooLong \u2014 676 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: SkillManager (66-1021). The bar is 500 significant lines; this is 176 over it, 1.35\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":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be31e09c26da7899186dc629c653a714b6fb40a664088c631406f7ea2d488dc8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/RenderChartTool.swift: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: RenderChartTool (13-996). The bar is 500 significant lines; this is 175 over it, 1.35\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":"Packages/OsaurusCore/Tools/RenderChartTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"157af3b4adb85c459915315df81a761692ccae27d3214d839e52a83679fa7785"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChannelConnectionService.diagnostics: MethodTooLong \u2014 diagnostics runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"8629ad4eae59be2d72c6f5809a05c73e024babde120d2c20dff9627787e4a427"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MockChatData.makeAssistantTurn: MethodTooLong \u2014 makeAssistantTurn runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/MockChatData.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae266d079c49ca98ebb0b8bb5c5840858dd53be8c79f2f19759c923b8f263ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentChannel/AgentChannelWebhookIngress.swift: FileTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 174 over it, 1.35\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"359b2f5c093310cf07cab9e357597bd12150549784fbeecd21f2705578a1f394"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ImportCommand: ClassTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 139 over it, 1.35\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1ca585c8363c340821ad07b284c0a103045d13142db170c5da733da29a5f3d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RequestLog: ClassTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 139 over it, 1.35\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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d3bb5a3a9e113706ed528d94f86f3d10dbfc96af75e044379ff09a337dd96b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/PrivacyChecksums.swift: FileTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: PrivacyChecksums (23-949). The bar is 500 significant lines; this is 173 over it, 1.35\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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ec3487fb4ddf53c3586cf7f8867dba489f9c9d1dfbe541acb0b47dc7c1768e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemPermissionService: ClassTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 400 significant lines; this is 138 over it, 1.35\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":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c4c49d84c292bcaffd52a2cb239a76003e6b869120a590fdfa9d55bc90a168"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EventEditorSheet: ClassTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 138 over it, 1.35\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":"Packages/OsaurusCore/Views/Event/EventEditorSheet.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a88a4d876f2acca5aafd7ba479dbd9988c18ed80a37ace868f68bc2ab755a58"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SpeechService: ClassTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 138 over it, 1.35\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":"Packages/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"e429dcbbdeb8f03f586f138ccf3e5e6f1475ea8efba3e1a3cac3e22db413150e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditProviderFlow: ClassTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 138 over it, 1.35\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1255305969c16dd4d118106fa7afe48b4c589e6b9937c2eb9836979c0cacf4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Context/CapabilityClaimsEvaluator.swift: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 172 over it, 1.34\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":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa24a82f4026d51265ae797435ee6aec6d7f4b0a46500b7883ea9307060e50f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DevicesView: ClassTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 137 over it, 1.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DevicesView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"938e4b65d4e0a1e8e64d6aa120096e723c64d01cb8c6d437d506e058f45cf695"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Memory/MemoryDiagnosticsViews.swift: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 170 over it, 1.34\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":"Packages/OsaurusCore/Views/Memory/MemoryDiagnosticsViews.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"721a098041dfaf29e5fa7e48841645d4e0fedc5b20c2713dfbf6a3f14a0e58f8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppleScriptEvaluator.run: MethodTooLong \u2014 run runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/AppleScriptEvaluator.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cbd0178ef6230c6a54c659fd4c63337ce5d5b89b58df777e68e7b8afe3f0c7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Registry.snapshotDiagnostics: MethodTooLong \u2014 snapshotDiagnostics runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"75647abf8f86fd94b2be596353a0741a6cd091ab22aed008c25b5722c1aab2e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Event/OsaurusEvent.swift: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 169 over it, 1.34\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":"Packages/OsaurusCore/Models/Event/OsaurusEvent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4c71493b6eba4e085908813eb2e0fb20f32a495991ffa22d2c4c3dff11d465"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Event/ChannelRoutingSection.swift: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 169 over it, 1.34\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":"Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"443d9d3812f3cab89030f43e611fcccde7e40959f08aadf40aeb1a280f013caa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/NativeArtifactCardView.swift: FileTooLong \u2014 668 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: NativeArtifactCardView (16-902). The bar is 500 significant lines; this is 168 over it, 1.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fdbd940a60d5a0d573ae809ea8207b31d75dd86ba2430362126e6815c25419"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalReport.swift: FileTooLong \u2014 668 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 168 over it, 1.34\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f6c754e1e3dd59636b1f51c18ff19ea1d547b5559b3cf4982487d8c2674dee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalAgentBridge: 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":"Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7097bab6388cdc38687088cd3c8522042bd190de82fa1b0f28a6a783697cef1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DOCXEditor: 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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2f6d86ce48f08f6244aa23bb3f440af8eee907b9e76aba11911a60b7802db0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskDatabase: 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":"Packages/OsaurusCore/Storage/TaskDatabase.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee82cd39b1ac4643d525fe8cb6f60ab70d4e7ecc3ad17275097dbbe32a41597"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScreenContextDistiller: ClassTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 133 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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f4fc6ca35265c6b06dca5dc031f8b3dc09505bdfd2b88772bfdbf3b84c61e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleHealthEndpoint: MethodTooLong \u2014 handleHealthEndpoint 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16724}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab73b9cb28c0db9820da1fa680b8d6a41603b8995b318ee7d696317ef99bc6c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContextCompactionService.summarize: MethodTooLong \u2014 summarize 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":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c7145ea9ab69e829a343ca3e226bf1e41c9d3daad789d321806a9040f6f619"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TelegramLongPollTransportRuntime.runStep: MethodTooLong \u2014 runStep 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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"79169174e6661e92b9cb482e8133dbc3d449c0187747bac26c69443c16653cf6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReadKnowledgeTool.execute: MethodTooLong \u2014 execute 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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef71d2793008a966a21e7af927c0e81335c4a20840fc55a14c12c5678e86e8d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LocalAgentBridge: ClassTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 131 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":"Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ab7e10c1f6cb331ef0d16a22b7a337724a3793bdf9f631e4c8ba6787e59532"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SubagentConfiguration: ClassTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 131 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":"Packages/OsaurusCore/Models/AgentDelegation/SubagentConfiguration.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"050564bba4a2788c2f8884f4695bdc7d1f3c8655e65617ae6de1d99183ed8468"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FeatureTelemetry: ClassTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), 82 methods. The bar is 400 significant lines; this is 128 over it, 1.32\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":"Packages/OsaurusCore/Services/FeatureTelemetry.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5d7280cf70250f3639e91b24f07d3931566579818c0947a39b90a12dab0a08"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AccessibilityManager.traverseElement: MethodTooLong \u2014 traverseElement runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a39e06a22cd479d05b68b19a0c8b40d5328e2547a9da92700db0ce3e5dfd22"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteChatRequest.toGeminiRequest: MethodTooLong \u2014 toGeminiRequest runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5622}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba80545fac1d09025a457279aceeecd3b57f41b147fa5debdfa875c5d3e2b90"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EventDetailView: ClassTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 125 over it, 1.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Event/EventDetailView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9775b3e30b80dbd40d194102328108e05e2bcf175e8c270290d2c2f84e60954"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OsaurusInspectTool: ClassTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 125 over it, 1.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9531352f0df7c67cc04cc42ecd1b62b036891d0d690570dcf1af2ff8a4ed2f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileWriteTool: ClassTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 125 over it, 1.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":2689}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83d82d1cf5cf0019d2bfac3778d3f3fe3b2874beaf4a4f45a369948cc569bdf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Library/WorkflowLibraryKit.swift: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 155 over it, 1.31\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a913193a77559f20be4b242bddacb0127b9d1870c5e9689c70b75e13c58411b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SubagentConfiguration.mergingEditorSnapshot: MethodTooLong \u2014 mergingEditorSnapshot runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"Packages/OsaurusCore/Models/AgentDelegation/SubagentConfiguration.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6d191b0603c5907d4a3b327a46a27973d4771982ffd7cbeef45bb167898b77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleEmbeddings: MethodTooLong \u2014 handleEmbeddings runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7812b620792dbb09eda9f05267086e26113fc731dab26623ccb4e2bfb061e082"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MLXBatchAdapter.additionalContext: MethodTooLong \u2014 additionalContext runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"490e34bd02b4026c3027fc525fbf7152b9ed1220fb2af23786f6e84a6de487c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Voice/VoiceComponents.swift: FileTooLong \u2014 654 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 154 over it, 1.31\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":"Packages/OsaurusCore/Views/Voice/VoiceComponents.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2d36421baba6f9b1ff5b47155a977d0c0fbb5590cdc9e802e3088e3755bcf1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflow/WorkflowDraft.swift: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 153 over it, 1.31\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":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57959d99ed24da82be60c2029ecd1ea549808c0c4bd4314f44e4d4fc244c0965"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Credits/CreditsView.swift: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: CreditsView (5-937). The bar is 500 significant lines; this is 152 over it, 1.30\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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c82fa323c9dbacb2f3703de65be15593ad21e97d6651c1f75e43679d90cbd7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Declarative/OsaurusConfigDocument.swift: FileTooLong \u2014 651 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 151 over it, 1.30\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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b7693f1b64b5bc38ae3ff663cb2e99822e75f42c546639a103b7d616d9ab55"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OsaurusPaths: ClassTooLong \u2014 520 significant lines (blank, comment-only and punctuation-only lines excluded), 158 methods. The bar is 400 significant lines; this is 120 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/OsaurusPaths.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd59c4b5dfbeb4fc893b65f0175cac7ce6005f3613beacf82938eb23f4740d59"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatEngine: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"79eb4369bf45f406ec4a243908be1017a7c3e33f22966339d3486edb64685466"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkflowDraftStore: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/WorkflowDraftStore.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e84fb39671cc6e81be8cac314052e8d8dcb4c586a045b41170fe704edf66ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeMessageCellView: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01f9309746541547b3af8eba221f42646fe65e107e5db5e2cb18d3318038a1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OOXML/DOCXEditor.swift: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: DOCXEditor (14-984). The bar is 500 significant lines; this is 150 over it, 1.30\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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"090c9405cd6559ff27c54cbcbc858baf149362c5807ad9b0a016bbae58d4d482"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatView.messageThread: MethodTooLong \u2014 messageThread runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":12817}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4e6b6d60127bae0134ea2076f71633a1e6814d44973093472647498b13ce96"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runScreenContextCase: MethodTooLong \u2014 runScreenContextCase runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d385626bc086d1813d0d514254b7e3f628fd5e67eaab6a71a4b8237e5af130"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflow/WorkflowValidator.swift: FileTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WorkflowValidator (35-919). The bar is 500 significant lines; this is 149 over it, 1.30\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":"Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d63a70ba460312bf89e0e4e6d4eae5dc90e228cdd1e33c3fe3a646ae51351d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Slack/SlackAPIClient.swift: FileTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 148 over it, 1.30\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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d5f69584f12aa1ee484d1a6fbbb7b488293489e21a8fc12d5e1a5526cabf7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Configuration/ModelPickerItem.swift: FileTooLong \u2014 646 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 146 over it, 1.29\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":"Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1b18a67a3c2894440ef26a7efe087b2e74f192bacdfa92749a53d4829c8cb4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Event/EventEditorSheet.swift: FileTooLong \u2014 646 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: EventEditorSheet (96-856). The bar is 500 significant lines; this is 146 over it, 1.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Event/EventEditorSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a808a11ca32f61b1734c9e582ad0d8e16af84eb954305acfd60f6d74c529135"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MCPOAuthService.signIn: MethodTooLong \u2014 signIn runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edb69a669ac3af54b0656056315d1763b495f9f23bfd755c87bb617bedf68c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteProviderService.handleOpenResponsesEvent: MethodTooLong \u2014 handleOpenResponsesEvent runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2427}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a30f2531f3191b5c4462c38b73a5fea57bfcdfea410552fbffbd10654dce1e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OsaurusInspectTool.statusEnvelope: MethodTooLong \u2014 statusEnvelope runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbb4d60cba5032ae847bddec300f4873d58ad28e868c935aa59f61e681ab6a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeFileDiffView.buildViews: MethodTooLong \u2014 buildViews runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4293ea5c3508a8ba6dcd83637be088fcf79e00bb86046ef16da175dc78f61c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MCPProviderTemplate: ClassTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 115 over it, 1.29\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":"Packages/OsaurusCore/Models/Configuration/MCPProviderTemplate.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bccb60069c1c3fe21d704e3c65a3041b77d16eb9a817e772a85f1dd15ce24f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Template/SetupChecker.swift: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SetupChecker (70-974). The bar is 500 significant lines; this is 143 over it, 1.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/SetupChecker.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ca955cd860eb7ff99a5435112e5bf44643ca9663ebeadf0136149bbee7ce19"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DiscoveryCenter: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 112 over it, 1.28\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":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be1d6082e65f768aeada6c2934dc28b9d80dacd1a7205934252fed38c98a5fa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentDelegationDispatcher: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 112 over it, 1.28\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":"Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f83f09bdf4c0db5c2c14823b540f8b90d7ab3fb73d541d0be71213f67ea466f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkflowNodeEditor.form: MethodTooLong \u2014 form runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d240105492900ee8b019da0953f3d238e6d7b77c996db1ffef26041307a80f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DiscoveryCenter.take: MethodTooLong \u2014 take runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7595b050b633620c3e9ad7c37a98c143f2a07ef15aacec212b5d6778a41052e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserUseKind.run: MethodTooLong \u2014 run runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad4292f6f77ffab14b2ed24ee50292788627968c92b41394727dd5eefc018f0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runReasoningChannelCase: MethodTooLong \u2014 runReasoningChannelCase runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d444eb1fcdb61cc23e826ef5ccce51bf5262f91aaab8a71bc1671eb3089c428"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Management/SharedSidebarComponents.swift: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 134 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dffeb84fdf88f7eb08d355e91c4eebcf681b51bf10155c4612fdeaff7872965"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProviderNetworkDiagnostics: ClassTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 107 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":"Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b14aac3450c4950db71b756e22aac7c4d435cc4647bc19d70e8f2b387f0bcab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InstalledWorkflowStore: 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":"Packages/OsaurusCore/Services/Workflow/InstalledWorkflowStore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf283a966ca242e9e74e6b8f359f71aa9d38c181853b8f9a2dd8643da8555fbd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Import/ImportCommand.swift: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: ImportCommand (157-851). The bar is 500 significant lines; this is 132 over it, 1.26\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c50dc3f8191b78f5d1f2faecbef5f82be20fc6db62deaacf2b7b901321150be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: InspectionAdapters/AssignedMenuPresentation.swift: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 132 over it, 1.26\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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df0754298fed8a1e5596f48432887629f2158b15fbe210010ed9c0681a81d89"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StorageSettingsView: ClassTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 104 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2fa12ebcf5418b6457faa8dcb21cb7eac6f4c07e5fd5392ed85b7526af95a1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AccessibilityManager.traverse: MethodTooLong \u2014 traverse 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"634f34033c12598abfcc46a59f96712f2c95065ff7f27d59104dcadd0d37ea86"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkflowDraftOp.parse: MethodTooLong \u2014 parse 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":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f371e9b09e6826eea61b0bdb66dc9491ed68ba8021c6cc62e2800a3f2073fb21"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/AgentChannelConnectionCenterView.swift: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AgentChannelConnectionCenterView (52-939). The bar is 500 significant lines; this is 129 over it, 1.26\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":"Packages/OsaurusCore/Views/Settings/AgentChannelConnectionCenterView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57633093f0e06cd20fb19935654deb8afa776c4c8fe946e9244d1f684771c81"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppleScriptToolDispatch: ClassTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 103 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7547ca4244b54d3c769c16a7b89b25d7d1aff48b9af894f52c897a9cac56b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/KnowledgeWriteTools.swift: FileTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 128 over it, 1.26\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":"Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1902c22a22a6337bb875773138a731666a1d9d4e5cd864f3c63dea3be0e9cc5f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NativeFileDiffView: ClassTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 102 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b3f2db6f97ab4582e9d93c407ea38dc89d2c029a638b8e4294b481deab0474"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/EmailSettingsView.swift: FileTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: EmailSettingsView (16-907). The bar is 500 significant lines; this is 127 over it, 1.25\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":"Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf027f7e059bf400e7d3bff6ddac92604588e24da10eac53f8187786e53d6d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SandboxInstallTool.execute: MethodTooLong \u2014 execute runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3588}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ea3408874753a42330b1c0ce36d9e8fca933e20898effdfd8ee4361426be46"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSession.runHarnessTurn: MethodTooLong \u2014 runHarnessTurn runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSession\u002BHarness.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e674277ff8ee270cb17483b7efda55bd8c5eed876bed75c2294052b4ea47f9ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Model/ChatModelPickerCard.swift: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: ChatModelPickerCard (225-812). The bar is 500 significant lines; this is 121 over it, 1.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc55e32f8ca319f524106b5097a146052572efee24840153932799f0268db26"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/PrivacyView.swift: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 120 over it, 1.24\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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02be3a104cdab3582fe8e1e11cdd55ab5b6a60d51d28b5f9998c0fbd1cef1360"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleAnthropicMessagesNonStreaming: MethodTooLong \u2014 handleAnthropicMessagesNonStreaming runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18083}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd391ff6ebdeb97d50b3238cc635de95b8dd8ecb4af7f95fdec2ba6753b8415"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChannelInboundRelay.deliverReply: MethodTooLong \u2014 deliverReply runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"858e8e99273d853f3cf1450e540478ccc54dcbc43bb05d63703046b01c6bd9da"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MicroPerfEvaluator.runCancellation: MethodTooLong \u2014 runCancellation runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/MicroPerfEvaluator.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d7b0e2976b4b01c841e9c5b41e08062eda1ea011055573de6b58041faa7432"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeActivityGroupView.configure: MethodTooLong \u2014 configure runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"30332e6279866f261ee50a51f38abce1d88be331a0ab48c01a3a0046eafa092d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Documents/PDFAdapter.swift: FileTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PDFAdapter (15-836). The bar is 500 significant lines; this is 117 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":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5cff2de6ed5585843b1910a079fc69d0cb51dfeab49f8eafd43ca167a1a819"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Creation/AgentDraftPanel.swift: FileTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: AgentDraftPanel (15-867). The bar is 500 significant lines; this is 117 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":"Packages/OsaurusCore/Views/Agent/Creation/AgentDraftPanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dba5f1c96fb582463e5923734dea82c8e805b279c0d46b0058156cdbb6a92f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Setup/AgentSetupWizardView.swift: FileTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 117 over it, 1.23\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":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff82f370bbbbf35bc5690401b75ca94f45263a8255b9e0fab2739845508e9150"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScreenContextDistiller: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"75eb46faea2e8d050d743d05dc1502d2b54e0de0495de108101d0d0635550ce9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkspaceRosterStore: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e381687c0a653b56b6016f97c154f407ec75b078312bfd3a1e6e147d7262b65"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkflowsView: ClassTooLong \u2014 493 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 93 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowsView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2924288852e28703845ed3854cac224de7dee2938a793f85aa19487a492552fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Event/EventSourceEditors.swift: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 116 over it, 1.23\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":"Packages/OsaurusCore/Views/Event/EventSourceEditors.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7ef2957a2c485b6fb74df0389d09022e8c86410c4b8809ab49a80057a173eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DesignSystem/SettingsRow.swift: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 115 over it, 1.23\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":"Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79090677bc9fb074845ec52a2fd9b6357eafe54552393876acabc090ca9c4ebd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleWorkspaceAgentRunEndpoint: MethodTooLong \u2014 handleWorkspaceAgentRunEndpoint runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6588}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dcc3e0cd8f2661b33ceee47d60849c1a48458f0310e76b92b8b28b73da3c45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/SyncHostRunner.swift: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SyncHostRunner (16-907). 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":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff04ccedafda200f7d2b54e796b5212224505a0009088ebf9fcbd386fe9bf66f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentsView: ClassTooLong \u2014 491 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 91 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db54b89ec00bdd4fe73a02713b10540026fafa6a0be5bb62a821b43c557bb1e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AccessibilityManager: ClassTooLong \u2014 490 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 90 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2d9b97b03a9c6ba6e66cd5a05b3171ae9434ab203c4d113e26f2a90a96f960"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/SharedArtifact.swift: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 112 over it, 1.22\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":"Packages/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5a5d403cb5b56f2a5672cecafb6350d99d07e207b2a1a5c4559dea723b62a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/PrivacyFilterPipeline.swift: FileTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: PrivacyFilterPipeline (314-1250). The bar is 500 significant lines; this is 110 over it, 1.22\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8756cd03249e1bab05c4aa5bc7e14a8b909183f50e8c2a7c996e04be03b10d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/SyncConversationMapper.swift: FileTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: SyncConversationMapper (35-893). The bar is 500 significant lines; this is 110 over it, 1.22\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1714363c131c4a53bbe85bec031a26ea8b2ed28fc2bd5baabba26d30e70c4f31"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/PrivacyRulePresets\u002BAsiaPacific.swift: FileTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 109 over it, 1.22\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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyRulePresets\u002BAsiaPacific.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfedb5d9621a7b08d7fdb73cd00f3a02844e5048af18bd2b4f8f2b7f5ba7e1d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppleScriptMailService: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 86 over it, 1.22\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":"Packages/OsaurusCore/AppleApps/Mail/MailService.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a4314f4f0afdffa9a2248fef00458f8df572f8a2cd13d45fb4996720190d3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tool/BrowserToolExecutor.swift: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: BrowserToolExecutor (67-836). 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":"Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed741d831c0a0033d6529c596770713ccc3eab536b4033c2011c9ad9c68d4d00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/AgentChannelSettingsComponents.swift: FileTooLong \u2014 605 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 105 over it, 1.21\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":"Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97049c6166d245364d92a233fab93f9e0d02d79e229eedcbad4695617c7ce8c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSession.finalizeRun: MethodTooLong \u2014 finalizeRun runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":5881}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7688c1725d5715607c0a04e922cffadb31b8b542f8833dcd54795abb3adbae4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSession.send: MethodTooLong \u2014 send runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7367}}}],"partialFingerprints":{"codehealthFindingId/v1":"7392a12aa4e57b3f8ebb265f760360ac47f39ba63f69a8073a4ad8a81d01e8ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Router/OsaurusRouterWorkspaceTypes.swift: FileTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 104 over it, 1.21\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":"Packages/OsaurusCore/Services/Router/OsaurusRouterWorkspaceTypes.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31a76b40871ed7d0ffff7279e464c962009d072bafafd619f4d7624c507db4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Router/WorkspaceAuditLog.swift: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 101 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c1eddaa04c6dc20f0ae2165f8e3792c6b4ee06891627c5c9547caee852a0bb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Template: TooManyMethods \u2014 36 methods, declared across 2 files: Template/Template.swift (24), Template/Template\u002BAgent.swift (12). The bar is 30 methods; this is 6 over it, 1.20\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":"Packages/OsaurusCore/Models/Template/Template.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d043e8cecc182a7b380806fc635701b6d62d625056b8d63af874c2ac217637b3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkspaceAuditLog: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a0eaf15c0afcdf1b3288dd63d903897b1a8d3e0287e218e870ac66eab38829"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncHostRunner: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"21839b8f0659350703f57625da918cb600935d1cd5de2608b1af12eef48e6575"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentDraftPanel: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/Creation/AgentDraftPanel.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"214dfe4e772cabe9fc78066cf23a175f7e7b996b137aba391d771fa490308f70"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeArtifactCardView: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f1e81f0b6885f73307b19e911694d41ead891a11d0504513539f31ef7b0516"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EventDetailView: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Event/EventDetailView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbc7802247e773591ef266b2edb042cc83269d63f6ad378cb0703169f5983a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryView: TooManyMethods \u2014 36 methods, declared across 2 files: Memory/MemoryDiagnosticsViews.swift (21), Memory/MemoryView.swift (15). The bar is 30 methods; this is 6 over it, 1.20\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":"Packages/OsaurusCore/Views/Memory/MemoryView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4620a29d3debc1261745b891ca53d0cb84059c2ad45d4432c4bca128d0f46c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleAnthropicMessagesStreaming: MethodTooLong \u2014 handleAnthropicMessagesStreaming runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17931}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fefab960cdf4dfc8dc45d18385eeb6d82733cea46104b781d6d354c7131367"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelRuntime.estimatedArchitectureKVHeadroomBytes: MethodTooLong \u2014 estimatedArchitectureKVHeadroomBytes runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":3593}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dd444698a6b06d3f21b5be3a37a511f82e9fbb07510d4482ac63c7415eed01"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/ToolPermissionPromptService.swift: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ToolPermissionPromptService (26-1004). The bar is 500 significant lines; this is 99 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":"Packages/OsaurusCore/Services/ToolPermissionPromptService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefcc3dc46e28236511531e6b1ecb75685f519ac788061c3f7c345c4f932e3fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Library/WorkflowDetailPage.swift: FileTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WorkflowDetailPage (17-857). 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowDetailPage.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f14d2b1e0b384abbbc18a3239cc2a3dc3a0e65ee8cfecc27ef45fe548d050a1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InboundSharedRunBridge: ClassTooLong \u2014 478 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 78 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8b4c2e2a799fc7abbaf99acbca1ca907177d6c958a2e2f369e7bd29570d8bc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelRowCellView: ClassTooLong \u2014 477 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 77 over it, 1.19\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":"Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd19c76174f8d1ef75e2e87fa8508d660c88bda624cf0ae2f410cbd311267ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalRunnerCacheProof.swift: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 95 over it, 1.19\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9891a5fad0254f4a61bc5696dbdf37a6ba32d84916f390e920eb63cbc81dca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileEditTool.execute: MethodTooLong \u2014 execute 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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3747}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ec1b7ffea41d3c5980c2fb05b28f1b1d5ec43dd2ca874eafda1704149f6f73"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Functions.call: MethodTooLong \u2014 call 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":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea1755d0db61e43bc754daf8d84ef2f88435498fe6256fbd6de4edcfca918d1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PrivacyFilterPipeline: ClassTooLong \u2014 475 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 75 over it, 1.19\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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8e4b2517c90ce8ceaaf15193217d1f41b439d47bcf7aa398520c99191bf856"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/SystemPermissionService.swift: FileTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: SystemPermissionService (135-1132). The bar is 500 significant lines; this is 93 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4c05573c64d76ac3f23afc732510c7c76c9e5f6ccf9d9fee626f6911aabc31"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EmailChannelService: ClassTooLong \u2014 472 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 72 over it, 1.18\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":"Packages/OsaurusCore/Services/Email/EmailChannelService.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"185b072bd34213495c7fec4517acd4aa4f34ddb3be978a9fdfd96e244700d1e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleGetAgentEndpoint: MethodTooLong \u2014 handleGetAgentEndpoint runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f029660eb9a1acd40b27ec6419c1c246225b8ad369c3bc993944eb9a8f8f293d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleImageGenerations: MethodTooLong \u2014 handleImageGenerations runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13601}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d5c4f9762c70e013b7c4c4938c5d0039d8a91f3fd799af50be54ad55161475"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CapabilitiesLoadTool.loadTool: MethodTooLong \u2014 loadTool runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2ed623fa40b4ce880b354630ff9a858f98c1d4f1d85539cef22aa239b3357c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatHistoryFilterPicker.body: MethodTooLong \u2014 body runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfece1e8fcd5ccb7e9ef1d11a7903d6b08f7b9426493c575548abb609a12a202"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Theme/ThemeTokens.swift: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 87 over it, 1.17\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":"Packages/OsaurusCore/Models/Theme/ThemeTokens.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e57904757140eb6047722d700f82619269f291f3970d37b911e3c27fbeeb98"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XLSXAdapter.renderWorkbook: MethodTooLong \u2014 renderWorkbook runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ffe7542666c5cfebdc52f444cfdfed61c3364824b1bfc544d429d7c5b3e6d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OOXML/XLSXEditor.swift: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: XLSXEditor (15-821). The bar is 500 significant lines; this is 84 over it, 1.17\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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf2d235c4b9843423131416283e0d555856548c831da6e3ec52d53be95858b9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StorageKeyManager: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Identity/StorageKeyManager.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a7c57637d070ca234af5749489cfee0ed6c44d80c4e1fad5ae66714667c99b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SearchProviderManager: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/SearchProviderManager.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0670fbd06e52d23af12177cc54c8cfbf5ef409de63dfb19daf951f3c130835"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkflowsRegistryAPIClient: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"706f4a4e93af97bcd5b6742db6285f85df0d3aa4a4864a1d9281ddcdc09609b0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProviderEditSheet: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"795911fa4371b446d8fc03915634b5cf1d1d589bfe3b859bdf830e3e08e74f49"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SlackSettingsView: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9354ca2d4d71b2e34cfbd5101f93c9a1f72523e386f65bca19005854ecf820d9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DatabaseImport: ClassTooLong \u2014 465 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 65 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"090107497b1b16a1fd2c6efb3271086675a46651c4e35db2423ab1b73eaefe7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Model/ImageGenerationPanelView.swift: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: ImageGenerationPanelView (227-841). The bar is 500 significant lines; this is 81 over it, 1.16\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":"Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f94612857684c5057692d7c5fd124cf224383473a1bbe524f110fdef4b717c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MCPCommand.execute: MethodTooLong \u2014 execute runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/MCPCommand.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44529f181025cf2e8f02beeafc5df485e4838fb71034a72e0fc589ecc6c8404"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeCodeHarnessAdapter.launchPlan: MethodTooLong \u2014 launchPlan runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Harness/ClaudeCodeHarnessAdapter.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eef24696113b10b2e66e392db3a1f269c203732c23ac75a6fd725083b1de555"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChannelMessageStore.recordReceiveEvent: MethodTooLong \u2014 recordReceiveEvent runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"5408def15c2c3cca0500f6dedbf24abdac3e4f8b7ede9a30af64dfe48aa182ff"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CapabilitiesLoadTool: ClassTooLong \u2014 463 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 63 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"1370958f299f3146c27607c9ba5f50573762a85f29874b79f7213c7f5df06f19"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CatalogLibraryFixture: ClassTooLong \u2014 462 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 62 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e50d28691803dfaca457070d02819a97985a43344593c6dfe756c29add44900"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileEditTool.editDocument: MethodTooLong \u2014 editDocument runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3999}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c90c0e2f1d9de8ab5dca0288d6e17e8faeb734abfb53c5aad8a00a60d8d91c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SpeechService.startStreamingTranscription: MethodTooLong \u2014 startStreamingTranscription runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"Packages/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1f9394f776e4cc462534cf7f2d2ad0c3b4544077776d97d6a0a4656d7373b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncManageFeed.perform: MethodTooLong \u2014 perform runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdd4edec547b1a85090e1089c09e44a14374927c47161913e26ecfa5178aeed"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HiddenAgentHandoffKind.run: MethodTooLong \u2014 run runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"Packages/OsaurusCore/Tools/Handoff/HiddenAgentHandoffRunner.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e140da4a17a329a7daf07e9396846b9151abc1a230bd4c27ce97753ba5b01f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/SyncManageFeed.swift: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SyncManageFeed (19-781). The bar is 500 significant lines; this is 74 over it, 1.15\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":"Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db601c0c756cc961e2650be67ef2e2c4781a1a91a3b966a1d9694ea373cc288b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkflowTestTool: ClassTooLong \u2014 459 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 59 over it, 1.15\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9614ddf37bef766530ff24879234209e3475676a8599ef2b787a0e079354ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Router/OsaurusRouterAPIClient.swift: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 73 over it, 1.15\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":"Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab99d51047a0bc98dfa6c57d15263a508503ad45ee32abb61bc247fb525a572"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflow/WorkflowDiscoverTool.swift: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: WorkflowDiscoverTool (16-600). The bar is 500 significant lines; this is 73 over it, 1.15\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":"Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff08de4514bc33e45d4ddacd1d45ce8e3153b1788f5b8cc3f153f31d2089882"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/CapabilitiesTableRepresentable.swift: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 71 over it, 1.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":"Packages/OsaurusCore/Views/Agent/CapabilitiesTableRepresentable.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead13841de33306ff230ed3871012403d24265912fb71adce0d9241fcf884d33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelRuntime.resolveNativeMTPLaunchPlan: MethodTooLong \u2014 resolveNativeMTPLaunchPlan 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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":7084}}}],"partialFingerprints":{"codehealthFindingId/v1":"691e2cebb525a8b2add083de8f956bbc5f72c4dbbf11c109eb7410bbd939edab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MediaGeneration/MediaGenerationCoordinator.swift: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 69 over it, 1.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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0ef24918c3da1050106e3931434fe142492a0891b8758b2dedde45d1ba9f87"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsCLI/EvalReviewReportCLI.swift: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 69 over it, 1.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0914d9302e0fa7146bdee6d24cb88511f3f837a35085e187ecb4474e6aa83a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClaudePluginDetailView: ClassTooLong \u2014 454 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 54 over it, 1.14\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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61738926afde8f5072278b8eb810ce91e805144a3ff41af195dec6b9fc4258e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentTaskState: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a756cb61cc809847cc98d3c3a89799d32a10b488b89e64e100055b701fe331c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryManagementConsoleService: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4359d504e912001f9d05311b57c74330a8074ac6b3d1b0b1aa908aaf545778f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryService: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemoryService.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc047d51d83e0470fce7c084249d18fc138b4cef5fc620febf5b4662995aba11"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DiscoveryCenter: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb73826922f8a4854953e0badb4737edd16e232b52d6f5e712851cbc81684df"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncStatusModel: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncStatusModel.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"635afc9ab3a9770a9744ab8f9103731da41471158599961d463a2a70bf0ffb3f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TextSubagentKind: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a814a6191bb1ac134335f0393ab419cea08672bee2ef5c1872f150e483f9d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Inference/CoreModelService.swift: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 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":"Packages/OsaurusCore/Services/Inference/CoreModelService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d626e2d99b08e3a452789cd4d356c6afe16c6a876d2d2c2b57c94571f71fde77"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SandboxPluginManager: ClassTooLong \u2014 452 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 52 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Plugin/SandboxPluginManager.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5d63b9dde43b7e1364abf5244288728b3109b4b91f86aea6fad386a36fd9b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Onboarding/OnboardingFirstRun.swift: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: OnboardingFirstRun (21-824). The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbcf0042d11ebd043679f464d0951753c989573331117c805045bda6897f2ef2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolIndexService.exposureDiagnostic: MethodTooLong \u2014 exposureDiagnostic runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Tool/ToolIndexService.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"152f1e63951869fb961d67fd25fe9b2800cdfeddea99d4a3b50869c3aed7de4e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSession.runVideoGeneration: MethodTooLong \u2014 runVideoGeneration runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad824cdea0b88113af81f29674e6acc45ad4a56b70c9f80fcf5fb3c3dc47da7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeActivityGroupView.buildViews: MethodTooLong \u2014 buildViews runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa7004fb5b4c9246677533f5a47c801157697ff3eb2d1c3406e2766543f79ae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShareWorkflowSheet.liveView: MethodTooLong \u2014 liveView runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be4c57c69e01b25e17ec7a49bc2164b92e6419811c8d3559482528666737ee0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkspaceDetailView.poolSection: MethodTooLong \u2014 poolSection runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"86111506fcf9c1c5e7771806d66c12d5cc09627df8036939f6fc0be6d080ce13"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.dispatchCase: MethodTooLong \u2014 dispatchCase runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3d451bd77995bc5643693d692c635257a7e6260dcbe7f94657ad4ad6f9e89f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Configuration/ServerRuntimeSettingsStore.swift: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ServerRuntimeSettingsStore (24-983). The bar is 500 significant lines; this is 63 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9180e8352451155678c5de4d3fd6ba27a17fd2cfdbbf191ee2cb7869c0c86e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Plugin/ToolsManagerView.swift: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: ToolsManagerView (23-712). The bar is 500 significant lines; this is 63 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6b52da49bc0065278e5d6f2f3af950de114d8b4109ff03fd5d5a16f8e1a036"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkspacesIntroCanvas: ClassTooLong \u2014 450 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 50 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe18ac8a76fe03146d323e763be25335cba3464e06f3f6725a6c6afabd19482c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/FeatureTelemetry.swift: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: FeatureTelemetry (98-1235). The bar is 500 significant lines; this is 62 over it, 1.12\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":"Packages/OsaurusCore/Services/FeatureTelemetry.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e48f660c694bae6c0ce21fa1e20fec3f46c07ae4f235ee853c907a93ce78da4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workspaces/WorkspacesView.swift: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: WorkspacesView (15-586). The bar is 500 significant lines; this is 62 over it, 1.12\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":"Packages/OsaurusCore/Views/Workspaces/WorkspacesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2045a31f75750328a8ae4471babbdabbfa9cb9ffcebfbea67285d73e85f50f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DesignLibrary/CatalogLayoutAssignments.swift: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: CatalogLayoutAssignments (5-739). The bar is 500 significant lines; this is 61 over it, 1.12\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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/CatalogLayoutAssignments.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6640b79a373ca4992fccc4b598d3fe8533f9d7d6446c1531500f77be8bf10d5a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentGenerationSettingsEditor: ClassTooLong \u2014 448 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 48 over it, 1.12\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":"Packages/OsaurusCore/Views/Agent/AgentGenerationSettingsEditor.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f534465b2c288eec015178a88998addd27b0d502e6079623bcc14e4ece2028"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CSVAdapter.buildDocument: MethodTooLong \u2014 buildDocument 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":"Packages/OsaurusCore/Services/Documents/CSVAdapter.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba614fd6e9106c3293f17d96df23c1cb85984cda31e51dc1613b3522f54329ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocalGenerationDefaults.repairLagunaXS21TopKIfNeeded: MethodTooLong \u2014 repairLagunaXS21TopKIfNeeded 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":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2337f7dc30063f50618205be93b83a11a6cf4e98b1a90cb265e33c502df81e6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PluginDetailView: ClassTooLong \u2014 446 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 46 over it, 1.12\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fbf8361130cdae56e139647b9abb4d37b6b3fc64bd36248232ac196462b360"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RouterAccountUsageCenterView: ClassTooLong \u2014 445 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 45 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"94454f01f06a7d7a320bb7d4b5e72ddd10b3d9285d1c2bba7f319b07e884558b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentDelegation/AgentDelegationDispatcher.swift: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: AgentDelegationDispatcher (140-995). The bar is 500 significant lines; this is 56 over it, 1.11\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":"Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba63e8b75aace4e47ad43fc7626157408ffb8fb8ab82eec1d921426fd9f177d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MLXModel: ClassTooLong \u2014 444 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 44 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/MLXModel.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"728ddd5646491a877ce03bac6b5fa57d3a9d8218a3c1aa7336bfc84240d7ec8b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkspaceAgentAccessHost.redeem: MethodTooLong \u2014 redeem runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6c28e9f0640745d28731b4ce191dcb0ad4cdcbabcdfeb3571fd6405cebfde9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelRowCellView.layout: MethodTooLong \u2014 layout runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"799c342a38dd76213d50e5de5ddd672764761a87fd25914f792985cb9767ce87"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.runArchitectCase: MethodTooLong \u2014 runArchitectCase runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerWorkflow.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"feeea20f78953b50b61eb8c9ef9cb70862013968a86a6832322b56cf0bb08a80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Provider/ProviderNetworkDiagnostics.swift: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ProviderNetworkDiagnostics (83-746). The bar is 500 significant lines; this is 54 over it, 1.11\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":"Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba361aac6db37e97d313fd5bbd0136dbc162e8a10a033349f4d87199e4f7d8ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tool/ToolSearchService.swift: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 54 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Tool/ToolSearchService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f96153722196ba67ac2ca4760b680d0952b587062eeca7873502551297fa8a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SchemaValidator: ClassTooLong \u2014 443 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 43 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SchemaValidator.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f25bae7e6562586e806973994bbf67aafccd69c5ec8ecaf948e99c55e5cf14"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatSessionImporter: ClassTooLong \u2014 442 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 42 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"68751a8425927fb82d04c3d773b5827a5a0bfbff31cfb37b1d87b29b66852355"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeView: ClassTooLong \u2014 442 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 42 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"04aaa7b27930a5c736adba45867494f40d77b78255b488a2187ad62c09070e5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/NativeFileDiffView.swift: FileTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: NativeFileDiffView (89-818). The bar is 500 significant lines; this is 52 over it, 1.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1cfc94b3399dcdd446e6b11350406bf671228ddb799a99f09d137dfc2d20c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Email/EmailChannelService.swift: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: EmailChannelService (113-737). The bar is 500 significant lines; this is 51 over it, 1.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Email/EmailChannelService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e70a24c105b0157d5a461c17fae221d6c1771b4be8364b8164bef8efcc8d02"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OsaurusConfigTool: TooManyMethods \u2014 33 methods, declared across 2 files: Declarative/OsaurusConfigTool.swift (21), Declarative/OsaurusConfigTool\u002BHistory.swift (12). The bar is 30 methods; this is 3 over it, 1.10\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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d751ec035ffebaa03471c9c1ddaede9476fa4654884d0f0b8e750362800742"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CatalogDesignStore: TooManyMethods \u2014 33 methods, declared across 2 files: DevelopmentDesign/CatalogInspector.swift (28), DevelopmentDesign/CatalogPrimitives.swift (5). The bar is 30 methods; this is 3 over it, 1.10\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":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79771bbf32b18713cb1c8f15f1820cc9ba4416f89d3aeb144584f20cf26a65f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentChannelCustomJSONRunner.mapResult: MethodTooLong \u2014 mapResult runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d4b60630d30e58cee70157dc25808d77d503494b1ff9ae087d79419cb13947"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageSubagentKind.run: MethodTooLong \u2014 run runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f52abc6311d1414e80172ffd4ea2c7badfbff5032d96c2116fa4be0ba2486b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SubagentSession.prepare: MethodTooLong \u2014 prepare runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db22337bd72362fedc507ec69e6272ad979bd7aab32de133831a8d1f0d498ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentGenerationSettingsEditor.body: MethodTooLong \u2014 body runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentGenerationSettingsEditor.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d061ac80f6e7e0dd9cd7ead619622c28d84838cd4db65d4e0628785d6341d2f8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemResourceMonitor.body: MethodTooLong \u2014 body runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Common/SimpleComponents.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a9add8b051211088596159e1d2ccf458f240280dee333e404e70d2d7f85a4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Router/InboundSharedRunBridge.swift: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: InboundSharedRunBridge (34-754). The bar is 500 significant lines; this is 47 over it, 1.09\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":"Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4208cd414e823b6e8084e61ad5fbb8b8a1369e2d495b294f0db5c1485ea63894"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/NativeActivityGroupView.swift: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: NativeActivityGroupView (18-807). The bar is 500 significant lines; this is 46 over it, 1.09\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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4051ac96e5ec3c7f6b07baca52c75878a6eca76716a8a0a6e3d5a0e091903ef5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ImageGenerationPanelView: ClassTooLong \u2014 436 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 36 over it, 1.09\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":"Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"567e0e1439507c627c0b08c8acc5694576985433ccc301a3db8b68532be7ef9b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DiscordConnectionService.pollInboundMessages: MethodTooLong \u2014 pollInboundMessages runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2d8256a29dc4dc644d4c8675d0ec5de3615a653f47ebfb551c37174d5bd1d2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GitHubSkillService.buildManifest: MethodTooLong \u2014 buildManifest runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93c0b0b2dad4007356579eb7af82d1f85fb5b585556b25973cf10264756f655"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DecisionService.execute: MethodTooLong \u2014 execute runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/DecisionService.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8edcd1ecba91dbd8145675e972eb8c0a50bdef54688a8d2857ee2461ee82004e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SlackConnectionService.diagnostics: MethodTooLong \u2014 diagnostics runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"b136b7c2296bd6c827778a47ab06e070c47593ab26d8c5fe9177c49b878ac287"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TelegramConnectionService.diagnostics: MethodTooLong \u2014 diagnostics runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cf42913fe72ed9461a7a69edc685381e98afdba58475cd28f8ef60293408e4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeThinkingView.configure: MethodTooLong \u2014 configure runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8c2796385c7f9070081b5f520848672538deb31400d2aee68e7473d068c4a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ToolsManagerView.updateFilteredLists: MethodTooLong \u2014 updateFilteredLists runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6af97e956ac16e8a65af03d043e093251e46c17841f98f78022ee3d313689b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Perception/ScreenContextDistiller.swift: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ScreenContextDistiller (20-964). The bar is 500 significant lines; this is 44 over it, 1.09\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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f07e2eb069b09afc51935b632a1ec9008d101a2bef3d0567d7d09cc037f59e0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkflowFlowViewer: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 34 over it, 1.09\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":"Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowViewer.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc64d9d475c606b60bbfcfbf2e872ef41ee19f03f73d2e560d93e0e06a18c51a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ComputerUseSettingsView: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 34 over it, 1.09\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":"Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38c4bb7e0f1a6765b02cbafac72d591e9b820470973abc529a801dad279a78c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkflowDiscoverTool: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 34 over it, 1.09\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":"Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ed6ca650d03e59a6a252860e9ef9d94c3d6921e095a595a8a3cb25015212f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Provider/OpenAICompatibleStreamParser.swift: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 42 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc0528377a5ef99cbb0c578fec1bdd090ce822815c220308d64fc5523b9d6c0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BusinessDocumentStudioService: ClassTooLong \u2014 433 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 33 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/BusinessDocumentStudioService.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3fb241203ef5da90fb1adeca5f16771b30ef7951076a326d7101d712c30f92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/DevicesView.swift: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DevicesView (17-785). The bar is 500 significant lines; this is 41 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DevicesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"041a0ee728c671928bb2f5fefece53e60e925879ffea2311990240e3813ef014"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utils/MarkdownBlockParsing.swift: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 40 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/MarkdownBlockParsing.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3c1825af0ff7c2659dd80c3224ca0c797b5a08519bd3323cc3a0b35a5fb4f4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleOpenResponses: MethodTooLong \u2014 handleOpenResponses runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18465}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8ad9de120477f1cc9c9fa4b4261330cd01af0bdd24b2cd60b81aedc2024e57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StorageLocationStandards.audit: MethodTooLong \u2014 audit runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/StorageLocationStandards.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"4690fd49888efdbf37bc263d9d83be1654aa87e9b967c89384e5729d4c0d9d0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Configuration/MCPProviderTemplate.swift: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MCPProviderTemplate (82-809). The bar is 500 significant lines; this is 37 over it, 1.07\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":"Packages/OsaurusCore/Models/Configuration/MCPProviderTemplate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e466203b39c56e8a78f4eaa1654df4c7281908de5239aecfd4c172371e8363"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Architect/WorkflowNodeEditor.swift: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: WorkflowNodeEditor (14-490). The bar is 500 significant lines; this is 36 over it, 1.07\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":"Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdc666a9cff774d367c2f0106655261656e589934356ec76bdeeafd9a5d7024"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServeCommand.execute: MethodTooLong \u2014 execute runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Serve.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a7fbe5f611516d217439a581db97d4a99fa1b4428b05a484d83f9140dd688b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigPlanner.planMCPServers: MethodTooLong \u2014 planMCPServers runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eec0e54f02a82375e60c5ab620b027813f30ac04ca50b761bb00e0b036c845a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatImportApplier.apply: MethodTooLong \u2014 apply runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Packages/OsaurusCore/Services/ChatImport/ChatImportApplier.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0af2525f86cc30bf2dc8f85fa4050b9aeb913be05c46da225d18f14d1255953"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteProviderService.handleAnthropicEvent: MethodTooLong \u2014 handleAnthropicEvent runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e417914e403eb3714dd31202df455683c11d4c32d73178e0bf03bacfe3905728"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TelegramConnectionService.processUpdates: MethodTooLong \u2014 processUpdates runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"01153116309b48d6b71715273c82bd3b4885b53d990c79cb5700431787b65992"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SandboxProcessTool.execute: MethodTooLong \u2014 execute runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3209}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cde37ad884a22c2b9cfb3461b8b60457ca1a5ff53d8dadc40459372046fce3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DBImportTool.execute: MethodTooLong \u2014 execute runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"166efaafc402ba0057e8dbca5e68da39f13039c0ed83ea8417e3974d29f0b125"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSession.runImageGeneration: MethodTooLong \u2014 runImageGeneration runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":6923}}}],"partialFingerprints":{"codehealthFindingId/v1":"2245d5c4177e38439711300573b6c7b0d349c3ef21eaf9fa217bb600b3aff203"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocalModelsCatalogPage.body: MethodTooLong \u2014 body runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Packages/OsaurusCore/Views/Model/Catalog/LocalModelsCatalogPage.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"994718b65ab95d6d872431b8f0b5095b22c0e0c583454f4f420643b5f8694acc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OsaurusEvalsKit/EvalCompat.swift: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 34 over it, 1.07\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec5dbfd739b5bc17f0f60c6fc86f282e4243c9a91378680feed1769437b6a4d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileHistoryDatabase: ClassTooLong \u2014 427 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 27 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/FileHistoryDatabase.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0c226e86e89935d6f1b1fd8bf8598233b29aaee1ca6f12d889c611e512f0a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SandboxPluginManager: 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":"Packages/OsaurusCore/Managers/Plugin/SandboxPluginManager.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb0310cea562e8f3909131247e9f4150a275294040ce48f1092015f522cf5a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitHubSkillService: 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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"58125dee13a157237527d2a390c3e723f2ae4c8b0d1f562d7f676a2a3dc9881c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EventRunDatabase: 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":"Packages/OsaurusCore/Storage/EventRunDatabase.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"33466a8ee361725e015363717fec2f95035921e3082b222383c2f0443d1b5357"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigureAIState: 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":"Packages/OsaurusCore/Views/Onboarding/OnboardingConfigureAIView.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c83730466efc151b4c3609be99d7a911d03f166c022455a3ab0674203490cf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: N8nSettingsView: 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":"Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c3969fa58e3818d0f31c8f7602cf2f7feb7628e8deaeb6612127173a99ea2e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SearchView: ClassTooLong \u2014 426 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 26 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/SearchView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae99a3599b8a63b32c18eaa5ce52369e8381f967c59775895e82b4b578f4369"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentChannelCustomConnectionSheet: ClassTooLong \u2014 426 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 26 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"529359446f7e16406c1bb5358665bb293761160be3f01c09b0d87174d28c36dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AgentBridge/LocalAgentBridge.swift: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: LocalAgentBridge (32-833). The bar is 500 significant lines; this is 32 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6993baae0f870068fd2714b6a30792f01ee8607ee3285cb84e57b5c9bf0e2383"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProviderCredentialPromptSheet: ClassTooLong \u2014 425 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 25 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":"Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb935614016de63dd68c9adfabee8b8a4082c82f1965033f106e131f28d7a547"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TaskDatabase: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 24 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":"Packages/OsaurusCore/Storage/TaskDatabase.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8f1f33148077a52f3f23713cd54fbdd8cb94c6904d231a14873ab0cddda087"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ToolsManagerView: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 24 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":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5891ae2a24dc94c73e9c59de2f6ba01a5a23a51fc3a538cd788cb2014393e3a2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MCPProviderManager.performConnect: MethodTooLong \u2014 performConnect runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef35c68b73cf97a291e94f807d7446de096691319b0eb2dbb4da4d62e6d26d1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnboardingEvalHarness: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 28 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":"Packages/OsaurusCore/Services/Onboarding/OnboardingEvalHarness.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03c8fc47e474ba07efd0fdf4d3b322d81a25e9c5aa9192f6d790132409cca64"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatModelPickerCard: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 22 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":"Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ab964befedff1c87b0537a7324b08d644c3ed846eea0e83e8ea9fa36896705"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/KnowledgeTools.swift: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 27 over it, 1.05\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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1339a9457dbb830bfbf05de4192d97998b61f6bce51b35741ece96b0eef41a45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Event/EventDetailView.swift: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: EventDetailView (13-740). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Event/EventDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d24934cb8ba1f36c8c7dcb7fc6c5fdaa85ea07fc6787f3493edde90115956d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/SkillImportPolicy.swift: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 26 over it, 1.05\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":"Packages/OsaurusCore/Managers/SkillImportPolicy.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0817c1faafb4e88cabf2445950a10dd83ff041b0211de325f379f17a3238221"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Inference/FoundationModelService.swift: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 26 over it, 1.05\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":"Packages/OsaurusCore/Services/Inference/FoundationModelService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dca43489bc87aeff47d9b69172edb864f671e7636d5f7a00b50374b75d60194"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BlockMemoizer.blocks: MethodTooLong \u2014 blocks runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/BlockMemoizer.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b0b4006a71ae909cf921fd1c0d29582c0ef904e14530b350440ee56fba9410"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PPTXAdapter.securityMetadata: MethodTooLong \u2014 securityMetadata runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"338bbb8cd65056ab1b51b37ac73e33f22151cde751e6ac277642ea84a2542b0b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionRow.navigatorRow: MethodTooLong \u2014 navigatorRow runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":3176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adcede38defb49a68aa9eade951b2a84150454ee8ccfd2a8d9cd027dbb487ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkflowsView.body: MethodTooLong \u2014 body runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowsView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e3552ed9dda9fdc098b2d8f99bfd4165373b0c9055ce08032c55bb37b583e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Memory/MemoryManagementConsoleView.swift: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: MemoryManagementConsoleView (11-475). The bar is 500 significant lines; this is 24 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f155411365e7463eec2b55280afb7943f426a904c60c4b0416a93fc51fc79b2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Onboarding/DiscoveryCenter.swift: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DiscoveryCenter (24-721). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24f7fb4aaf6e53d3ca5e5273604a8af7cfffbd08f207b96e443668516ba5bb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utils/OsaurusPaths.swift: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: OsaurusPaths (15-1166). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Utils/OsaurusPaths.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3666e22b2920261733d40e8997da647690978ea986a2edaf74f1dfd4f4576b26"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.swift.top-level code: FunctionTooLong \u2014 top-level code runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"Packages/OsaurusCore/JSHost/main.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d338400726b67725039c4a566417eb4a2156920e2f1c0a171d7ad95dce40a79"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OpenResponsesRequest.toChatCompletionRequest: MethodTooLong \u2014 toChatCompletionRequest runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"a451b64292c01291a9161488f45e257fa254d711e3868f397942b68de4a20d87"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OwnerApprovalService.request: MethodTooLong \u2014 request runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"Packages/OsaurusCore/Services/Attention/OwnerApprovalService.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8fa38b729cd596615551ae10c1e60b28ca9dac924b29007747b38dc56c3979"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatEngine.makeToolCallResponse: MethodTooLong \u2014 makeToolCallResponse runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e288a06ac7a619a5038150915c9c038b8c8cb1e3d66e4bc1f3baa13263cb99"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemPromptComposer.finalizeContext: MethodTooLong \u2014 finalizeContext runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"b199b0a7932642c3a3a791da51421cdc8d1e92400c0dc8ad61d90b046413b486"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/AgentCapabilityManagerView.swift: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: AgentCapabilityManagerView (398-995). The bar is 500 significant lines; this is 19 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":"Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3966ef1dceff103fc9bb9d79f35be2fa17c29bf5c30b8d099e7d1a329ed7ed4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Networking/HostAPIBridgeServer.swift: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: HostAPIBridgeHandler (185-807). The bar is 500 significant lines; this is 17 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HostAPIBridgeServer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d045ef0d18b1518cb652fccb9a4b564bb65ff43cdf3bf2b3c3a2cc84752ed38e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileReadTool: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c35e141ee6ec23c4c4fc39858985a5f083fd79d424e3f29d883ab7689b65708"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ServerController: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/ServerController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7776ca4cd9824f4f8d7082201db889fcde71626132cd73d3ac421445563d115"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentChannelConnectionManager: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionManager.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"28564777f9e657f0b0025391ed373e1cff3ce43393e707c21bc236dd7edce6eb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PPTXAdapter: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"815b2842d1742e5e7260e5a0876aaa91b03782b2c2fd8c7f20472a1fca44bcbc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HuggingFaceService: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd1a26af29c7756abb62d74c84ee5701a8f6ad09b88e8a34264e5fabfceb4bc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MethodDatabase: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MethodDatabase.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c453eab685747ee504decb2f73bbbb16dbab7d974c65127597cfd5111d6c0c7f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RouterBillingDatabase: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/RouterBillingDatabase.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ae352115db3c4a1015cb1f42952aeae64dbdf57ccdc4604a60353e7e6a9e1a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SchemaValidator: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SchemaValidator.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a54b341f7c0c93967672b5ccb3bfeb3b68742ec4b290055eb8d41040ad85c4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WhatsAppSettingsView: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ce0087cbba2e05e55848098d311c5dab7954ae111636eac41176fb6e64ed5b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ArchitectSidebarPanel: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"400541cd68e0f31112ec3d1c441ecf09b5726bdcb9b0bc576ad0ed8a3a148554"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: bridge: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"54323f0eddcbb0c1b32c7a5dbcd5d5078312bd10e78b161a4113590af131db6e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SearchProviderManager: ClassTooLong \u2014 413 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/SearchProviderManager.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dce51c5d48d0f8bc663ece968cbd839180b42ad88195dfde6bc9178a2debda"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Configuration/MLXModel.swift: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: MLXModel (14-865). The bar is 500 significant lines; this is 16 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/MLXModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c08b2c129aab36a49b433019d184ef5252de7a117c58a37d06f6026bf95334"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HostAPIBridgeHandler: ClassTooLong \u2014 412 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 12 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HostAPIBridgeServer.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd47a8f9a41bb3729f9dc222b7e679e419ae9296728d77403bd10006bd57b81"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/RemoteProvidersView.swift: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 15 over it, 1.03\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":"Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b1a07dd6c6242377b6e61e1b8d858d01ac34a6be2e53661f75c9e389cbe40c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DesignFigmaChecks.run: MethodTooLong \u2014 run runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/DevelopmentDesign/DesignFigmaChecks.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"252b4310122382fddf8bffc160add54a4227c5c5dfdbb17c5a39de37f2fd5920"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handlePairCodeEndpoint: MethodTooLong \u2014 handlePairCodeEndpoint runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b57ebe9ed556da07cedd3caf59fe8e75d643b82a217653bcd4f1b9c9e261d2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleEventWebhookEndpoint: MethodTooLong \u2014 handleEventWebhookEndpoint runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9901}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5fd10bcebfc46a569b3973b33e794547aeaf7c6a90b2aef90236a11c092bf1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResponsesGenerationStream.compatibility: MethodTooLong \u2014 compatibility runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ResponsesCompatibilityStream.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"13516a8b96f733df41b798049b6d86b0e47ee825e532f5e5682b5fb683e4efd1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PluginHostContext.httpRequest: MethodTooLong \u2014 httpRequest runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93b1a40c58fac2d9fffb55d7794f80d83a6e338198ac342e85c3b5ccb02cb24"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SpawnAgentTool.execute: MethodTooLong \u2014 execute runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/SpawnAgentTool.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f299c33e593f3883df331816a5d8362e9b6bf6c8d3399e69ffa39cb300e3ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentDetailView.saveAgent: MethodTooLong \u2014 saveAgent runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":6612}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafdde30055ad592cc05b4b8a087d3912639302e6e376cd5610ecffcb4ec6b79"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TemplateImportReviewView.workflowDetail: MethodTooLong \u2014 workflowDetail runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Template/TemplateImportReviewView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcff6dc89715db3f3e2083bedfea1317158263269234f69aa1ebf92a7950071f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/TTSService.swift: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: TTSService (171-710). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/TTSService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d05d3da9a918cfb487cb23dd0babf9b6dbeb0a5114623f45146039336e7c20a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelManager: ClassTooLong \u2014 409 significant lines (blank, comment-only and punctuation-only lines excluded), 69 methods. The bar is 400 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f327f972db71c59daadf4c625bcd29ed2970cdd40ca9cb8d407f79baee8bdd02"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Database/AgentDataGridView.swift: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 10 over it, 1.02\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":"Packages/OsaurusCore/Views/Agent/Database/AgentDataGridView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90d4f22b8a22ed925a4600b6482f8e3317332a957a9f00f761408d9e4c3013a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigApplier.addProvider: MethodTooLong \u2014 addProvider runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":2315}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baedc99982ef6d62818007514e3b52a88a1cc6ebf1764225965fce8cfd6d5a0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileUndoTool.execute: MethodTooLong \u2014 execute runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4596}}}],"partialFingerprints":{"codehealthFindingId/v1":"49571d91aaccab86077253240f5d40d27e728534a3c498ed1457b1e2a6f6bbd1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnthropicMessagesRequest.toChatCompletionRequest: MethodTooLong \u2014 toChatCompletionRequest runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"afde134e3ae841a6ab0dda12186afeb4c1e25e6327f7a30c9002697f005991bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleSecureSessionEndpoint: MethodTooLong \u2014 handleSecureSessionEndpoint runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9019}}}],"partialFingerprints":{"codehealthFindingId/v1":"140949f049450f9634d29c29e1c54c8fe20eeafb88706f0f97df5af2de407c6c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.runImageJob: MethodTooLong \u2014 runImageJob runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14582}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7af33fddbf8cc1a20d55f0fe51cc232acd8c1f648f25a49ad3b9589579b94ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextSubagentKind.resolveAgentTarget: MethodTooLong \u2014 resolveAgentTarget runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"efabdcf646ec2a80f4e2e352dbdaca79e5b40e4db9d3ef8d8a92b2fadedb903e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ImageSubagentKind: ClassTooLong \u2014 406 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 6 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5970672717ac3c636d5ddad8ed079482a3b76ee7e8763d3fcfd1e6247e7fe3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/StorageSettingsView.swift: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: StorageSettingsView (20-737). The bar is 500 significant lines; this is 6 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62dfa7a1796d362b34183808b140ca354b44e40ea0581780f46c69ff5cecb3b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflow/WorkflowRunView.swift: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: WorkflowRunView (15-540). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcd0461d587b7a89a256285f95b19a666f26ba2df878a2d713dd9046bf986ff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigEvents.export: MethodTooLong \u2014 export 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8ec470d7b47ce6bda039aa8394aabf2b88537ad0e6f94c476ad56373faa1bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InsightsService.logRequest: MethodTooLong \u2014 logRequest 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":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"23510aa755b1a06a62d46ab6321379b037336a6ea217429766a7a9fdc1ce1331"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTTPHandler.handleOpenResponsesNonStreaming: MethodTooLong \u2014 handleOpenResponsesNonStreaming 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18865}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebba7cd1eb54badb4627fe4b9880b6e46277ceb5bc533f9091e3a72371c69703"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrivacyFilterEngine.detect: MethodTooLong \u2014 detect 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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterEngine.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e61b0ddba01144d38da243a3da15ab98c4fea221e9fde3a5626bd97e2fe1ec6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MCPProviderProbeService.mapFailure: MethodTooLong \u2014 mapFailure 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":"Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc962f4efed2117bd1e325c647e0b93035a4047bdf90494ed41a910865aa5431"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkspaceAuditRow.title: MethodTooLong \u2014 title 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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b918f69408d947f5463c609a545218feb3a10e712de9d70705caba93b869de"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvalRunner.scoreSpawnResidencyLane: MethodTooLong \u2014 scoreSpawnResidencyLane 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faa0a38313781cb9d78d118234b0a50111fdd24aa2608901cf61554042ab766"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tool/AppleScriptToolDispatch.swift: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: AppleScriptToolDispatch (14-865). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e87df7a601dee32748a8f2241b7f2fc34e9db2f61bd115040b3a7674c11ff72"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 31 shared lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:10158-10278 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16911-16980 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16982-17088 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17328-17423 \u2014 These 4 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10158}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a73d043f67ba348d9a4492ded736dddecf0a3776ffe55eddf1bb4955956e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 20 shared lines): Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1321-1355 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1359-1417 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1430-1468 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1470-1520 \u2014 These 4 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"525948a8283771c97f38c6b591c2039684baaffee320bad988733e6167aaf426"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 10 shared lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:179-193 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:721-734 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1021-1035 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1365-1379 \u2014 These 4 members are variants of one another: a block of 10 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f0f3b9eaf1f010ec251e0106d98270c06b02a51e420d4cce44a36fe0993a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (106 shared lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:110-590 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:592-968 \u2014 These two members are variants of one another: 106 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6e721735898e24af114dcb4a0439b7c1a4576ab52fb58453e304538cdb11c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (77 shared lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:16047-16130 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16333-16415 \u2014 These two members are variants of one another: 77 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16047}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f6b40d10db9c62579cf27e19fe78f69290c7ea0852e504b23ea16482ca889b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (68 shared lines): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:572-723 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:274-394 \u2014 These two members are variants of one another: 68 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38d8b86729b11eb96aacc446f9e96072cb15df5e8029f2964545659e42cc7a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:13992-14075 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14077-14177 \u2014 These two members are variants of one another: 64 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13992}}}],"partialFingerprints":{"codehealthFindingId/v1":"5979e51fc32fbc2f83080e7e92d104a6c89bd22e7c3f20a73623f23667b7afc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:100-208 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:85-187 \u2014 These two members are variants of one another: 64 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"765bfe4a2b6defe0c4ff3ddd1773c47a2598b4603784204fb3732e360f6e968e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:17110-17310 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17425-17815 \u2014 These two members are variants of one another: 55 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6074d489fe34435bcb889b9ba089a7f11f0bcab6c249758ae99fa55868d700"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (43 shared lines): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3806-3888 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3892-3986 \u2014 These two members are variants of one another: 43 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3806}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f42ddc5d759cd9d0d660f9dc61bbaa03352868857c60a72cbc2961bf8687bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (34 shared lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4484-4550 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4688-4775 \u2014 These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4484}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23d7827fa591929a6b014b7bd854939d1db68df19bcd556dede1dabdb682e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (18 shared lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:124-172 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:330-388 \u2014 These two members are variants of one another: 18 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7931333ff96941ad9eb0989506679f0de2987b28e60b7a9f201945c18e29f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (17 shared lines): Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift:224-272 | Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaCatalog.swift:97-143 \u2014 These two members are variants of one another: 17 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e590599873c66d2368c4a67b62ae90b890c53de55f4a7a63911abe08e61291ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:228-246 | Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:1406-1466 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd89442fc78edc9b1f055ede0bd4e63028cf55cb6cd66bd16943ef1c8e7c5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:635-710 | Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:925-976 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9f2e3b10fb5669650e529c18234ea2179e0240c581bcc14f98aa5bd350ff53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:247-277 | Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:1470-1531 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3929be67b9bc979f3fbd36298f4a5014c137807418d12f6d89376287decfff70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift:588-620 | Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift:325-354 \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":"Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"144dfa399356bfcaa5c63cce099a355dc8029437b5d5b9578722c8364c87ff34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:811-1074 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:820-853 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ce52b1065e3b8344dbd7dd2e8d998641b35c158e30ccbee263547df3286077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:375-425 | Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:432-483 \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":"Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3805f34c27a8bdf60211bcffa5b4bf5ba53d9ca6556cbe29d768fbe28f3667"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1272-1293 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1440-1459 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee430a7ee0fcb23952343d45553b6a8712a9ab48097272eaedb36b8262f9224a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1682-1911 | Packages/OsaurusCore/Models/Configuration/RemoteProviderConfiguration.swift:336-399 \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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"e596617bec89fb19de7a139d7131f844eace827968bc494b84ebf362d18b0ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (21 members, 50\u002B identical tokens): Packages/OsaurusCore/Tools/AgentChannelTools.swift:373-379 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:407-420 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:453-471 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:507-526 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:562-581 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:626-647 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:683-700 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:741-763 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:805-827 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:853-878 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:901-923 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:955-981 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1025-1044 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1093-1115 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1168-1193 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1238-1263 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1308-1333 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1385-1420 | Packages/OsaurusCore/Tools/CalculatorTool.swift:58-94 | Packages/OsaurusCore/Tools/CurrentTimeTool.swift:48-99 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:149-291 \u2014 These 21 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 21 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 21 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3c96b8f28486b9d7f7922d38d807f0b98e80b7533a804e8df201755ddb4ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): Packages/OsaurusCore/Browser/Tool/BrowserUseTool.swift:76-143 | Packages/OsaurusCore/ComputerUse/Tool/ComputerUseTool.swift:126-180 | Packages/OsaurusCore/Folder/FileCopyTool.swift:89-282 | Packages/OsaurusCore/Folder/FolderTools.swift:2766-3010 | Packages/OsaurusCore/Folder/PromptWorkingFolderTool.swift:128-183 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1547-1568 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:59-176 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:211-282 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:397-462 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:549-615 | Packages/OsaurusCore/Tools/AskOwnerTool.swift:38-92 | Packages/OsaurusCore/Tools/CalculatorTool.swift:58-94 | Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:99-184 | Packages/OsaurusCore/Tools/KnowledgeTools.swift:451-644 | Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:822-928 | Packages/OsaurusCore/Tools/NativeImageTools.swift:173-202 | Packages/OsaurusCore/Tools/SkillUpdateTool.swift:96-165 | Packages/OsaurusCore/Tools/VideoTool.swift:88-121 | Packages/OsaurusCore/Tools/WebSearchTools.swift:272-340 \u2014 These 19 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 19 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Browser/Tool/BrowserUseTool.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d82321d3e513a8aa6a9697ac7e26d5dd988777e153574cb785407717228515"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:321-401 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:445-498 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:534-561 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:606-660 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:699-760 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:795-835 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:861-892 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:915-944 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:987-1039 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1079-1140 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1239-1378 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1432-1513 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1572-1616 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1639-1677 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1735-1753 | Packages/OsaurusCore/Tools/Database/SchedulerTools.swift:131-188 | Packages/OsaurusCore/Tools/Database/SchedulerTools.swift:320-347 \u2014 These 17 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 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb9020e218dbac45d04587395e697a136411e51b96d20bf2445fc9988a4605c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPHandler.swift:5585-5650 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6065-6105 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6896-6952 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7050-7088 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7174-7212 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7623-7661 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7798-7850 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7978-8043 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8060-8100 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8211-8304 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5585}}}],"partialFingerprints":{"codehealthFindingId/v1":"b381861847a0cd1e295b1e3c3f6b0f5481eb9b659221e23c53cf22087b3242d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:73-84 | Packages/OsaurusCore/Browser/BrowserConfigurationStore.swift:67-80 | Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift:106-115 | Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift:470-480 | Packages/OsaurusCore/Models/Configuration/RelayConfiguration.swift:63-73 | Packages/OsaurusCore/Models/Configuration/SearchProviderConfiguration.swift:472-482 | Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift:106-115 | Packages/OsaurusCore/Models/Voice/SpeechConfiguration.swift:254-264 | Packages/OsaurusCore/Models/Voice/TTSConfiguration.swift:175-185 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f027a10de99277ab9724aca224d1884f243220b5454356328ac4802fc53cda77"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPHandler.swift:3533-3556 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4048-4085 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4703-4997 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15169-15190 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15297-15811 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18083-18231 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18865-18986 | Packages/OsaurusCore/Networking/HTTPLoopHelpers.swift:160-186 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3533}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fea0374277c00bd2d08861808a9b64d8ac35e1360d52f12d50edcaf35d5816"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPHandler.swift:5272-5317 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6955-7045 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7096-7167 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7375-7423 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7432-7523 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7674-7769 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7853-7934 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8502-8682 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ea787cc3dd599676ecf05dbfd9b55f377ed666b981f7814b574f22ee72af67"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2419-2469 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2479-2511 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2805-2847 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2851-2893 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2897-2953 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2957-2992 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3456-3494 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3575-3630 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2419}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4167379f3b79a99e139da051cb2886dc532d83ddef8fd1fcb749c30704a08c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPHandler.swift:5659-5747 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6471-6580 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6588-6747 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6955-7045 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7096-7167 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7674-7769 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7853-7934 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5659}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bcf4a47d1586de80f30129dea1e76f4d06fcb246601a8d15cc76455569cdaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:2060-2121 | Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:2210-2230 | Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:2232-2257 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1203-1227 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1249-1273 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1289-1313 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1335-1359 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift"},"region":{"startLine":2060}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9aefdb7547c18e733bd5159fefa549d7d853d57ea86ee70933012f7a621cb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:924-952 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:845-870 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1283-1311 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1724-1759 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1237-1265 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1112-1140 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1387-1415 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b73aa871e921cc96ae55b0b532064a4b666c1cfd63c738c773fdb9039ba2446"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Packages/OsaurusCore/Models/Chat/RequestLog.swift:183-202 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:204-223 | Packages/OsaurusCore/Models/Chat/SessionSource.swift:83-115 | Packages/OsaurusCore/Models/Chat/SessionSource.swift:129-145 | Packages/OsaurusCore/Models/Chat/SessionSource.swift:148-164 | Packages/OsaurusCore/Services/FeatureTelemetry.swift:1094-1113 \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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb32e93106f7102f621417ec4add7b63353cc7cd1c9e009e366edf904e0dc34"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPHandler.swift:1572-1860 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1866-1931 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1939-2005 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2013-2271 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2307-2630 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16724-16907 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b836fda12620629e4cdacdeaa54bb1573e06704b12b3f7f52e2bf43674b7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Packages/OsaurusCore/Services/Chat/Routing/AgentWrapperCatalog.swift:83-94 | Packages/OsaurusCore/Services/Method/MethodSearchService.swift:258-271 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:354-367 | Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift:167-178 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:894-907 | Packages/OsaurusCore/Utils/TextSimilarity.swift:61-74 \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":"Packages/OsaurusCore/Services/Chat/Routing/AgentWrapperCatalog.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fede7dfb44d9f65771b10540c383b23fa17d42e013940cbac0512639ca6ee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:96-177 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:97-186 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:112-183 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:109-204 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:114-195 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:121-191 \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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c957fff6ea73671d3f6adbec3d38c9d972b29f259206bdc3c4282220ec32be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:453-491 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:605-659 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1011-1049 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:531-571 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:616-654 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1108-1146 \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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3c7a894c30c768007f75b06036bf9d640b274816c72998e24f5afc7ae19bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:973-990 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:884-901 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1328-1345 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1294-1311 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1017-1034 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1432-1449 \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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"286af17a8330a016d2546445293ddafd7226e93485a505422fd1660c1a4dc8ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift:146-158 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseTraceLog.swift:138-150 | Packages/OsaurusCore/Managers/TTSService.swift:777-794 | Packages/OsaurusCore/Services/ModelRuntime/PrefillDebugLog.swift:92-109 | Packages/OsaurusCore/Utils/KnowledgeLogger.swift:60-77 \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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1510a3bbfe0d333fa93ba7b12ac035bc67972bd53b35439197bcabfe8f3cd7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1471-1579 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1828-1869 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1871-1915 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2115-2252 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2306-2418 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"292487e5b1e8f901a34ecccbd71404873c3a35a90e058e0ba54a07dab8be9216"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:62-92 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:230-258 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:302-337 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:371-398 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:475-499 \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":"Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a827bfc86870eee5b4e1a248155198212c51560091d94890b033c87356261c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:134-147 | Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:307-316 | Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:250-263 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:216-229 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:263-272 \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":"Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd0ebeabcf9be65c22ae3cdca36b7c8f85d8f0b6a92d9226ac37125d8be9484"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPHandler.swift:15297-15811 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15863-16045 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16160-16331 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17931-18081 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18604-18792 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15297}}}],"partialFingerprints":{"codehealthFindingId/v1":"979e9ca876e03e34d5340acf2d8cbccb300edc3159fb1855e3fa238542ec48e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:148-215 | Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift:49-78 | Packages/OsaurusCore/Views/Template/TemplateImportSheet.swift:47-92 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift:126-183 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:208-281 \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":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b92dd8bef292759d677d7175dc9b3351ec54eeb3671633f62adbbafafd714c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:111-139 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:148-172 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:269-281 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:289-301 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:366-395 \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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbd90f9ebe2485e32e1cc01026cda5e9b626cabb8ce7867f1c998f193370789"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:543-590 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:703-741 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:713-768 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:420-458 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:904-942 \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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df9115ff82f0f8507910a9805ae0e95c4791adf00b8294a3d6eff8f3e402a42"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:488-545 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:627-682 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:875-920 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1730-1805 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1809-1865 \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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"7695c19a067de3dbf162c2835cde6c59fa0b8a6ca5632b7bc1b16a775eb84da0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/AppleApps/Support/AppleScriptBridge.swift:229-244 | Packages/OsaurusCore/Models/Configuration/CodexCLIConfiguration.swift:351-372 | Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:209-223 | Packages/OsaurusCore/Tools/ToolEnvelope.swift:668-682 \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":"Packages/OsaurusCore/AppleApps/Support/AppleScriptBridge.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd963004769ae1892d742dd79449a819a46abb9b750b3acb7a63c2e07e032ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:660-681 | Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:683-726 | Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:728-759 | Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:761-786 \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":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc883ce658fe3c5bba8b59177034e582c68674e08c956e09605e3e7e9b58b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:237-244 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:815-823 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:869-878 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:983-992 \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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"4353f9babb76514fe741ab6801ef835323e8beffde227fe730e43000b3d9856a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:246-253 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:825-833 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:880-889 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:994-1003 \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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aeff26bf21725bada0df5a838d1bbd2497b59a1c80d62f1d2e101f5df368ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Models/Chat/RequestLog.swift:1226-1234 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:1237-1245 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:1252-1266 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:1273-1287 \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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"c308a30e795b922cfbc8bdeaa2a4ba21479a5d695aa2c0c08e64f76d69f2de57"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:476-491 | Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift:494-509 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowStyle.swift:12-33 | Packages/OsaurusCore/Views/Workflow/WorkflowSummary.swift:123-144 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b9bdddc0564d3a12efe2c25d9d3faaa792fbd21a9456ce1611eaa5782bb28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPHandler.swift:4703-4997 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15863-16045 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16160-16331 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17425-17815 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4703}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c3ac6880f19bae9609c4d7a7b5c866814cdb8b261a0e17779391b6e14da35e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPHandler.swift:5943-6026 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6065-6105 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8399-8451 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8773-8861 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5943}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cbb3c20a70fec04df059fcb84a230606755e3cda7b86392584b644dae81bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPHandler.swift:14835-15164 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15863-16045 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16160-16331 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17931-18081 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14835}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee661edd55bb9dcfc9ae1dd0f12cc425d496082717cd5b68c5e01c5ce29e037"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:90-112 | Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:143-162 | Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:164-183 | Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:185-204 \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":"Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c633e85c9412f879283bb81db5329d1164f2ca756cba6f88c3acd794e90c8150"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift:35-55 | Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:753-791 | Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:813-846 | Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:916-950 \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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee98421e991dcda074ac13d229c5488f660fbae56eef1aafd797ebf6674a4433"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:66-102 | Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:125-159 | Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:165-199 | Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:226-260 \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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"26889109ff15c3fc9a18150161108f04dcb6df17e245f762196bd3b6cbde0fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:795-832 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:849-880 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:882-899 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:901-938 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ba80b43a9e81da2bd459ff736f541ff057841d7ab950fdcdf47809032d0917"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Services/Documents/CSVAdapter.swift:86-125 | Packages/OsaurusCore/Services/Documents/PlainTextAdapter.swift:25-68 | Packages/OsaurusCore/Services/Documents/RichDocumentAdapter.swift:26-99 | Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift:28-100 \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":"Packages/OsaurusCore/Services/Documents/CSVAdapter.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"48aaadc6200fcde83f8621a5355d9213c0bbd45aec219658bb090cf8f8ec9ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Services/Email/EmailChannelService.swift:229-239 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:401-411 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:744-754 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:504-514 \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":"Packages/OsaurusCore/Services/Email/EmailChannelService.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42fb54f9c6917708f431727d7624422f83da02765a4158925ea75fdf08b3643"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Services/Email/EmailChannelService.swift:717-736 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1357-1378 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1417-1431 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1527-1556 \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":"Packages/OsaurusCore/Services/Email/EmailChannelService.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"70408044e9d8afafe843631da5dabdaf2e556ff9265380c369cec6dcaaeebf61"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift:174-203 | Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:458-481 | Packages/OsaurusCore/Services/Provider/ProviderReplayDiagnostics.swift:204-246 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:319-342 \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":"Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57ad7448b3c68eb0ca9bd27d176cea6de2325dfaf7d7b0b7b7aa8face461f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Services/SystemPermissionService.swift:889-921 | Packages/OsaurusCore/Services/SystemPermissionService.swift:928-955 | Packages/OsaurusCore/Services/SystemPermissionService.swift:961-987 | Packages/OsaurusCore/Services/SystemPermissionService.swift:1028-1042 \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":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"300c3579ba146cab12c6d50c5fc892d59c93f0fb65df72aaa4a5b56e35461eb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:143-178 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:131-198 | Packages/OsaurusCore/Storage/TaskDatabase.swift:183-289 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:106-145 \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":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b25fe5bfced15cf606c25e5ee06acb2bef1ed168467f892187081ae195b34b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:514-569 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:990-1023 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1127-1166 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:246-291 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5b98c82a0be6d59f553029b9e070658f0587516b694af912509c5473b7a12d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:514-569 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:860-908 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:910-960 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2207-2234 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd7a03a9b9757ae7b1414a0f0593ced13632743cc8578f82371ef4417f89fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1486-1579 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1907-1994 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2291-2319 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2377-2447 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5e4334d4d4f9debf9d4be29913e4d9689419a260b6ef0421e409424dcfac88"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1589-1607 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1996-2014 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2883-2901 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2904-2922 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec47ec6bdce0bed435183533328c6b5b7afbaf9753bb650222e9b91e9d6a63c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1613-1638 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1644-1666 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1668-1687 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1694-1713 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96e3d2e185f93b9ab9f51042a0b4e398d6520b878ae605e6a05fd2c8d0dd6c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift:301-382 | Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift:1101-1169 | Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift:144-182 | Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift:78-148 \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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9060582076b83c8ac8ce0b95b836283f4c81473069ee83c0a931f6c89794e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Agent/AgentsView.swift:103-322 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:165-175 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2536-2546 | Packages/OsaurusCore/Views/Workspaces/WorkspacesView.swift:72-195 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3012efb355386a6d1299daececc188830af941fa25207d8e6d1c488a7d02766"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Agent/AgentsView.swift:5612-5633 | Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:555-584 | Packages/OsaurusCore/Views/Project/ProjectsView.swift:398-413 | Packages/OsaurusCore/Views/Settings/OrchestratorSupportSections.swift:192-212 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d013787430280fb69891cb0a54dd0321c468829467c2379f090f15e7790a75"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2087-2193 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2358-2449 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2665-2771 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2996-3139 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba42ff28ff2cf0d25ebab512af9576df800b92e4d4d15a764cd05a761c81c572"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:117-190 | Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:805-864 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:312-353 | Packages/OsaurusCore/Views/Settings/ChannelsOverviewTable.swift:60-82 \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":"Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3c560f65059e73efe4ae4495824d3d854bdd0fc5ecaaa9bbabfa39bdcf6ed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:682-740 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:224-302 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1509-1559 | Packages/OsaurusCore/Views/Settings/SearchView.swift:842-875 \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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3a40a53dd3fc2519e875f30674a4ebfc9b6e5c17dad91d4b908fc82d947146"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:693-701 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1359-1367 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1182-1190 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1463-1471 \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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedc232bdb991436cdf4cdee036b7c843501a17d34ff60ff188f387c04c61ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:890-922 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1245-1281 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1078-1110 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1349-1385 \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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b0d4d7f44842396db200524d6333437c2db2ac5a471176c086ae8d97b34610"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:714-753 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1126-1175 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:858-914 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1230-1279 \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":"Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61fa791b3ded611050fb0562d16a41a83742f6da0ee5228088b6c27d26881f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:627-682 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:718-779 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:922-935 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1809-1865 \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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"28190ee9901ce37ae89cb85ccfae253e7878198af861ec7da1aadc905d3eaa5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:754-781 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:1171-1190 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:1289-1303 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:1450-1482 \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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f2879adf4272cf1b93681faab7b0ba08007e9d0443da4f8fe749f800558f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1392-1693 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1760-2051 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift:36-324 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift:29-223 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2f4bda808a37b570609347409bc2a8769eb1025922979b066fa6033c9ed284"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1760-2051 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift:21-386 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:548-668 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:678-805 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b100dd2252b1425613f786e371d779b2626c1df6e00e829ce21951efee8f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:181-322 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift:24-162 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift:253-365 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift:43-225 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eeca9b02cd5bc68c828276a539196ec98d9633af969cdc1245af39dc24bd472"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:660-736 | Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:941-1008 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"Packages/OsaurusCore/Views/Voice/VoiceComponents.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"4649e6a57e77f8bca64c2efaa17e3169cfe4225908007630f1177f086283ecd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:237-335 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:339-460 \u2014 These two members are one piece of code written twice and then edited apart: 99 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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc2ff9cd69a8846788d93bbdb833e838aa2ba43e436f3be128c0e74c9590daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift:94-144 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseTraceLog.swift:20-60 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"711838f81251fc8dc371f99a488f6018a1ffc2a07b27bdd06751948f367e5749"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:955-1024 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1903-1975 \u2014 These two members are one piece of code written twice and then edited apart: 70 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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"4547ca8b54f040931c44e70f80d3b17dba456765e119050711150c68f9173fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (95 corresponding lines): Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift:35-129 | Packages/OsaurusCore/Services/Provider/ProviderCredentialPromptService.swift:255-366 \u2014 These two members are one piece of code written twice and then edited apart: 95 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":"Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae5f282c2b363a8918d2e2af6876e37de0b1adf7ea36cd8f7a3e53c8ef8de59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (93 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1027-1119 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1133-1229 \u2014 These two members are one piece of code written twice and then edited apart: 93 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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"140c94ee7583ad312edd781337ef08a68138e8755122f58d2b61605c899879a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:786-853 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1292-1353 \u2014 These two members are one piece of code written twice and then edited apart: 62 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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b5b2898d1b2c352e80ec3e32665f0937821f9cf868a31acfb8ef6e4261ee12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:133-215 | Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:471-559 \u2014 These two members are one piece of code written twice and then edited apart: 83 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":"Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"479d35500cb4b889194bd82370ab3cbdbba502e5f719d1081d295650ac97ea1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:612-667 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:669-728 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9893a342fcb25edf566bab0a393aca6e6b64e41975ff4074e34c1f135da167"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:301-360 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:379-435 \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":"Packages/OsaurusCore/Views/Memory/MemoryComponents.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a77272c79b1b2040c74175ea65a4f0b0190eeec57801a12628d22205d0e1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): Packages/OsaurusCore/Services/Inference/FoundationModelService.swift:317-389 | Packages/OsaurusCore/Services/Inference/FoundationModelService.swift:507-596 \u2014 These two members are one piece of code written twice and then edited apart: 73 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":"Packages/OsaurusCore/Services/Inference/FoundationModelService.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"baee15068291e6e8b381b9bf1b39a3473599e8255b8e962cc142c33638956be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 42\u002B corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:405-446 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:474-555 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:599-672 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 42 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"241cbbbc47244745119d0c81ac9031269b3bcee6daed38a3a2d68d6a4bc80c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:1106-1165 | Packages/OsaurusCore/Storage/AgentDatabase.swift:1268-1324 \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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad1c033e9a23aa8e3917720e714f1efcc16e49d4d1f0f028946e5564fca71b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:509-559 | Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:561-612 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89381b3f3ba83b78eaa1751bf0ea9606c70baf4bf205e85bf2f8aed162f51f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift:701-747 | Packages/OsaurusCore/Services/Inference/CoreModelService.swift:875-927 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b09c5cac8aed12ef2102b9b98188f7b7b32eb50dea2c2b7ac0b4d481e3ccae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Packages/OsaurusCore/Services/Insights/MediaActivityLogger.swift:58-99 | Packages/OsaurusCore/Services/Insights/MediaActivityLogger.swift:250-297 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Packages/OsaurusCore/Services/Insights/MediaActivityLogger.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8168c31abf89c3c88fb3ac52ac79fd5a1b722944e9e61b18ab64596dbca7b75d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 65\u002B corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:1446-1516 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:231-295 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:162-236 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 65 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"3915bd7f85dc0468b6325001044dd52b5acf5587323735f668c9997fea549090"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift:27-83 | Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:29-86 \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":"Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd37e39e6e84dcde6ac246d35a412a674c72791b8771110b1a1146a89dbdc172"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Packages/OsaurusCore/Views/Settings/AgentChannelAuditRows.swift:19-64 | Packages/OsaurusCore/Views/Settings/AgentChannelAuditRows.swift:97-137 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"Packages/OsaurusCore/Views/Settings/AgentChannelAuditRows.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ba455c59cf180363a89945543714728657e1838b0bd6a0e2e18a2819105b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1206-1254 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1432-1488 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fca78eadd873aabcdf17f673e707c57f6673e44a28c78b4442c36187d22468"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:12879-12954 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12957-13032 \u2014 These two members are one piece of code written twice and then edited apart: 76 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12879}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5d64361c688a2f66cea69324042a38714b67964d6396cb4a2e3d853f9feb51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 40\u002B corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:732-781 | Packages/OsaurusCore/Services/Email/EmailChannelService.swift:324-363 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:501-552 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1053-1108 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:816-867 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:596-651 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c2878bcdde929c2b7dfbee03d06ab0dde1ad9ede1a905e1b8cc84e2f7ee1eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:330-375 | Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:377-441 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemorySearchService.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"f879898ef79d9def6b5eec22b7eb37c207f6dadf74219993caf71d601845ef90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Packages/OsaurusCore/Services/MobileConnect/RemoteSecretPromptQueue.swift:36-79 | Packages/OsaurusCore/Services/Sync/SyncSecretPromptQueue.swift:50-105 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"Packages/OsaurusCore/Services/MobileConnect/RemoteSecretPromptQueue.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad5a4bdca9f61177527c19528c6d9b7d33299cbafe85798e6446395df6f7f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:1597-1658 | Packages/OsaurusCore/Storage/AgentDatabase.swift:1682-1725 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"773e7f4760b9bfa695bb5b5b65d7d96dbbe5ff8257518f0a466e99ce83df039b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:950-1001 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1034-1092 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c045cd91c3acd565417f81e8f213ecd4b53bc74e48ff33eb76ee66ff118d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Models/Workflow/WorkflowRun.swift:199-221 | Packages/OsaurusCore/Models/Workflow/WorkflowRun.swift:544-566 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowRun.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3d8dca6962bb0f27a415f4f708506810b0f6820a256875e03aec24eb608df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:387-425 | Packages/OsaurusCore/Views/Workspaces/WorkspacePoolActivityView.swift:172-216 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c520583ad3a81e0d43df94b85307536846623ab479398ca5c60bc244b568abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift:1149-1173 | Packages/OsaurusCore/Models/Template/Template\u002BAgent.swift:116-140 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f40b9e5b95ca872ae0c236e1755c3b4d12412014ec5f2fec36d27b847bfc1eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:135-177 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:352-400 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"08801d9dae1a5cbba56e43f7d688db145d8ce35ce0aa8a9082ff3eae9383c29e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 43\u002B corresponding lines): Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:56-98 | Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:72-114 | Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:201-244 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 43 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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1c1a249e48f783d3f99ec7d5e5ba6e95b167bc76f45d678b7512addd2462f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Models/Workflow/InstalledWorkflow.swift:270-290 | Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift:87-106 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/InstalledWorkflow.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b711aa26c07234ade215e604758082c19a4f658d047355dcaa26cc8dee27df73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): Packages/OsaurusCore/Managers/HotKeyManager.swift:32-89 | Packages/OsaurusCore/Managers/TranscriptionHotKeyManager.swift:46-112 \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":"Packages/OsaurusCore/Managers/HotKeyManager.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2cf950b7ee51e293cc4ad309ff1bf45339c6a41670de462f90ff2ccbc76645d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (84 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:457-542 | Packages/OsaurusCore/ComputerUse/Driver/Mac/InputController.swift:184-267 \u2014 These two members are one piece of code written twice and then edited apart: 84 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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"723e918cdf3588ffa349dccda54c5c726a3a5627267ef859c3a91abc4ac1329a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1183-1225 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1241-1290 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ec9ca00ecb165696e1a83426c12b7098db86ac8ee0499b3bf1a2a76865a482"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift:713-753 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift:759-805 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f3e5779221f0fce3bf36fb3d9a363de27f7e01f1aec9813b44456c3baa0465"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:131-185 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:3975-4033 \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":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2aeaaa1fb89e9d3318de98e109d7dff4ccbb254daf4fe20b1c2f5f5b4624c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift:64-95 | Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift:107-131 \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":"Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e804241a426ff1ea60c9d6ec9cf70f740f6769b657f1396503a2c722e9d752ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Models/Schedule/Schedule.swift:592-618 | Packages/OsaurusCore/Models/Watcher/Watcher.swift:184-216 \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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"87878c337bc6be14927d79fc656a140ae614e9d46d5b6d16e9763e666210e8e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): Packages/OsaurusCore/Services/Chat/ChatTitleService.swift:45-118 | Packages/OsaurusCore/Services/Chat/FollowUpSuggestionService.swift:61-156 \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":"Packages/OsaurusCore/Services/Chat/ChatTitleService.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5a29cd975d826da7a2b5799662c637e9f3d6d26b6ce334a5cc2a382bce8675"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift:208-232 | Packages/OsaurusCore/Views/Chat/ConfigApprovalModal.swift:211-238 \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":"Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"00315c20202b89a34783c513f2647972dcaee00d98ef7f95a4ffb48412365980"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 57\u002B corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:735-798 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:800-856 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:858-928 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 57 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fa63d33422d040eb30ec86bd7b06ffae9466cc94e86347ae01dcc297230336"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift:377-405 | Packages/OsaurusCore/Views/Workflow/Library/RenameInstalledWorkflowSheet.swift:26-77 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"24633e38044bd8b915d6c2d6d59a1f289e372242eb336047e347d9a5e76a9eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:116-149 | Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:254-287 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda4dfd27b1efbd38a8d08ffcda5bc7c3baab6068aeb9f6f91b59ad418c1a083"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:436-465 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:522-560 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"07449b1ff8f1fd9e1e25a533bd96eea6c01d4023f84efc9d5296d363563bfde7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:432-484 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:363-406 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b89e976434a6f9e3d63327af5ae222dd68b931dca49dce568e5d713315dc8d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:557-595 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:674-733 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e5b077053fde40a9ba796c19bb4fa5d554208087d4a69c0f2cb896fc89e5c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2889-2915 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3856-3885 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2889}}}],"partialFingerprints":{"codehealthFindingId/v1":"920b67039d1ee97f12c354b0e306b4123de6462abc69a7eb73c1b7f65ed73edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift:935-972 | Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:1581-1644 \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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"0357b07e7242c8b194e8920d489f455cad100d9e7436a684cc3f96329c49d7ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:608-648 | Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:650-685 \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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80ac770ad5018733e924203a7e29e90871e11553109e2ded99c4d493743b91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:687-770 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:2434-2497 \u2014 These two members are one piece of code written twice and then edited apart: 64 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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbc2e4a6acdb09fc2282a122bd976e06fc926f7abf3027026c05578e60d158f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift:1747-1799 | Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift:1901-1952 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"c048fc1ffb8e552355724f73d06acc5e169ea83867c95fbcc726f46949e8a94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2412-2451 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:1676-1712 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":2412}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3e71b857f69bc351a9c7cdf585a0e8df7e47d377a1b3762794784310b2ba48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:331-378 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:399-447 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6275153397a964e0b13812d594923bb2ac8bb84b9c61036c66200ffb0e04cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Packages/OsaurusCore/Models/Chat/ChatTurnData.swift:310-348 | Packages/OsaurusCore/Models/Chat/ChatTurnData.swift:353-395 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Packages/OsaurusCore/Models/Chat/ChatTurnData.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b990750e6f4f81ec1d3c798879dc6e607cc1eba0b479345e8a833954e733eadb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Models/Theme/CustomTheme.swift:338-385 | Packages/OsaurusCore/Models/Theme/Theme.swift:811-837 \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":"Packages/OsaurusCore/Models/Theme/CustomTheme.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"4696838b816849e79ab17dd45f02584f6365d33e858ee11aa68b6296e47c8afd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudePluginCard.swift:95-160 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1132-1193 \u2014 These two members are one piece of code written twice and then edited apart: 62 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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginCard.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c72c8b0e044ed48f92eb37d4b97bbf84ed7685134b7f77f66abf69e987bd663"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift:750-805 | Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift:835-892 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"32590badcdc2631699c02b673d604338aa5be8faea80d329d2246473e4cf48a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:708-743 | Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift:463-495 \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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"878ceb08c797c0eb427d3c37e427bac881d4919e8044b716d6cd0e630fb67fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Views/Credits/CreditsView.swift:611-638 | Packages/OsaurusCore/Views/Credits/CreditsView.swift:643-680 \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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9dd4848aa9cb2f2dc86d389d321444ccd755b2e280a85361111bd3d7d140c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Packages/OsaurusCore/Services/Context/MemoryRecallEvaluator.swift:149-188 | Packages/OsaurusCore/Services/Context/ReasoningChannelEvaluator.swift:111-144 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"Packages/OsaurusCore/Services/Context/MemoryRecallEvaluator.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31028c2f1ef7b3b200c2283d809d41fb590ad1d5826700e0218e621c159c1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): helpers/osaurus-wa/bridge.go:861-886 | helpers/osaurus-wa/bridge.go:895-921 | helpers/osaurus-wa/bridge.go:958-986 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e39bb7eacb9330135f96b83ad71e50ea04682d3c4395b4b67aaaaf596261f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7604-7650 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7705-7752 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":7604}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7e8ea55b31fc1e42c634ee2df9c3cdabbf524a59eedfa6535951c8f9f5b98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:620-655 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:828-871 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:499-533 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfd3adaff3a848f57ba7dcd01ab54190d7abe7f21f5de3692a162f29c9def38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1902-1914 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:3071-3090 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a08d4de224096d29fd433f1810ffbb768e98d77ab5be63050baf86f07564a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:436-481 | Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:483-529 | Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:531-568 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d5ba2bf52e64256f072ec45df4fe98797256be4e5e48eef05c7a069e1e06aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:568-595 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:667-695 \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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63227de2491ce5162c0f0fc9ee2088ba48f25c4d5b23197db679a5535950217"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:266-300 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:161-197 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2abe99f1e1ac321511a2725f3c6ecaeb489bbb62622c03c6970d9fa3d2dfe4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Packages/OsaurusCore/Services/Knowledge/KnowledgeWriteService.swift:85-132 | Packages/OsaurusCore/Services/Knowledge/KnowledgeWriteService.swift:135-181 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeWriteService.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"594d1b01f622a6c760158322c6bc3d5502b600d7f8797b9f195412ebe4b6cc27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Packages/OsaurusCore/Views/Settings/ProvidersView.swift:856-887 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:894-941 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d74cec391b108e2847ac2d4ec6bfb09220ef3662393ef7355909ce5773bcee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:503-540 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:597-634 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fbb3b724faebbd784e6dbde763f464035a1afe5b8e0b7ad96b2c65d5030227"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 22\u002B corresponding lines): Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:119-158 | Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:150-176 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:63-84 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:102-125 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc68f4e3137f4aaf4e4bbe7d10b1b331e2dcdec644d3926aa7d90c75e14dcf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift:69-128 | Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift:150-198 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd72bf776f05e1165046eea31947cf3f5c3337f1a54763864a00cf7fd02a7aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:947-988 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1490-1531 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6247cbb6a2783ae72c5f88df9ea5c72f9741942a5e4436f8f6f59b863163622"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Packages/OsaurusCore/Services/GitHubSkillService.swift:447-497 | Packages/OsaurusCore/Services/Skill/ClaudePluginManifestStore.swift:133-179 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"751342e0c5d92df8ba98fedf69d0ec7d1bf70d494c84fc684501ba1588a0a815"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:229-265 | Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:287-323 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"367af0694fb8160b7869ec9e0606c3082f4fbfb73865fbf5a73156518cc79b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1154-1178 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1247-1266 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac533d64d803bad8398941725ff1542265c32d11b46f2107c20d1240c7ce3287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 50\u002B corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1121-1175 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1207-1256 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1260-1318 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 50 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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eaf8c5817233b1769f3aa2b37a6523f338370074d819847dcff0e937e92b84a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:742-779 | Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift:268-307 \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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7315a56466db2b550b989ba47a3184ba59f1faf179c76dcb4ef84ee515d847e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1748-1774 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:385-423 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad17853a4e2b4e6df5f49b0ef981b47b3e4a5c58f4be67da4553dabc85346cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1914-1945 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7765-7807 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"740cef6efc09e8f7d36644d1453797d96b53d1862da8d1a9c7377f217597e55f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPServerHub.swift:197-239 | Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift:322-360 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Packages/OsaurusCore/Services/MCP/MCPServerHub.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fe5704a9a107e20041a44ae20f84eb5148e1ac12b7034a81136c25bd61c08a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Views/Common/SimpleComponents.swift:19-62 | Packages/OsaurusCore/Views/Shared/ShareLinkComponents.swift:61-88 \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":"Packages/OsaurusCore/Views/Common/SimpleComponents.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e91b657edee5cb9aac6fb766dbde7a2bae7671f0dcf86759309040c23ac46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/MockMacDriver.swift:124-160 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/FixtureCUDriver.swift:74-113 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ScriptedCUDriver.swift:204-237 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 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":"Packages/OsaurusCore/ComputerUse/Driver/MockMacDriver.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eeb8ddfbc8b123070cdbdc515cc7f5146f2c606c074776c1429fad3c254b624"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:336-368 | Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:486-514 | Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:614-639 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f08d82f8da4d7dc13d95010ea92afb7e14dc34cb048eba424fea50dc5c4d137"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatView.swift:11013-11044 | Packages/OsaurusCore/Views/Chat/RemoteAgentConnectionNotice.swift:10-33 \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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":11013}}}],"partialFingerprints":{"codehealthFindingId/v1":"0819e44fd4c33147c6cbe9a5f2e4c9858db5bd829a530b3d15ac816237acce8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:213-236 | Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:300-324 \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":"Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c99eae26d739912eb879117ba273c94df9a6dc307e03c3def94558f2d9a366d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift:421-441 | Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift:454-486 \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":"Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d9a55f6f539da3767febf89b9a6720cdedef05d0f4956835ba8fcce21642ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:33-56 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift:302-326 \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":"Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6036c15a25e961a6cec96acdca56cf33dec5923ae6e5fc5a331d388854dd663"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:172-200 | Packages/OsaurusCore/Views/Workflow/Architect/ArchitectChatEmptyState.swift:128-155 \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":"Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"84db24be345b40ba32aa5f3a40c4684d5cd70de98b79bf8e9676933b5d4d236d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime.swift:1520-1552 | Packages/OsaurusCore/Services/ModelRuntime.swift:1573-1607 \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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf44a8210d9ac17a29b19f368e0f0e2e5bb69e7ea3500d2381f918bff21b82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Models/Event/ScheduleTiming.swift:109-133 | Packages/OsaurusCore/Models/Schedule/ScheduleRunHistory.swift:309-337 \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":"Packages/OsaurusCore/Models/Event/ScheduleTiming.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f93c2a21fe431e7f64e0f4a44caf3e54f0b13938e31fbbf04b79fcf04374e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:426-441 | Packages/OsaurusCore/AppleApps/Reminders/RemindersService.swift:341-358 \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":"Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"8346f1a92ff2d1a3a27ceeb8cbb77515ef1184f68861411fe3ab4fdd513c1aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Packages/OsaurusCore/Services/MediaGeneration/OsaurusCloudMediaClient.swift:290-320 | Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaClient.swift:256-285 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MediaGeneration/OsaurusCloudMediaClient.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"174474f9a8c13bbd676f56cf96bbe3580021e13fda1867afb6b8dd621f01f7e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:885-909 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:141-160 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f3c5a17332ae48d824987b9615842cd1c265e6b1cdeb2dea5a5fcb7287b6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Services/Event/Feed/RSSEventSource.swift:147-170 | Packages/OsaurusCore/Services/Event/Stream/SSEEventSource.swift:219-244 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Feed/RSSEventSource.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"039c7c40f0b7bc3c8473ee10bae3b6880ed123f82477c301d9d7c076fe4839a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:351-386 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:431-468 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40a703ec2235221e11155901d61b2180fa79a4ce28eef11bc4cd2c2fcf4b028"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Packages/OsaurusCore/Views/Settings/ServerView.swift:1572-1608 | Packages/OsaurusCore/Views/Settings/ServerView.swift:1713-1747 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Packages/OsaurusCore/Views/Settings/ServerView.swift"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da1a940d0a7f87936c1fae473204491e6a1a9368c053e904570ae286c57b0cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Packages/OsaurusCore/Views/Workflow/SavedAnswersSection.swift:46-84 | Packages/OsaurusCore/Views/Workflow/WorkflowStoredDataSection.swift:37-75 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Packages/OsaurusCore/Views/Workflow/SavedAnswersSection.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9d54d22afa06512ce66807021757fa7f554464e3b3237bb15814beac2a2dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): Packages/OsaurusCore/Storage/MethodDatabase.swift:272-297 | Packages/OsaurusCore/Storage/MethodDatabase.swift:299-323 | Packages/OsaurusCore/Storage/ToolDatabase.swift:353-379 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MethodDatabase.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d764141dc7145ba4a3c21f17db0e9090d75b168bb6e2e4c2a6fc09c769032fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 22\u002B corresponding lines): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1673-1705 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3175-3207 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3556-3586 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1673-1694 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:119-147 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33161ea29824ce5717cb84237b0e975d4eb4ca002e814690c2498ff67ea4fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:3912-3951 | Packages/OsaurusCore/Views/Agent/AgentsView.swift:3954-3986 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":3912}}}],"partialFingerprints":{"codehealthFindingId/v1":"8338ee7bf14ae0eb7ab33e3245b1ea374820025f7c1abe79ca0010f6f7541a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift:36-43 | Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:520-527 \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":"Packages/OsaurusCore/DevelopmentDesign/CatalogComponents.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"734ff468a4ded586d80f3a6db7045c6640e5f97509e15dd08f1d553af307b44b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Packages/OsaurusCore/Views/Project/ProjectsView.swift:364-396 | Packages/OsaurusCore/Views/Settings/OrchestratorSupportSections.swift:148-186 \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":"Packages/OsaurusCore/Views/Project/ProjectsView.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f4c091a10e0c2aaabadfd4993ff8d8798a8c56ddcf6be0ecddfc49502102ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentReorderSheet.swift:18-51 | Packages/OsaurusCore/Views/Settings/RemoteProviderReorderSheet.swift:18-51 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"Packages/OsaurusCore/Views/Agent/AgentReorderSheet.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd095038647b8ed918d2b72000d674aea4f0238bdf1b2dabddca46059587b65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:611-642 | Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:650-681 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e190eb29643b2e4f6a1fbb4137b34bf362d4643fcc3fde5552a189989c616d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Models/Schedule/Schedule.swift:620-641 | Packages/OsaurusCore/Models/Watcher/Watcher.swift:218-238 \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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d7e9fbe4101d05c1db39996bf48a6e5fe00bf3d4ef86bd354885a237cdee65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:963-988 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:990-1019 \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":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb671d3dcc7cc946978fce9bfd67203c5d7eafcfe480f784cf57c00c93609c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Services/Context/ResponsesEvaluationStep.swift:41-75 | Packages/OsaurusCore/Services/Plugin/PluginResponsesCompatibility.swift:17-40 \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":"Packages/OsaurusCore/Services/Context/ResponsesEvaluationStep.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"335c641d2c16f574f58b545c1d8aa24106f79f81eddb1b607f217c80005fc6cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Packages/OsaurusCore/Services/Inference/CoreModelService.swift:312-349 | Packages/OsaurusCore/Services/Inference/CoreModelService.swift:358-390 \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":"Packages/OsaurusCore/Services/Inference/CoreModelService.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb91142baeaa1a98a188bba3f1392eb451989d5d9b3c9eb92eaef847392c443f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:957-973 | Packages/OsaurusCore/Managers/WindowManager.swift:430-453 \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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e22bb14084c5242f79f01d20fdcb96d8c9f46912d380fc7be83a1c5cd1616a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:3482-3515 | Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:1532-1566 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":3482}}}],"partialFingerprints":{"codehealthFindingId/v1":"c320898acfcbbf75341a14d848da27ee3e12d33933c76281638aaf76c4193420"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:563-602 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1241-1275 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9e9d105d6cc550da0cd823c86fb0c2d7a3daf709a80dc4289eba18658db37f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Packages/OsaurusCore/Models/Schedule/Schedule.swift:544-577 | Packages/OsaurusCore/Models/Watcher/Watcher.swift:135-168 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"d504432fa6f34b8101db028cf57d5d21c5cd2a9ef5e378688208f4e79bc5ef79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:485-500 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:188-208 \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":"Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"307951af1ddeb3ff70c4c1efbdab2e31502b8116c8c62c8ff633277f5ef5e1e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:256-269 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:209-223 \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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a4cddeee4ceeec40a68c97a7458ea4ccd0e1c2c0da32e9905c50357844e486"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:2918-2956 | Packages/OsaurusRepository/ImportQueue.swift:190-230 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4995b53fd7de96cabd0e1ea9bf659b1b3095505f03b5956cdf5cb303075cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1305-1328 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1330-1355 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08f5ce982bd533696cdfa464d85810b82168c1d1e15a449fbd6da364a124f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:202-229 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:248-273 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:827-866 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"50314a4e5da352fb5b9f15b13e505c2efdfeccb0d65b3c457879b71cdb725285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:310-337 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:391-418 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d1da56dce6eb1835bdf61b64b9a8d38883bb67af3a681a1dd8a530aea5cb1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:305-352 | Packages/OsaurusCore/ComputerUse/Driver/Mac/InputController.swift:65-114 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"488666c9ce3b1629ca994c4d3cf397cf71f4b9c92e9a30b840453804398f313d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:247-276 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:915-939 \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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bb8033c8b5a42340f97ed5790fd981949dbfa8162f3f586e92300a5e15617c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 41\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift:30-70 | Packages/OsaurusCore/Views/Settings/ConfiguratorSettingsView.swift:28-72 | Packages/OsaurusCore/Views/Settings/OrchestratorSettingsView.swift:40-83 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 41 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":"Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac364498abb345e47725e21205afc4d8b66aa4fc1306bb5d5d15843f2f41cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): helpers/osaurus-wa/bridge.go:1053-1091 | helpers/osaurus-wa/bridge.go:1097-1132 \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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"529a9b41d635e1fcfa557df6eecee657864b577cefeb2d19d384819820d41ef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift:205-219 | Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift:221-234 \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":"Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c1fd6c7262d0a7f4039c2bd8977eb7f9af7eba9c6ec4a36027d833a8206a22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:486-521 | Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:527-568 \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":"Packages/OsaurusCore/Services/ToolPermissionPromptService.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"8879e673c9f353f0114b993273724031d6ca4f1f849596a4e9d3b91546b57637"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): helpers/osaurus-wa/bridge.go:830-853 | helpers/osaurus-wa/bridge.go:928-950 \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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"2837738e542c4f0ba7950604927c6579038ee54ef115eaaaffb3a2092be59d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:540-575 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1257-1283 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecec84313b280706c77542175d1b553bc04edeb6eac888c0624a2dca84673265"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:121-155 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:116-156 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fc3ef0459bedb75f23943d2beb0a14d789fc3b6addca46c7b72f390bb036f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:516-549 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1194-1221 \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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e7e5f2a3b59b351cc363c9f74b65108796936d1e3cb1f0665a1a11b6f8effb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:85-117 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:74-100 \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":"Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a8be20a3ab96fe745997328c500bea61e1c575ace5d981741f035106a855c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift:325-360 | Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1630-1650 \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":"Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d11efc4e7debee50436dc0e8a4779d6519708f1b2fa203d89cb1fd8d21db3c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 41\u002B corresponding lines): Packages/OsaurusCore/Services/Knowledge/KnowledgeSearchService.swift:74-115 | Packages/OsaurusCore/Services/Method/MethodSearchService.swift:52-92 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:77-118 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:174-224 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 41 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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeSearchService.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8f59bdfffa7ae2e67355d41450c58f53dc35e5d0bc813a103dea00f04f0dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/ModelCapabilityLedger.swift:136-157 | Packages/OsaurusCore/Services/ModelRuntime/ModelPrefillTuningStore.swift:68-90 \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":"Packages/OsaurusCore/Services/ModelRuntime/ModelCapabilityLedger.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1a3b730ab46ea26bf529652c426776bc8ae350f53e9d4e47739cf07b834f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1203-1236 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1309-1340 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8057a26db7cd0239aed5648c51d0fe021fea3d5e3daa5d703a1f04ff32f67462"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:190-216 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:353-377 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedf87b983fe82f74ef8de665de2a4f6f112546e1090da67c9a1f2c7bd49c446"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:725-745 | Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:747-766 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/WorkflowShareService.swift"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf53a58123c8273fb710443493d9b37ff454c84c38e0570f90a2f2f3d800f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): Packages/OsaurusCore/Models/Knowledge/KnowledgeCollection.swift:75-87 | Packages/OsaurusCore/Models/Project/Project.swift:61-73 | Packages/OsaurusCore/Models/SlashCommand/SlashCommand.swift:72-84 | Packages/OsaurusCore/Services/Workflow/WorkflowConnections.swift:76-87 \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":"Packages/OsaurusCore/Models/Knowledge/KnowledgeCollection.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a2eb87815fed99eeccb98d3bdab785d776fa3224cf3734d309dc78d110f3e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1123-1151 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1184-1215 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92cb006535dbca4dc89777ca0716d51d1f29019f5626f198ab1998696578e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceCard.swift:78-94 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1018-1032 \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":"Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceCard.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb8f459fa477fb8f0fac78cdf765495cf3fec91a1dcd497b45da69e3785204e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:971-993 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:1047-1069 \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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25d8c6ce0c591fd9bc293b8e78b835da1fa3d72a898f9da574d2ebe9fbd4ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2459-2487 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:1740-1772 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"023ab5860b3faa46128b7e3bd1ad04847443881e538eb156a8d8d724bb910d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1217-1250 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:930-961 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1925f0d15fa86555d7490219c1827ff9b9c8ed9ac165f05f9cc9e6dc1e709c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:592-618 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:873-903 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:535-560 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"da58cf6c839e33f48f807a0534276aa8f259f832d6914469770b858c3c06a647"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Settings/ServerSettings/LiveActivitySection.swift:107-129 | Packages/OsaurusCore/Views/Settings/ServerSettings/LiveActivitySection.swift:140-163 \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":"Packages/OsaurusCore/Views/Settings/ServerSettings/LiveActivitySection.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f44fd6f829511a6a45529ab70030491225243a056eb279c88da437a8d734901"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:282-305 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:249-272 \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":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdc25d74edacd9c2c5132952510d6b7cc57c6abc3e208be7e8540d5dde2db26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:317-349 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:421-453 \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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d77db6b2c247590d2532795840cfbcb0dcdefce5ad913105e308c948ed22103"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:2585-2616 | Packages/OsaurusCore/Views/Agent/BuiltInAgentAvatarPicker.swift:123-147 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":2585}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56340581c41ff27c520ff66a85849ab9376801271fcedc703388333b505bfa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1604-1657 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1709-1751 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad4cf962def4bc3e950a0be59479505adaf2848842ab500a67bbacea5dd9dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:795-830 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1087-1122 \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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c05c94a01dd9f903b5686302936411bc0959b1eb5119bf28bf82fd17c8fbe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:832-846 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:985-999 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7b8c92b4163bc55f7052b38f6b97eaf287e7438f162aa70b679c85e596e6f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:649-679 | Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:684-709 \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":"Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96c5488fcd9e7610d72dd2fc734cb084baac99aa9896174d1adaa942cb46c3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:474-490 | Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:653-669 \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":"Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e587c106c30d194db6fff9dba8541d2b78c6e500efa25d30e86bb2adef9cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift:963-978 | Packages/OsaurusCore/Models/Plugin/SandboxPlugin.swift:97-114 \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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e592675a6354a3a262645108f18f0d767e61ccb3d53d10c883b4c7d0157ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Services/Documents/CSVAdapter.swift:290-312 | Packages/OsaurusCore/Services/Documents/CSVAdapter.swift:314-341 \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":"Packages/OsaurusCore/Services/Documents/CSVAdapter.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8533276d7710773c16febb7366652c394cc509d3985e3b5cfa05ee02b025c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Packages/OsaurusCore/Services/Provider/ProviderCredentialPromptService.swift:88-117 | Packages/OsaurusCore/Services/Provider/ProviderCredentialPromptService.swift:124-156 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/ProviderCredentialPromptService.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16e88127658e0fbe23a57e4422bedb0b1f4758c8052a207f8d15be9c6bd04b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:805-829 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:902-935 \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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1170d6f6ef5bb8b10daf6bd7af8d743d27239c938bd39c1a3fd99d82b41a107"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:585-607 | Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:612-635 \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":"Packages/OsaurusCore/Services/Template/WorkflowShareService.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f60939b5880a86dde1bf192567395cce71833ad12a7560ef5c2e6556df874e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift:341-371 | Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift:336-355 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd75bb4f4101950512e0a35958c524a82c2dbcc296061b7e0a5e073edd2e6a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:79-93 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:169-181 \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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"563c9a6bb62cdc4268386928fcc5f17a54bcab7c70891c00ed49316ec997c30b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/AppleScript/Knowledge/AppleScriptDictionaryService.swift:175-192 | Packages/OsaurusCore/AppleScript/Knowledge/AppleScriptDictionaryService.swift:194-206 \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":"Packages/OsaurusCore/AppleScript/Knowledge/AppleScriptDictionaryService.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbdf30816bd8c8a0a62b1282f75cbd54170f5cbee714807824fa467bc26f680"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:1003-1011 | Packages/OsaurusRepository/PluginInstallManager.swift:308-316 \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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f4b83698fabb75d8122b6c790620d7923ffbc9d140bc4494c790a4f2a4ff89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:727-742 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:840-858 \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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3bc5a480c43aa8e86dedd8d0ef835617d4fe0ac22f044c12cb70e3eb3a6837"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:108-141 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:143-178 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"df056005db26e31af791e3796e3f140baee99221eb6b6f1d26b8702ac649aca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:417-439 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:637-656 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37c4514a040079f56750947996b40c356825e55a5f8f924cc1241bba23cf80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:811-832 | Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:836-852 \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":"Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"900fd3ff9af69b7e3a386416a700e7aa41b6e7069b22cfcff24deda72da3e7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2256-2280 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2282-2302 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3005cb34a6e571c693d36a0756480b079a0246b3172fbab486aa7591279299"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:3454-3477 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:3489-3511 \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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":3454}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15933cfd30edd5c855e2357460890edd30a64ee0382df6bf285049981ba82a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:675-703 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2250-2281 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"42706260f15d2280b28e18f9dcb8255c16f2221d9788b82ee66db439740c15d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyCustomRuleEditor.swift:345-375 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1686-1710 \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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyCustomRuleEditor.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fcc705626a34209a9cff311e31f0ac55de6e726116580093c38eb4b2c21c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:891-912 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:1113-1128 \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":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4879fe19e9d98c318921cc812536db376f9fe40e5e950faa17026a7a457d0ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatView.swift:13132-13172 | Packages/OsaurusCore/Views/Chat/MessageThreadView.swift:111-152 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":13132}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d58f1304cedb96888a1c353bf123da1490c5ef261dd2c3b4cc8d8f1de0d974"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Views/Settings/ServerModelsTabContent.swift:158-183 | Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:402-425 \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":"Packages/OsaurusCore/Views/Settings/ServerModelsTabContent.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6084756479407002993119bd44784593941ceff0086458cd9795fe60f709118"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Services/HuggingFaceService.swift:399-418 | Packages/OsaurusCore/Services/HuggingFaceService.swift:423-440 \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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"703164b9c432c2eab600eb7c25c1c09636fcafdf2153579725fab3e2107c5b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift:356-376 | Packages/OsaurusCore/Views/Workspaces/WorkspaceAgentPickerOption.swift:43-65 \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":"Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6740bb0bff7d2de00b51f735f1aa9a3b1f0bc6d9c03315a0adc49ac1e6ca1dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1461-1484 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1882-1905 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2321-2349 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b6644b0acff3c0717b7d4a5c5bea23b908aa3f6e4459aebe5d87b02a2c3215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift:24-56 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift:60-81 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d37d482f1638198fd9af017a4c2a36da160c1d59372dbf8f06447dcb3d26b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Packages/OsaurusCore/AppleApps/Mail/MailService.swift:359-382 | Packages/OsaurusCore/AppleApps/Music/MusicService.swift:76-92 | Packages/OsaurusCore/AppleApps/Notes/NotesService.swift:62-82 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Mail/MailService.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafe5f7dfb1e93f2e5b35cf84dc2027713f93ec99992e09edcba0293654fbd6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:953-975 | Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1560-1580 | Packages/OsaurusCore/Models/Configuration/ModelInfo.swift:580-602 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"29914ad25965489f95bad593ca306f6874966e86eb1c182430d7eabcca45eda4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1314-1331 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1834-1850 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b302a16d0d8e1406ae5a02b68e7b8e1fe255c4a0de8c6dc46b7b60078e366da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7322-7341 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7353-7368 \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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":7322}}}],"partialFingerprints":{"codehealthFindingId/v1":"da056cb9ef771d6ddd9d48714db5a726a881a2e5d8afab207388d5e60b9885d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Tools/ToolRegistry.swift:2741-2763 | Packages/OsaurusCore/Tools/ToolRegistry.swift:2768-2790 \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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":2741}}}],"partialFingerprints":{"codehealthFindingId/v1":"158ff1806953abdb9dbcd4b7a73a64fa1989d72a3dff3624b27296a2df4237b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:3984-4010 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4016-4046 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3984}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92600ecb4e9092e946f8c5fa158901989bdcbd9bd22c775a645c94eeec5aeef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift:343-358 | Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift:258-275 | Packages/OsaurusCore/Services/Documents/PDFEditor.swift:329-344 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"04977d633c54d47784c4144fdea71a1a54f08b822785da74dce12fe63ad7c470"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:962-985 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1184-1205 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abb4bdc2bcf3e1c83e77ab75206a53c42ee82b55e8a9bb04594d5440ed8f9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Tools/Database/DatabaseImport.swift:565-581 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:61-78 \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":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baf0a835fd9144b3f5b696a4fea6b3a9a962638f458df857bbef83cb0bd6ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:5639-5658 | Packages/OsaurusCore/Views/Settings/OrchestratorSupportSections.swift:214-233 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5639}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9eaf9406a17a8b55ad6162d35e82bebb41d8ef9937f003f5d7ded46669b64c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Views/Chat/AtFileMenuPopup.swift:110-131 | Packages/OsaurusCore/Views/Chat/SlashCommandPopup.swift:92-109 \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":"Packages/OsaurusCore/Views/Chat/AtFileMenuPopup.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f7a2865491e58d1113d17e6e79a4235b521269f4ed7a571316ad7d800bfcc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift:1294-1325 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift:1329-1358 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e47a150d95b2e77630f2133e9262c11f59f41d7d46e564bf766553e8c7e07b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:80-108 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:97-128 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c15dce056bc089433bf3e73a831353d6d7fb7ac8c397435cabeeba8d117e5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Services/Event/FolderEventSource.swift:446-464 | Packages/OsaurusCore/Services/Knowledge/KnowledgeFolderWatcher.swift:172-195 \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":"Packages/OsaurusCore/Services/Event/FolderEventSource.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b487b35fa7caa4045a51752f3e06e51357b73d567a0201ba53c6a6a93c30c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:583-604 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:606-634 \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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac3baaf2c50fb198ea93bc9a0a79245e36c6fcc721b3c8871a3d390fc5d6f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Views/Model/HuggingFaceImportSheet.swift:58-76 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1843-1864 \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":"Packages/OsaurusCore/Views/Model/HuggingFaceImportSheet.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fb410d036065c1c140b7029b6e643e209584b0ed1a90e134cc615be1d0510a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:531-553 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowDetailPage.swift:218-242 \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":"Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e73a79c0e70d92fdc414ce71535c617dc8f07bfa63da29f5fa36a71c4c8ac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift:73-90 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseTraceLog.swift:66-81 \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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"610689be4b2d11ef6a1ea6caf04ce173e04173cf52f1068dfa4f46350feb6819"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:8982-8992 | Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift:674-683 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8982}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03c3ffd401c51f12115b9baf1a35066b741d217053b3396b3c1c430bfdb6f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1729-1744 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2186-2203 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1729}}}],"partialFingerprints":{"codehealthFindingId/v1":"749f40a189958d30884ebc6050d4d324470b4a3b3be8d2fab42f57d45c44286c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Storage/MethodDatabase.swift:353-371 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:484-504 \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":"Packages/OsaurusCore/Storage/MethodDatabase.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"30aa837d5c89490e27e4df021be2b3158fa999d4a663c6477d0f42b4b129afaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:1565-1590 | Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:1809-1828 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f14b67e57eb57937d4c547cf8bda6f5f6c2688572b613d20fe92b1bade90bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift:537-558 | Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift:714-736 \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":"Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1f79756bb1a2d9a5190bd91106643ab079fded8e6df8d81fdd92ce255df831"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:229-257 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:208-233 \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":"Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f7babc14e4c22bba3c7921eb321299efe29e10d9faaf595ac60ca5bf4d3013"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:156-171 | Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:244-262 \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":"Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fa3202871800a43e022662735dbae45d602bfe8998d6340032bf39b7941b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:774-806 | Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:816-850 \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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92a94773153d3d44471eb94ceb6ac8983cedf7fe2a7939a8e12e544d9b6a217"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2087-2106 | Packages/OsaurusCore/Views/Workspaces/WorkspacesView.swift:524-547 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd18ac522b0ee6b6549f5fea9256942125c5d4187f255cc704bb94fe3ddd564b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift:1236-1249 | Packages/OsaurusCore/PrivacyFilter/Core/StreamingUnscrubber.swift:261-281 \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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bed4f7ff3441beb3410eaf1582f13c66d0f6c515d01d01dc88c1302b43dc24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:692-726 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:417-452 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5a768a096d83c98fb9ee6c9f1ad6b411a70b96a8fc98f3136174c2285ed715"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Tools/ToolRegistry.swift:2260-2276 | Packages/OsaurusCore/Tools/ToolRegistry.swift:2280-2296 \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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":2260}}}],"partialFingerprints":{"codehealthFindingId/v1":"254bba1622d10573d40041f3452f8f8cfa45c9780a29aeb83ad65730d753737c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:1014-1048 | Packages/OsaurusCore/Views/Common/CodeBlockView.swift:500-517 \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":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ede1d75627fbf054bd914968ead81cbc70712e86bd47894a8854dd1ab85deb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Views/Settings/ServerSettings/CacheSection.swift:476-495 | Packages/OsaurusCore/Views/Settings/ServerSettings/MTPSection.swift:261-282 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/ServerSettings/CacheSection.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c497efe52f062a204a8c4b16bdf7d534d5cbf8a70c4ad830739b29c58d2abd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Views/Workflow/Architect/WorkflowRequirementsPanel.swift:96-118 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowInspector.swift:193-212 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Workflow/Architect/WorkflowRequirementsPanel.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de4f775f5954f965d032b59ab3e819f92fedfdfc9b67afe324cdb6c9d921406"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/AppleApps/Music/MusicTools.swift:98-105 | Packages/OsaurusCore/AppleApps/Shortcuts/ShortcutsTools.swift:380-387 \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":"Packages/OsaurusCore/AppleApps/Music/MusicTools.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"721ceb6f4d7f9ad3a8ee7b62f71b0807ee8fda146e0aa867e6a51c4f02de59e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:977-997 | Packages/OsaurusCore/Models/Configuration/ModelInfo.swift:604-624 \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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"3455c2b8e2c5faf44f6b39ebad9f08655a7926216e5a8ece3e6eb4f7417313c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 43\u002B corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1347-1391 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1471-1513 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1526-1572 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1587-1630 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 43 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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af923aa0dc29be14fa323b09f783d9eb62d7a5a9854d7d56eb67682693b9f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3956-3977 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:4144-4165 \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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3956}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb7cffb633cd953b8c6c61d5f0b00915db1387dcb302892e63ef09e54f3001a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:590-608 | Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:610-628 \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":"Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f13ff277514a7280805d80d962b4f1628e536462e2fd3ab630ba48e2843a557"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift:963-980 | Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift:994-1010 | Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift:1022-1041 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86ff36d9a39c767e5f3e2b4a1665f650d3583237cd63f59560d9ddcef88a426"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:157-185 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:158-186 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccbdf5d6d29750f6b35d4a07a06399188bd524d06cd5965b17b6edbbc68d25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Services/Method/MethodService.swift:123-142 | Packages/OsaurusCore/Services/Method/MethodService.swift:144-162 \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":"Packages/OsaurusCore/Services/Method/MethodService.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca21b29ff07aff76325090ba279f39e4413572d738927769819a489722b57fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Packages/OsaurusCore/Services/Router/AnnouncementsService.swift:125-159 | Packages/OsaurusCore/Services/Router/SupportService.swift:172-203 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Packages/OsaurusCore/Services/Router/AnnouncementsService.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d77988a06ca5abdc2c547c6a17dab314de0eec3e2867f6044e14f99fdede65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift:131-141 | Packages/OsaurusCore/Services/Router/WorkspaceMembershipAttestation.swift:77-91 \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":"Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0d0a0f749c868f0744fb254ad7946f980ca50d69dee629c8f84f0c4bf7c767"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Views/Chat/CompactionDialogView.swift:190-209 | Packages/OsaurusCore/Views/Chat/CompactionDialogView.swift:211-237 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/CompactionDialogView.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"150185f534dba231b097cde6aa02345ad0fe1b2bd43b3bb420e7f9c16a7905f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Packages/OsaurusCore/Models/Method/Method.swift:29-59 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:371-405 \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":"Packages/OsaurusCore/Models/Method/Method.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"612260e99dbe7e95ad3ecdee396e57cac30e903f76d50b9cc41c54da38413881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Services/Workflow/WorkflowRunService.swift:171-188 | Packages/OsaurusCore/Services/Workflow/WorkflowRunService.swift:194-212 \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":"Packages/OsaurusCore/Services/Workflow/WorkflowRunService.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"790c85ebf283d8629ae022a0aeb993a486ae574363b2b71bc76b816f4521dc61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:105-128 | Packages/OsaurusCore/Views/Workflow/Architect/ArchitectChatEmptyState.swift:52-71 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"88022c84fecc0ad0b85cdb5d749eeb2b39d472002be9c83348988ce6b0edc834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:183-198 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:229-244 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:408-423 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"6729693ca6ea5cdfcd0db1b9b072b550a6ea95ba585e85b3a6e996c5fe66e6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Packages/OsaurusCore/Models/Event/EventRun.swift:84-118 | Packages/OsaurusCore/Models/Schedule/ScheduleRunHistory.swift:57-87 \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":"Packages/OsaurusCore/Models/Event/EventRun.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"007176fa99c1b962e4b7beb20e111e8622296560a1e8be1671eaa5d6c810063d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:3558-3586 | Packages/OsaurusCore/Networking/HTTPHandler.swift:3588-3614 | Packages/OsaurusCore/Networking/HTTPHandler.swift:3616-3642 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f51f075ccffd87afee088e5dd949ed9e843927a70627e25dbd9617c3cc4e6db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Storage/StorageFormatConverter.swift:65-80 | Packages/OsaurusCore/Storage/StorageFormatConverter.swift:84-99 \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":"Packages/OsaurusCore/Storage/StorageFormatConverter.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3d78cd7e0f3fd484de4a3b50f4e3ba48c4d6ed21b2e7b1847cb01743c52a08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Models/Chat/ContentBlock.swift:1346-1361 | Packages/OsaurusCore/Tools/RenderChartTool.swift:881-896 \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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"780aafaa0bc46c7aaad1337aef3e99313bf73fff671addc28d169eef05436ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift:1040-1067 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift:1069-1101 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"e982f6ec7bb8d23a7da07067974a1505c583388b6e8975a2910e9deac6fb5688"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1429-1452 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2530-2540 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f71691015ee4013ec6950e9f259714d92377118837b3f7057c2cbe44e59de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Managers/Model/ModelManager.swift:614-631 | Packages/OsaurusCore/Managers/Model/ModelManager.swift:633-655 \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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ac0c5f1f99b69b7769134c82e32f70729b36b823f10f21abd58bf638be9386"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:405-419 | Packages/OsaurusCore/Services/HuggingFaceService.swift:1062-1080 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"f432824f5dee2f7e94092aaf262b3975cd610297702ad08e8752217d3547c243"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift:293-313 | Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift:315-334 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a405bf4584961237b55881da382e7c4d55a67050bd6b4af4f472024ef127d3f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1054-1067 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1086-1100 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1a80214f343a699389ba11a5872c298c1ec53ed34587d4d641d4c6cb4f14d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Packages/OsaurusCore/Models/Agent/AgentStore.swift:632-666 | Packages/OsaurusCore/Models/Agent/AgentStore.swift:668-702 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Packages/OsaurusCore/Models/Agent/AgentStore.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"76eb3042eb1f0bbc07dff123fa1aa9391f3fd5bf5bc072bd1928621619f57528"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Views/Onboarding/DesignSystem/OnboardingComponents.swift:325-339 | Packages/OsaurusCore/Views/Onboarding/DesignSystem/OnboardingComponents.swift:351-362 \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":"Packages/OsaurusCore/Views/Onboarding/DesignSystem/OnboardingComponents.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ebf3a86b086bac4d1b10cea8cbbe7821e80b90b54f41cb8b3581797119f38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:728-752 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2424-2446 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fe14d4da7552ed939bc0e293b9378418f7175e7035a70897a1e4076e2fa277"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:503-541 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:543-570 \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":"Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f541c2d96da2a6f4929b8af8444e38655d52e6e3be1b7762d8be40cce728e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1074-1104 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:2025-2056 \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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c41d57dddac952ae37541986a88ad7f9bfa5aa41702cd84765129df1affcca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:13447-13462 | Packages/OsaurusCore/Services/Harness/HarnessTurnDriver.swift:90-101 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13447}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f101febc1c8ca6d34f63a36736ccd95c523b548593b7d1caaaa0471bf9bd37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Tools/ToolEnvelope.swift:80-104 | Packages/OsaurusCore/Tools/ToolEnvelope.swift:184-208 \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":"Packages/OsaurusCore/Tools/ToolEnvelope.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"839a9228ad13d15f470ad27759a1859847887833dd3abf9082e74759f82f5abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:82-104 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2284-2306 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4876a33188a369c045d53a0589ef9cf6bc3e0549b631c072aa827e014c1ef792"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:808-843 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1683-1722 \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":"Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97b2d7d18fad8218213b2dcfa812c1d9cba560c93c93ca069e070080b051e4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift:103-123 | Packages/OsaurusCore/Services/LocalReasoningCapability.swift:88-107 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aafdf10b55dc07d883d2d8ee40a584591f5d00efb6f0a9bec2bb573a5bdc208"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift:162-185 | Packages/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift:229-256 \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":"Packages/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2755cbf0dc71fa098b83dd43f18fd02f532b35ba64772b37a25d04afdfbec79c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Views/Chat/AgentInlineBlocks.swift:333-355 | Packages/OsaurusCore/Views/Common/SharedHeaderComponents.swift:98-115 \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":"Packages/OsaurusCore/Views/Chat/AgentInlineBlocks.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb102692025c925603c9481610dbcea5b7b5d8d19fc22fccb09f0a8c6536bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift:85-107 | Packages/OsaurusCore/Views/Plugin/ToolSecretsSheet.swift:117-144 \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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b100160ce64a0aefb25924c632cfb0cb39a4bc6fcd039a96eec826bdbedfe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:393-412 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2565-2584 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"a844263663dc172f39fc3f4c7a36806764004439e7a6d3c478c2970407d754c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Models/Agent/AgentGenerationSettings.swift:20-39 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:1586-1612 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Agent/AgentGenerationSettings.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"04907aee91f320049787e5c7c72513c38bc8e2e833f2cfef8d73b5b34caed0f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Models/Workflow/InstalledWorkflow.swift:46-61 | Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift:64-82 \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":"Packages/OsaurusCore/Models/Workflow/InstalledWorkflow.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc8c457921352b61a7199cff06f3915e93904a2f6cd1ce936bee9217964eb1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift:141-162 | Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift:276-311 \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":"Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d65596fd8f107b50fab451227ca3edca165d143485686c40a2ff511952cc20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:398-429 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:431-463 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe78e9f70dada1cb7c7ea1324d24e5b4076ca4e7fe62ac624931df1bf7eed071"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:558-568 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:590-599 \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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c5e50146c19ad725d11c15c0ccaad3843f682e061f30132649b8e4c646e406"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:823-857 | Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:867-894 \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":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"48145e87aa4738dd27a313b9bbd1208ff875b62a6b6860395350f2e95d702d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/Knowledge/KnowledgeLinkResolver.swift:160-173 | Packages/OsaurusCore/Services/Knowledge/KnowledgeWriteService.swift:319-337 \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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeLinkResolver.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"21198c2c7b02a9ff501e9d9b2078d5fa7735c3a0b508b9bb91a250dd0d42c8ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Services/Knowledge/KnowledgeSearchService.swift:119-141 | Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:226-244 \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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeSearchService.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e787ceacd469e338bd4a356b2c5ed3c10f40d5d36ac9f797e18494b9e595d85c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3489-3518 | Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift:997-1028 | Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift:1033-1061 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":3489}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0f38dd3d99cd6e72b8aa020e41caeb8458243a1da21edf3694a672c0c24703"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift:32-54 | Packages/OsaurusCore/Views/Plugin/ToolSecretsSheet.swift:50-81 \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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"715c5b2345d12a209faa410a4634259771f5e1ea0ceed242d6c79e829df5ff69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Models/Insights/ActivityFilter.swift:201-213 | Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.swift:241-256 \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":"Packages/OsaurusCore/Models/Insights/ActivityFilter.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"da388d5b17f3a1d01b4ba6f57bb0f4e2ecc52bd06a7b721f8c5b16b239ffe100"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Services/HuggingFaceService.swift:562-583 | Packages/OsaurusCore/Services/HuggingFaceService.swift:624-645 \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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"32be31f90d36dc92fcadd3a10dd933247a577bf527379fbbf5236437201c0e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Packages/OsaurusCore/Models/API/OpenAIAPI.swift:964-995 | Packages/OsaurusCore/Models/API/OpenAIAPI.swift:997-1032 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5dcb63c8e65a8a966b3e8822ea751fce80807c4f6b2cf310283af210cc20755"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:43-69 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:78-108 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22d25e85c49341d372aeb792c35f882b9d6f21f054ef8f2fcb69faae503f82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:398-415 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:293-309 \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":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d934ecbbc4f33b1d57c8a8fdcd1a01ba8d21151bc9c4b53fb381fb2f45b7fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): Packages/OsaurusCore/Services/Inference/MLXService.swift:255-281 | Packages/OsaurusCore/Services/Inference/MLXService.swift:283-309 | Packages/OsaurusCore/Services/Inference/MLXService.swift:311-341 \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":"Packages/OsaurusCore/Services/Inference/MLXService.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce3a6f8c891e1498242d317e35bc6ab417e95d364b24891b775429096a3df6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift:158-186 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:1210-1238 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:3015-3043 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5ffac491ccc7de5df0407a24df41d4f8422997c1c47ea9e0ea7124340f4fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5888-5906 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5926-5944 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5888}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2c92a9278839562e054f82a7ca02e0f6f762159347823038feb34939b36d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Packages/OsaurusCore/Models/Agent/SkillStore.swift:73-101 | Packages/OsaurusCore/Models/Agent/SkillStore.swift:147-181 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Agent/SkillStore.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ded93230c6ab5f6a95f8e80c3d280a4ef6c1c7da4d6adc7b47f84d9b3cfbd65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Models/Configuration/SearchProviderConfiguration.swift:260-288 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:1957-1981 \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":"Packages/OsaurusCore/Models/Configuration/SearchProviderConfiguration.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7654f86a1ec49d8fb99fb2690da1d43a258d5d63f40604cff9c8529a023d164e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift:51-70 | Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:40-59 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1097044c126734568c9c0c9281ccd6c80d96583fc54c2f7204e90d8c8273a35e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Services/Email/EmailChannelService.swift:40-63 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:58-82 \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":"Packages/OsaurusCore/Services/Email/EmailChannelService.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"107915653c6671a3706457ceb11c1d8408da53a824ddafa1f4261cc0feb0b627"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:859-866 | Packages/OsaurusCore/Storage/ActivityLogStore.swift:556-563 \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":"Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e30a5e864df4e88685eb4d7bf0fb478ad9708aef41fe0b95ab31f61ae2de1d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Storage/MemoryDatabase.swift:3013-3040 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:3091-3118 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":3013}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1f1fef50e05154d16d5d262763dfaaabe79fcd4ecbc09aa44caa81cbfbc0a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Subagent/SpawnDescriptors.swift:225-259 | Packages/OsaurusCore/Subagent/SpawnDescriptors.swift:276-302 \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":"Packages/OsaurusCore/Subagent/SpawnDescriptors.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0387c5c77ef235147cc4937edc13287ba306fb4a69dc0d23fa51006217656c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:509-526 | Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:528-544 | Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:547-562 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41286fbdeac64b557d77d7863453f226b0303dfa0fd207a4bb047859639eeee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift:371-397 | Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift:403-427 \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":"Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c9ce8aae6efb51eb178d80fb5685943dbcc45dfecfb7ad7b7b4ad1cb46f6d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/AppleApps/Maps/MapsService.swift:292-303 | Packages/OsaurusCore/AppleApps/Maps/MapsService.swift:379-390 \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":"Packages/OsaurusCore/AppleApps/Maps/MapsService.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb5578f64551fad2bd686c2f456cc7ad1dc94dff63b53642e33401daca9e5f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:54-64 | Packages/OsaurusCore/Models/Event/OsaurusEvent.swift:509-518 \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":"Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b58f0e2c38b97817da0a56a1d3a763995e7a5ec29eb79bc16cffd4e83980cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift:799-817 | Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift:820-838 \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":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"2775aa4f64ad02b838205a5d65bf8c55caab7d380c3d33391a6d67387f11bfe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:145-157 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:201-213 \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":"Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a458e3b2216fe398cb8fb751e8b98a3f9da5187a17493b6a95a1a8b84f9f1d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift:365-375 | Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift:422-441 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0b492bfcf8a350d656a70675fffcd370914e23ac478198e434e8068daec3fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift:187-206 | Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift:212-228 \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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94237cc08e5a4acfab50f259a28d711900190ddccb94f877e6e032d65120176"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Packages/OsaurusCore/AppleApps/Mail/MailService.swift:592-624 | Packages/OsaurusCore/AppleApps/Notes/NotesService.swift:126-151 \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":"Packages/OsaurusCore/AppleApps/Mail/MailService.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"335b2ae62944ddd1b8d50a6fac091318f5003a548d24b2f0ef30846ed37fb2a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift:146-161 | Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift:167-177 \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":"Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f27a39f1e695436703a088f2f6d1480dc66a72e242acc56507dbbc2be7f87d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift:127-144 | Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift:146-158 | Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift:175-193 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ce578901f23c01921f371fc83ad9f0ca4338568f9e6dab975f7c3e1f51b4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift:142-161 | Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift:225-241 | Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift:275-290 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"219732a740ef97f7329802bcfcfd5df776241b4b2de503c9b35a55afdd0e7128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Services/Channels/ChannelReplayNonceStore.swift:66-99 | Packages/OsaurusCore/Services/Channels/ChannelReplayNonceStore.swift:101-125 \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":"Packages/OsaurusCore/Services/Channels/ChannelReplayNonceStore.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e3c7df008c79d174916be4900e5f1b145e073e4144a4db8bb32d129f7dfff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:447-461 | Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:463-474 \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":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bf6dacc77285bf15fdc85ca50084c340d05042fa7ce9b03b8507b792c11df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:56-79 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:55-78 | Packages/OsaurusCore/Storage/TaskDatabase.swift:112-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 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e5640467fe06ffe169e753fb3698608dc0bb5ba6c8e1779b7be6233eb448ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift:336-343 | Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1716-1723 \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":"Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4cfb4f06b01f81487b669eaf0a3c7e668adf62b5d8c85abc1eb76b3d12c1fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Template/TemplateImportReviewView.swift:347-361 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowDetailPage.swift:326-344 \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":"Packages/OsaurusCore/Views/Template/TemplateImportReviewView.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f50fb8d0d3e270cfdc3a9aa2ceb0510505bc9c9014ebdd531cab22395c67620"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift:453-468 | Packages/OsaurusCore/Models/Channels/ChannelSecurityPolicy.swift:107-118 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ece1585f9c0e5c419bfcd595d5b825256fd8e7d634304ac68095989153bdad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Plugin/PluginHTTP.swift:49-60 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8995-9005 \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":"Packages/OsaurusCore/Models/Plugin/PluginHTTP.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bd73d50bd90d812184461d18847032fc92768d575990ad2ecea12d1f87e430"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift:380-403 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift:1164-1183 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66ee5932e75c93390395bcad292882a3ebcf03d0cca2f21242bba593c7b9e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift:137-151 | Packages/OsaurusCore/Services/LocalReasoningCapability.swift:138-152 \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":"Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03548e86906d8473bfca5980fda2c6639ed7dbd4557e8724906d14c3a238561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:404-422 | Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:452-473 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff971314f7f47c2bdc74732d19434e67290164e3195e39e154bbd1c7c62b7bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Storage/PersistenceHealth.swift:131-148 | Packages/OsaurusCore/Storage/PersistenceHealth.swift:152-172 \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":"Packages/OsaurusCore/Storage/PersistenceHealth.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d5b5fa42fed1190b8ac660afd381bacb5fd880e1c287d8cacca593678da586"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:850-872 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1082-1104 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75643b454ccb6143b38425c3f90dc813d71f84cd974ff8dd61608aa04e8c97a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift:13-36 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:13-43 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc026c160c1e3acf236930283bbe226fee97c1f78b383ecd864bac41943b077f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Models/Chat/HostRunRequest.swift:65-81 | Packages/OsaurusCore/Services/ModelRuntime/HandledGPUFailureReport.swift:49-71 \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":"Packages/OsaurusCore/Models/Chat/HostRunRequest.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf22f8953875c07fd07609778343dff7eca9ea1879c856796a4a1e47b2515f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPAuthFailureProbe.swift:80-97 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:2686-2703 \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":"Packages/OsaurusCore/Services/MCP/MCPAuthFailureProbe.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"347ef7555a16bf9713a7b648fede7a042b3bd1c167fae8f916f67e9a8d03096f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:110-140 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:647-677 \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":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a4f87fb535fad712f34ff7f256a0e0529638d91d8c5bc843563dc1af5a0415"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:252-270 | Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:292-316 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"55dd7af00471e1069f1e8c06bec6a168812501d74da265a09485fe3a93ed2741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:773-800 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:937-952 \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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6b80dfe5e244cb15372be56f9d5d89ac073d362b5f4c465edea6e630207d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:446-467 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:930-958 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e258f2968a40be476e80949f6ff1e3ca5ae73bb1d7df5b8e09a89ebc2ff4ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:107-134 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2506-2533 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9187d576de8e2d784911812b1fcd9ac8be5a8f7f439aa75c802941a9ef803a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:197-222 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:285-307 \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":"Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5dc4d9f51997bdc99884f8fa8372e38cf78e33626db3c7bfd052682c5b63999"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:69-80 | Packages/OsaurusCore/AppleApps/Messages/MessagesTools.swift:57-65 \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":"Packages/OsaurusCore/AppleApps/Mail/MailTools.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff215e5cb38220ec1c7057380fe94751a1b33d5db92b36f09373c1d78afc42f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/PrivacyFilter/Views/RedactionReviewSheet.swift:249-265 | Packages/OsaurusCore/PrivacyFilter/Views/RedactionReviewSheet.swift:389-403 | Packages/OsaurusCore/Views/Model/HuggingFaceImportSheet.swift:78-95 \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":"Packages/OsaurusCore/PrivacyFilter/Views/RedactionReviewSheet.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3bd0bb7faa55c9d364473117a463ce5e52d610f68bf3db1c40f5cca5788483"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:835-846 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2481-2491 \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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4cd12e5ae17a0ed9c4c54c14917780d1087ea87c29c9cb27aa71fbb7d131f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:121-144 | Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:961-984 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"242777bb955f77256858fac6af05c9e6ed956c0cd2a77f2e791fda5dd76aaf10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1139-1152 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1180-1194 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1230-1245 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1268-1280 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33cf542c78eccf61166ca14f9d760caeed09ad6b1c7e22c62d75c0723836ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Models/Insights/ActivityLogSettings.swift:96-112 | Packages/OsaurusCore/PrivacyFilter/Store/PrivacyFilterStore.swift:62-82 \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":"Packages/OsaurusCore/Models/Insights/ActivityLogSettings.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ed45412c4868fd021a4c3f09fb44e02e0f75e51198a02855723ad55030800b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift:26-39 | Packages/OsaurusCore/Services/Workflow/WorkflowDraftStore.swift:29-42 \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":"Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1541afcb974a71fef6f62c73bb9147186cc3b684a97ddcfda2a5c3ccfa12d0ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1613-1635 | Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift:1103-1126 \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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b6a516ffa1de4a3c9dec98ce255d2d5d30844650163de2fdfea4ef9f7e87e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/Event/EventStore.swift:36-48 | Packages/OsaurusCore/Services/Event/SourceConnectionStore.swift:117-128 \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":"Packages/OsaurusCore/Services/Event/EventStore.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5de4af5fd238dba99d9fec2b80f2c98c22bc8e6f48785155e5d2a63eaebacf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift:116-134 | Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift:136-153 \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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae1670c63a60e94b42f40cfdd80c278351950f5cd10cea2338daa86a783ad1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1240-1255 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:228-243 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6ac073bc890f0be4b64ad7a034eb98ccf5d816beefae890822f00b0fcfec7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:58-73 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift:328-343 \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":"Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b43ce21ac9a8f54ea5768557ff9f6dbfe8c661c78da4a565a88d8ea5af87f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:423-446 | Packages/OsaurusCore/ComputerUse/Driver/Mac/InputController.swift:141-175 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"2290444e45a54e507993e8f0c4c06e4b4244b4cf51efbb06706698300051ea92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:9362-9395 | Packages/OsaurusCore/Networking/HTTPHandler.swift:9398-9425 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9362}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8666522f89d2763da6dc242253a05433fa088c51520286ba6ba8ff6b002d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorModelPickerStyle.swift:48-56 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorSuggestionStyle.swift:40-46 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorModelPickerStyle.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2490a12e84e1d13940213fff88260b9c830afff601aa4fe1dad692d18d2757"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift:405-427 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift:1185-1206 \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":"Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb5c68a0fdd19b511cde219f37076f692c800a22b51c95155e4ac82e005498e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Identity/APIKeyManager.swift:125-138 | Packages/OsaurusCore/Identity/APIKeyManager.swift:162-175 \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":"Packages/OsaurusCore/Identity/APIKeyManager.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f217a3dfa4e277364d8c6271b84a8f0b6bd657d2db5f56b0acc2b07ac898890b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Subagent/SubagentCapabilityRegistry.swift:151-177 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:3346-3370 \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":"Packages/OsaurusCore/Subagent/SubagentCapabilityRegistry.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c89834b2bd34fa92ba361c394bd39094f9f46eb09dc893ff4248f15cc0e34b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:2620-2635 | Packages/OsaurusCore/Views/Agent/BuiltInAgentAvatarPicker.swift:149-167 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"494ac75d10cdd9ac60d9b159fbea2693dbf408df80c20a109686ba6a813d9d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3524-3547 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:4487-4514 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":3524}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4b8232281df09d6d82263c622ad69bbeb3dd62b0d0ae567d7b5a177065909f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatView.swift:13251-13264 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:568-580 \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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":13251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5591105030867e616e83f403106f0b50945bb59b8c2c1f4d60c02999513a7ddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift:393-407 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowConnectionsSheet.swift:137-157 \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":"Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfedd4ac6570aece68f897510ae730b8b507bc9d8dd805949f95aba88b3f304c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:342-359 | Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:400-420 | Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:472-490 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d032e2c55d86d9c61203b3bdfae957563e4623dc3da5013604881b03ffc6c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime.swift:6548-6574 | Packages/OsaurusCore/Services/ModelRuntime.swift:6711-6736 \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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":6548}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f09475dbd710ca6fbdc47050addb914c794a24cc36f22c48c9b212da4c73932"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:853-872 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:874-888 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c48c24454a74fd5915ba5fbeb8bd6e9a34526780189aa7f1d8eeead08af1f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Chat/RequestLog.swift:42-50 | Packages/OsaurusCore/Models/Theme/CustomTheme.swift:43-51 \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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"afdc959f78c3f772fa305fa6c8b6b7938aa626900a0c50f4d09f1f0addbc706d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:87-103 | Packages/OsaurusCore/Views/Workflow/Architect/ArchitectChatEmptyState.swift:30-50 \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":"Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"430cee3e457291c7ecb19b0b6df5fbffbb3ea601c3db851c4889c262ee66462f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift:60-75 | Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift:410-420 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d813f21a789c96329e5149aa036e6f495c87f014a55537990b167dd3ddaa403"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Models/Event/EventRun.swift:47-60 | Packages/OsaurusCore/Models/Task/TaskModels.swift:53-68 \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":"Packages/OsaurusCore/Models/Event/EventRun.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cf07404b378d36b41e84a279ad4c21b5baf80c63012f3a4bfeff77a0860518"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelAsyncSubstrate.swift:228-239 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1459-1470 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelAsyncSubstrate.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb3dfca49b150af03a217ad2c0512b9f24b04d6832b5f7a4e0e6e3da0d75b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Storage/SchedulerDatabase.swift:310-329 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:332-355 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/SchedulerDatabase.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"07705652a034d4b3d1c858bf0123880613b321689ed8b9aad89aa125ba3b2173"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Views/Sandbox/ProvisioningJourneyView.swift:286-307 | Packages/OsaurusCore/Views/Settings/ConfigurationView.swift:576-593 \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":"Packages/OsaurusCore/Views/Sandbox/ProvisioningJourneyView.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"2970bc003cb7817b0754fcf280c43a1ecb57789fd027452489a09e0d1720922e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift:169-192 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:316-339 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift:447-475 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"10811040800868408b2cd76e8557ee66029676302dba2c5121f278536f080f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Packages/OsaurusCore/Folder/FolderTools.swift:3185-3200 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:436-447 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:733-747 \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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7624709e7aabc33e64d8ecdf91a4f09bed017e670f45fcdc4870ba0afbe61779"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift:479-494 | Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift:496-508 \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":"Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceff3504b75a85a0de094cfe49d8a6fa4f80d01f5cf0dff0dfd2757fefcd9f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift:69-100 | Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift:136-164 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9ce9de4f3dc6b44d8f050380bc537df87a1e331691b4835be2c9eb80eb5c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Packages/OsaurusCore/Views/Model/Catalog/AppleScriptCatalogSource.swift:30-43 | Packages/OsaurusCore/Views/Model/Catalog/ImageCatalogSource.swift:44-62 | Packages/OsaurusCore/Views/Model/Catalog/PrivacyDetectionCatalogSource.swift:35-51 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Packages/OsaurusCore/Views/Model/Catalog/AppleScriptCatalogSource.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf4b2867419c26920a08efffd07a30a0680539e5836c0a4308b41a3e852f079"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Models/Schedule/ScheduleRunHistory.swift:194-217 | Packages/OsaurusCore/Models/Schedule/ScheduleRunHistory.swift:219-246 \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":"Packages/OsaurusCore/Models/Schedule/ScheduleRunHistory.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda86326f0f340f0b8759767072d82fd783e80bfdec778bd65916daf90e5ca10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Documents/BusinessDocumentStudioService.swift:870-885 | Packages/OsaurusCore/Services/Documents/PDFPPTXWorkflowService.swift:247-271 \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":"Packages/OsaurusCore/Services/Documents/BusinessDocumentStudioService.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d052f15e32b1dfa7549e954d89da46ac1c094eab78829e2851c8a7cf0cf276"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/Memory/MetalSafeEmbedder.swift:26-41 | Packages/OsaurusCore/Services/Memory/MetalSafeEmbedder.swift:43-56 \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":"Packages/OsaurusCore/Services/Memory/MetalSafeEmbedder.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7ccb64dc68ce43d32951664b3623480f9cd35a0e62290129ae478131e89954"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Subagent/SpawnRemoteModelIdentity.swift:27-46 | Packages/OsaurusRepository/OsaurusBundle.swift:866-875 \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":"Packages/OsaurusCore/Subagent/SpawnRemoteModelIdentity.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"868ede299a4dab187732b300262d096de40776aebc937e46da8a7b442d57d55c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Views/Memory/MemoryDiagnosticsViews.swift:670-688 | Packages/OsaurusCore/Views/Memory/MemoryDiagnosticsViews.swift:745-769 \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":"Packages/OsaurusCore/Views/Memory/MemoryDiagnosticsViews.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"d648eeb3e836a9099787cef33dd85d677ca79bee4199940728f04c72e212c4aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:75-85 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:135-147 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b921a513e8a7c9c5d73067c9f7a228d5ad67bae326382d4734096e7a0ad794e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Packages/OsaurusCore/Views/Settings/ProvidersView.swift:321-348 | Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift:289-316 \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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbbf6e70f1b697e5063ae29dee718e24ce2d1ded6c7e97870f659c667c9a11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift:374-389 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift:391-409 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a4c824c2f79793bbaf794099f71a3b49d9aba62eaf61d6a193d4b385babbac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Agent/Skill.swift:899-907 | Packages/OsaurusRepository/OsaurusBundle.swift:347-355 \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":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5501219fd88b368c53f60bf14adbeb18a9474e1b48ef42795c72dfac3414ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:704-722 | Packages/OsaurusCore/Services/Email/EmailChannelService.swift:294-306 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:479-499 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:574-594 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67f59f5effe543211968083ac67cfbe0bfd82e019ec8d723aa5aa2c7aea5905"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:729-743 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:762-777 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:779-793 \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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a669710c98f78649d98d6c12d0fe1d3670975e402931ae117c367138035348"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:929-944 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:946-961 \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":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd8d72e764e2b68bc7621681f354ebb72d6a748c239013e114b09735380fe66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncDeviceFeedContract.swift:63-79 | Packages/OsaurusCore/Services/Sync/SyncServedChats.swift:105-115 \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":"Packages/OsaurusCore/Services/Sync/SyncDeviceFeedContract.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3798f9ca414497da0e2c1a92b39f52a5158f1c8d4acb8b372dcb103b7499b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:703-715 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:914-933 \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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"728272fd5e8736ed8d628a9775316e04d3dd977774ea2ff944d1aafb87d0580c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/Settings/ServerSettings/AuthenticationSection.swift:98-118 | Packages/OsaurusCore/Views/Settings/ServerView.swift:731-747 \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":"Packages/OsaurusCore/Views/Settings/ServerSettings/AuthenticationSection.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1232710e3806321084d921ea1f9e48e9705229c0f9a1251c99906fd207fff614"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowCanvas.swift:828-844 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowInspector.swift:256-271 \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":"Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowCanvas.swift"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"632bb8745a1498dd98e8b6e66412efa03d28c334751230f240edb273270dcfd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:1778-1795 | Packages/OsaurusCore/Services/Email/SMTPClient.swift:279-293 | Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift:580-594 \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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"404e45d77f6688e1cbfd95793ad6dba6c5d0cb8b57c596f786f645d9c57006d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:597-607 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1821-1830 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"579e5c369056d2f8ac95cbf1841940a6d46a1ce9aa5feb7659d919c4f6a7edb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Models/Voice/TranscriptionConfiguration.swift:68-81 | Packages/OsaurusCore/Models/Voice/VADConfiguration.swift:120-134 \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":"Packages/OsaurusCore/Models/Voice/TranscriptionConfiguration.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d6095f04d0e29443b97de943096749a435f385dcd0cc1d5f3c170e275d17b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Packages/OsaurusCore/Services/Documents/PDFAdapter.swift:491-509 | Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:948-964 | Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:966-984 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8778207c2012518087f06514684a2dbdde8ff7905a042bb8879c5e16711f339"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Services/Documents/PDFPPTXWorkflowService.swift:104-124 | Packages/OsaurusCore/Services/Documents/PDFPPTXWorkflowService.swift:175-196 \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":"Packages/OsaurusCore/Services/Documents/PDFPPTXWorkflowService.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"85dbf4d7878563fd628065edb7933b9d8e7c4a5b56cff39a6cda6a1f909ff92b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Storage/ActivityLogStore.swift:782-794 | Packages/OsaurusCore/Storage/ActivityLogStore.swift:797-815 \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":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cf35425528a42166813d89a097ce2d7daaced756e475bc3054a5515c2d8973"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Storage/MemoryDatabase.swift:2155-2173 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2602-2623 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0154244235b947e85d7e94d79ee896e51d108a3c7beeeacdef89d57f129fc6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5111-5132 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5138-5158 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5111}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae289546155054479627bff4fe058f0dbcd18568388708a7c1322451bc1ba71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:2136-2149 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:806-826 \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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f044e78efc8908dc44463eb21e84ea31aaa92f7ddb348674a5758eadb8000ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:122-130 | Packages/OsaurusCore/Models/Workflow/FolderRequirement.swift:52-59 \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":"Packages/OsaurusCore/Models/Template/TemplateRequirements.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19e9a4e2bd9124b2dedd761c6ec7796094372677d750ed24328a15d4c1719b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/Event/Feed/RSSEventSource.swift:193-202 | Packages/OsaurusCore/Services/Event/RunFailedEventSource.swift:56-65 | Packages/OsaurusCore/Services/Event/Stream/SSEEventSource.swift:256-265 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Feed/RSSEventSource.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67bcfc553bbb2c0a54760850bbf63c8f82b779903ac334890e050e1ae452285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:248-259 | Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:261-274 | Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:276-288 \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":"Packages/OsaurusCore/Services/Memory/MemorySearchService.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fb29b4a1ad2db5e25e9f09beba83565ab66856cbadb7e95a891a2ab1689838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:137-153 | Packages/OsaurusCore/Services/Router/AnnouncementsService.swift:163-177 | Packages/OsaurusCore/Services/Router/WelcomeCreditService.swift:237-251 \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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a5e7294c6825f90e55c85e1989cf4cf686a0622bfc2e88fccabc28447ae65e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Services/Router/OsaurusRouterAccountService.swift:338-360 | Packages/OsaurusCore/Services/Router/OsaurusRouterAccountService.swift:367-389 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterAccountService.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09d438ca953ba82847c630596048fb14d0943d8889e20e67d3c6840b745776c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 22\u002B corresponding lines): Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:52-73 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:130-156 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:81-105 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:51-72 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/FileHistoryDatabase.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64646e7baec796bca69824e053587664f44ef7f7a0980fb2b2b7da41618627a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Packages/OsaurusCore/Tools/OsaurusTool.swift:214-233 | Packages/OsaurusCore/Tools/OsaurusTool.swift:237-252 | Packages/OsaurusCore/Tools/OsaurusTool.swift:257-282 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Packages/OsaurusCore/Tools/OsaurusTool.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bb1d4caa38f577eddce21bd4ffc1a361c47ca571729f633ad981e8a587511d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:130-142 | Packages/OsaurusCore/Views/Workflow/Architect/ArchitectChatEmptyState.swift:103-116 \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":"Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a2b5d599378678b0c4d271062f4b1fd656c3eec98b9e93915c15cdcc0678bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1054-1071 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:748-765 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1151-1167 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda7fee0f7bab919bfac2d7535eb5f569c1ec32624a7370b995dcbca93dd1724"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/Skill/SkillsView.swift:401-418 | Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:142-158 \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":"Packages/OsaurusCore/Views/Skill/SkillsView.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a326cde314da126e3dad82441219336b7d937a04af520e3c66c20256c692cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/ModelExposureStore.swift:143-159 | Packages/OsaurusCore/Models/Configuration/RemoteProviderConfiguration.swift:598-618 | Packages/OsaurusCore/Models/Configuration/ServerConfigurationStore.swift:83-102 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ModelExposureStore.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"429d4dc598f59cbd87785e606dac48b5f76f6bb971566d07c70ff4372d3182f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Models/Evidence/EvidenceReportRegistry.swift:94-116 | Packages/OsaurusCore/Models/Evidence/EvidenceReportRegistry.swift:157-179 \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":"Packages/OsaurusCore/Models/Evidence/EvidenceReportRegistry.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb2f21d18db941fd7f01486ac76ea1ae2c0d6bac7ec84d967b1e40049aeeb0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1260-1272 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1277-1291 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7524cd6faaa837cdccdb1efcb7a7f9ea4bedbfb012494a7c9558f0f434a45f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift:46-49 | Packages/OsaurusCore/Views/Chat/TerminalDisplayView.swift:262-266 \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":"Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4376ed6c65381464e213d5de2819f38e6917bbdcc213a0bd6e4a1fb01172b36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift:550-572 | Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift:574-594 \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":"Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58263cf64c4378556f5a835cc83c5fbe230e01b10ff4dea04d20a8f9f2360f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:227-244 | Packages/OsaurusCore/Services/HuggingFaceService.swift:943-962 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d4d7166b3e692f93b5e86dcaa6ac7264bfbd810d8b2a8b0984525c38077997"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift:13-21 | Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift:26-35 \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":"Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f685775102a4692d5924e513cc58198cc90dc979bd4591673f99d20c91a2a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:233-240 | Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:242-250 \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":"Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"0846b17189aa51f785809725f7b56219fe343dd2fe586b3b876d6c41e491868b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:2180-2191 | Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:2196-2211 \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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ee9f21c55900897871bed6d6ffdf5c6b62bdf0a949fddf56312ba926d27dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:49-71 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:2279-2299 \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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b81b64083903f66c2bdce079d8575779ece128c1c9617117b66cbdd0d57b70c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:545-564 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:566-581 \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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d283b5559fb45c4fc9171c540c8a4dc8a629f4053eee7c9c488a9ec098eb0fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 16\u002B corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1894-1910 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1244-1259 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:598-613 | Packages/OsaurusCore/Storage/MethodDatabase.swift:236-255 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:354-370 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:635-650 | Packages/OsaurusCore/Storage/ToolDatabase.swift:321-338 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45674f30f5becde8094a053e9cd2921d55512edbaf45b610ea1413aa6f97e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:1176-1190 | Packages/OsaurusCore/Views/Template/ListingEditorViews.swift:336-352 \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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"882314d5339dcd16f40e26bcda1dd104394c71c09579552a7363f795d94a21c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift:105-119 | Packages/OsaurusCore/Models/Agent/ConfiguratorConfigurationStore.swift:60-75 \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":"Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6c94912b7edd28354786645dd232ba4944801f8dabfb0fbec95a4091ca4783"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Models/Event/OsaurusEvent.swift:689-696 | Packages/OsaurusCore/Models/Event/SourceConnection.swift:265-272 \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":"Packages/OsaurusCore/Models/Event/OsaurusEvent.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bec843cd5e3dd26632d9bd7bc8a1b508cb2af0da1a7738246234400a79e2a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Packages/OsaurusCore/Models/Knowledge/KnowledgeCollection.swift:51-73 | Packages/OsaurusCore/Models/Project/Project.swift:39-59 | Packages/OsaurusCore/Models/SlashCommand/SlashCommand.swift:42-64 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Knowledge/KnowledgeCollection.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b37743eb971f006906f038744ce4077c5bc48a5c6f9ccb1448023c019083d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:5511-5525 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6442-6465 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7532-7554 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12489-12510 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5511}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea98bccf55fde5a3bdf19127981478c7f6268ae5a3d800f03f70be026815f1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:320-335 | Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:337-352 \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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f46e16e960083b2973c146fb31bdd3c152bd16b896373d06adbe65c802b2e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Services/OnboardingModelsProxy.swift:79-99 | Packages/OsaurusCore/Services/Router/OsaurusRouterAuthSigner.swift:69-95 \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":"Packages/OsaurusCore/Services/OnboardingModelsProxy.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7693f7530348303f400cc0380e5bb0d1731948b8187e7b6fa5727b4e647fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/Storage/EventRunDatabase.swift:471-484 | Packages/OsaurusCore/Storage/TaskDatabase.swift:601-613 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:257-270 \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":"Packages/OsaurusCore/Storage/EventRunDatabase.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbf6f44572307f4b89961dee668a81de832be6575f644e855bba7396be8fe13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Views/Approvals/ApprovalsView.swift:173-192 | Packages/OsaurusCore/Views/Approvals/ApprovalsView.swift:198-215 \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":"Packages/OsaurusCore/Views/Approvals/ApprovalsView.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3fb98f7c2579785cacb308049bc897099efaae23eab73772beb5a2489af695"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift:474-500 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ScreenContextFixture.swift:49-77 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"24122a08b65113d2a23f9915c4a851957de5852b2c51ae38ca2d97c4de2b1378"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift:123-132 | Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaCatalog.swift:181-186 \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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b2531513e133b1f7cb25830bd85a57d4fe633d48042387b78dcd0a9a061a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): Packages/OsaurusCore/Storage/EventRunDatabase.swift:508-523 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:439-458 | Packages/OsaurusCore/Storage/TaskDatabase.swift:650-661 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:294-308 \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":"Packages/OsaurusCore/Storage/EventRunDatabase.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"40596bd673768b170b3a1faf54a2e717d25409ab612ecd537ca159a08b7927e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:366-385 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:584-613 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:735-760 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"879a688768791ad2af25b226f219d31004877c726c33337aba3651615bb15428"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:512-523 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:558-566 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b204d17a30ad753c668923b13ccc17ca5b98cc738f88869a6a4338867d45dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift:649-670 | Packages/OsaurusCore/Tools/ToolRegistry.swift:116-137 \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":"Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb309940ef6f63eb1ddc5b4a2ff983b4ec3cfcf3813e6f9d598bdb7b635784b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/Template/ListingEdits.swift:93-107 | Packages/OsaurusCore/Models/Template/ListingEdits.swift:177-191 \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":"Packages/OsaurusCore/Models/Template/ListingEdits.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"9617650588390cd82743aaf5c186e40fda6e17de7271afeffbbca7c2fb96d2b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:13464-13477 | Packages/OsaurusCore/Tools/CapabilityTools.swift:314-322 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13464}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aff12978a6d570cad0788c378bc1767cb678374b405ca75b06b2773e4a799da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift:540-559 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift:562-581 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd2e5de8fb4152785695ff4cc05c67c35fa420e12ecf6ccfe397cb839a11e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Inference/ModelService.swift:322-330 | Packages/OsaurusCore/Services/Inference/ModelService.swift:505-513 \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":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c274621302bcdbc7c0885d2dd505fa054d2ea682187e3e06c8768b0f645b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Keychain/ToolSecretsKeychain.swift:193-209 | Packages/OsaurusCore/Services/Keychain/ToolSecretsKeychain.swift:274-284 \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":"Packages/OsaurusCore/Services/Keychain/ToolSecretsKeychain.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c9ef469fca88db00d2755d069984212dbaae4f204bbb83755525cfc5a17d1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:1036-1044 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:1047-1056 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:1060-1073 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:1076-1087 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e078b3191c74a285a2da41d14446d0909c5860e6883d5e32f86e80a79d50a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Storage/MemoryDatabase.swift:2641-2655 | Packages/OsaurusCore/Storage/MethodDatabase.swift:381-395 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca66e1c27ad46092dcd03f9867b7c10ad9848a1b10fa641c443a2d806f4d02b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:110-129 | Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:455-469 \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":"Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e6786c94e479c8e67fc5709b1fa33a15a217e7969179942ef9021dbf99079f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Tools/SandboxPluginRegisterTool.swift:33-45 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:24-36 \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":"Packages/OsaurusCore/Tools/SandboxPluginRegisterTool.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b3609471111b023d833a7e719191efac35714a5c46ad0b3af0d60da42b889d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5301-5319 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5324-5340 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5301}}}],"partialFingerprints":{"codehealthFindingId/v1":"faacfff5d49e46d1a69ec16fe622d988ffc0a83b1bd49af359141dacd185c3cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Packages/OsaurusCore/Views/Event/EventDetailView.swift:328-341 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:1724-1737 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:861-871 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Event/EventDetailView.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c31f2995415f0607d20f3c8a3bdc9be6165a8018de62ee43b9fc10007d0d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2095-2111 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2385-2404 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2438-2457 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b9820024d5273b43ba16c494edc1c9be6aa7a904552098f0d80f7f051b055a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatSessionsManager.swift:259-279 | Packages/OsaurusCore/Managers/Chat/ChatSessionsManager.swift:337-351 | Packages/OsaurusCore/Managers/Chat/ChatSessionsManager.swift:356-369 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Packages/OsaurusCore/Managers/Chat/ChatSessionsManager.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51f2a404aa009881af5e3aafc9237fb19d323c7564ff1f4f7a3da16485567f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1446-1454 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:613-627 \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":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0761ca1a7976e11ac64beae2590b5cf91b0c259b986674a958fa2d28b13cefe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): Packages/OsaurusCore/Models/Agent/RemoteAgent.swift:66-92 | Packages/OsaurusCore/Services/Sandbox/SandboxStartupMetrics.swift:110-132 | Packages/OsaurusCore/Services/Search/SearchTypes.swift:73-95 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Agent/RemoteAgent.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d666acfac8039d52e0db068da09066e0af3e6546e110ece64a808b6b739c5245"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Models/Configuration/MCPProviderTemplate.swift:143-171 | Packages/OsaurusCore/Services/GitHubSkillService.swift:542-564 \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":"Packages/OsaurusCore/Models/Configuration/MCPProviderTemplate.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfbd4246a7ddadbe86d6f1fedb1117e65d6f161667a6dbf589c76123290aa06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelBundle.swift:190-201 | Packages/OsaurusRepository/PluginInstallManager.swift:523-536 \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":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelBundle.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a73223bf33227bbbe8536d8daf247ba3c1ea8b59593cd4a5955d8c84a5198e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:510-526 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2269-2287 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"96db77132faadc7a39a96cbcb668c6446926189ea54c49304b0b067eee0068f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift:614-629 | Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift:632-642 \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":"Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7d023bc880191e0a58583655893526cc8c90444e6aef2f0c3c74b6d23ef0d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Workflow/InstalledWorkflowStore.swift:388-400 | Packages/OsaurusCore/Services/Workflow/WorkflowDraftStore.swift:324-336 \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":"Packages/OsaurusCore/Services/Workflow/InstalledWorkflowStore.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"693e3b4bb53ac42ac25b7b789bb7c3ac73694f7b470e4be17cb86ed19908ce32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:274-356 | Packages/OsaurusCore/Storage/MethodDatabase.swift:145-205 \u2014 These two members are one piece of code written twice and then edited apart: 61 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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0b84f6fed2a0f4f826a839d31867ed317a5a423d7a2febed1621ad612dfba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/Utils/StorageLocationStandards.swift:103-127 | Packages/OsaurusCore/Utils/StorageLocationStandards.swift:157-183 \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":"Packages/OsaurusCore/Utils/StorageLocationStandards.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03d5e84f3620c843ca3aeb291e15f912f057419765892b84f535307d3275715"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:420-435 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:451-464 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"8841e653eca4b1f8c18d652aee2049de3c1b8f10da1f280d86f36469bb29622a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:235-256 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:262-283 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:253-274 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93cd6d202fdd9741c5daeeba06cee05c355986ad8c11cd28e38055efe205e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/MCPBundleManager.swift:148-162 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:695-713 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/MCPBundleManager.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4444736cb6b925b0a091df0a2a9dbdfebfb97a22b35d8455ff958d9af959c917"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/ComputerUse/Loop/DesktopResponsesModelStep.swift:46-61 | Packages/OsaurusCore/Services/Context/ResponsesEvaluationStep.swift:21-39 \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":"Packages/OsaurusCore/ComputerUse/Loop/DesktopResponsesModelStep.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1f00a5e42bb9dbe57432410a26109ad206553f9d2d205801ef7a5389778767"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:177-180 | Packages/OsaurusCore/DevelopmentDesign/DesignInspectorView.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":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd62be8494f99266bf8d58de92a23696c2b5779b0b9d16ed497e35e3dc2e1dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): Packages/OsaurusCore/Models/BackgroundTaskModels.swift:363-385 | Packages/OsaurusCore/Models/BackgroundTaskModels.swift:390-414 | Packages/OsaurusCore/Models/BackgroundTaskModels.swift:418-445 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/BackgroundTaskModels.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe9a005b7aac19469359d6c3d67caf9b8d7817008928114a7473c418cca6fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift:274-287 | Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift:293-306 \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":"Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ff6578a1084c86ec9f9d7fb07ba8caf0a2651a2b513d18e8c86cba80d5329f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Models/Event/TriggerSourceConfigs.swift:39-47 | Packages/OsaurusCore/Models/Event/TriggerSourceConfigs.swift:84-91 \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":"Packages/OsaurusCore/Models/Event/TriggerSourceConfigs.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"389c413cc84bac4d2769687f9b4ea3bd57f4168473009822171d5a3ca37c11e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:132-144 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:625-635 \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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"df697584ca634c615507075f729d3499c037dec2504ee8c2fbcde52520a280a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/HuggingFaceService.swift:546-557 | Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift:82-89 \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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a83e7155af6d0e1d0c48338e0293d662cd1c543c86043c8e71271cffb88966b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:108-120 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:133-149 \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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bee9133179de6ac4f5eefadd265fdd086a67ddcc11e7b9d11f308ba17ad1a13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/MobileConnect/RemoteSecretPromptQueue.swift:95-104 | Packages/OsaurusCore/Services/Sync/SyncSecretPromptQueue.swift:148-160 \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":"Packages/OsaurusCore/Services/MobileConnect/RemoteSecretPromptQueue.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c426e79975a0037a23947ef1a8da91547bf6b63728ec50350e43d36afaca45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime.swift:3576-3591 | Packages/OsaurusCore/Services/ModelRuntime.swift:8093-8108 \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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":3576}}}],"partialFingerprints":{"codehealthFindingId/v1":"219f2393e0fa4e190dd3d7e19a6105c9c6e2f2fc4edd7a53e11f7f66c50e4ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift:64-78 | Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift:138-150 \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":"Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85239609ca7fc15f3dda4534569936194a4ebf1dd5b841f9a60e9dd040b24d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift:769-787 | Packages/OsaurusCore/Views/Model/HuggingFaceImportSheet.swift:112-126 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1890-1905 \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":"Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69fb2633ea827bcdca0b28becbdc22730e311486ac6aa229a3f51d56b25bd06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:760-770 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:1463-1476 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a9673d7d7c51d6cba1141ce25db0fadf39f6368c21b96ed58bcaa02166fe05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:205-218 | Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:436-449 \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":"Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e42946367de623cfe794cbae52d9bff31cad40eb08005d80e71d869550a35b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:429-450 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:486-507 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:562-582 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa15fbd755d227456b39000b9d460a70ad6b28d0c7b2d41e6525dfc9419a1ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:216-240 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:222-243 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"7544fe03b73bdb6b5855d17510c4fcb0cc4a6a234e740f094c834c32f27ee6f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift:844-852 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift:856-866 \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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc782f283e255e91df7b910d744e5bd214cd6d01d6f92918ee40e385458de76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:292-298 | Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:169-174 | Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:218-224 | Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:245-253 | Packages/OsaurusCore/AppleApps/Messages/MessagesTools.swift:103-108 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Mail/MailTools.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca08e9bb94276c68c4ce4ffca8b200a9b40841faa99c2376127cf11e9d5882e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Models/Agent/AgentInviteStore.swift:219-234 | Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift:61-74 \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":"Packages/OsaurusCore/Models/Agent/AgentInviteStore.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e34ac4dcd28d20edcaeb9be169ba91683635ffe297922846c4a202fa0280f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift:327-338 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift:350-358 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12ef4411708720e8d0b827a5b0213f750190f0880e33214e24ac25fde1e2d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift:585-594 | Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift:628-638 | Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift:640-650 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"963bf7d69402e32a53ee054d6463f891af777cef01537dcf55144ac91567df1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:462-472 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:1555-1565 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"feabfd52a6743205138efd3b51bd6063bec9ecdb73d61ef351e210b1b7c1fc18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:558-572 | Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:574-588 \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":"Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"67106db5244426b3ba2c7991196e4f63abffc5d2b3af3678b02e8cc75e5b499f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorNativeComponentStyle.swift:32-38 | Packages/OsaurusCore/Models/Theme/ThemeTextStyleModifier.swift:110-129 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorNativeComponentStyle.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"050ec3ffb14da619dc8e4ee31ebfc02084e5e03f4f4187575e49c348d0cfcae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyRulePresets.swift:143-169 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:100-124 \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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyRulePresets.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3cf12537aaa1d669ecd410bad8d613f8999becbb4c412e69cbc5533fc36005"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:475-490 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:803-816 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"62babe3536147b6b44bbd95928121c14da0d9e9cbb3cb960ad906f654806e7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:58-80 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:55-77 \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":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"031c2feaf4e17008d8e880b2b15452ecce0ded4b819e23387ad735e3d6c6aa0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:234-254 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:185-207 \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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"80992863c3fd770fce014005363f2f722d95c4fc48e2eb9bd922a2fe8b56c1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:738-747 | Packages/OsaurusCore/Tools/ExternalTool.swift:88-115 | Packages/OsaurusCore/Tools/ExternalTool.swift:120-147 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"34257d2b52c01fda19b1eae5a06c5384b644fb3e80d8e8bb050c3b7fbcd10dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:1571-1583 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:1588-1600 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c5d23a3267fe0a8f25cdb8472f110200eced51f97788988e4a2e378208f854"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:201-217 | Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:219-239 \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":"Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"997297a6cb818e7ee68def36b5c8e1ba0de0451fe91d59332405552852e0c00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift:436-448 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:1813-1826 \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":"Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33e15826a26819faf74a56a5659e5a40c40c5288409f04a77c7d0a42647fb93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:361-375 | Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:422-436 | Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:492-506 \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":"Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97abc2c82e48a42ab30ede69b85d310bc114b9e7e187e5de4697114031ca452"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Identity/AgentKey.swift:64-73 | Packages/OsaurusCore/Identity/AgentKey.swift:87-99 \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":"Packages/OsaurusCore/Identity/AgentKey.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53833c0053a20799afa0773288554e683e8c59936f043c7c9001b7028d1c015"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Managers/BackgroundTaskManager.swift:972-983 | Packages/OsaurusCore/Managers/BackgroundTaskManager.swift:1048-1059 \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":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baaff6941184e9eca64d095e12b5998299c160c6c4f82314a8501a6102116ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelN8nModels.swift:263-286 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1731-1751 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelN8nModels.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"affbedf590c79b9770a3143eaa26b6a724ec7ae428bf948ff68e7ec3e2627739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Models/Chat/ContentBlock.swift:432-455 | Packages/OsaurusCore/Models/Chat/ContentBlock.swift:498-523 \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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4573910839c514d9b8fc6810fd4523d46b972d59a24032f708c3f14d303b20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift:450-466 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedNativePicker.swift:179-191 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"98be000d9c57cf13f674616ce7facb0de71e3c0e95a8b5e030ced7bd3a714421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:176-187 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:190-202 \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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94896ac43fc42e3a86fecd6e2e5426156c1876e170e8f69bf85fb530eda1af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Packages/OsaurusCore/Services/AgentCollaboration/AgentCollaborationService.swift:89-108 | Packages/OsaurusCore/Services/AgentCollaboration/AgentCollaborationService.swift:110-129 | Packages/OsaurusCore/Services/AgentCollaboration/AgentCollaborationService.swift:166-185 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"Packages/OsaurusCore/Services/AgentCollaboration/AgentCollaborationService.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcc574929a2705b0aa1a2e2b07d03b1f37fb66673cbdb214779fe7ff93220ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift:439-451 | Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift:453-465 \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":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"660f981aa7108aa1625393d81ea4708e809720a3d70ff2f3446d6959ba5869f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Storage/EventRunDatabase.swift:356-373 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:433-450 \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":"Packages/OsaurusCore/Storage/EventRunDatabase.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37246bdc2b263df38416ca263c8d381430dceee8d356cfdb1294b9094e6a559"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:308-330 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2351-2375 \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":"Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83fd524ad18d7fa910b49ba3cbcde0e08c8f43185666612fb597ac18dabb304"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Utils/DebugLog.swift:25-48 | Packages/OsaurusCore/Utils/TTFTTrace.swift:134-150 \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":"Packages/OsaurusCore/Utils/DebugLog.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ec6198acf25c0342071b32d7148fb2356475bf435ef2d626110dd5361fa863"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Packages/OsaurusCore/Views/Agent/RemoteAgentViews.swift:525-538 | Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift:374-391 | Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift:720-734 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Packages/OsaurusCore/Views/Agent/RemoteAgentViews.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f764a8b50c6cbf0fb0edba18fe7eafc2e4b3cb3b5cf95448f670412a5704c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:284-298 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:268-280 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48cdecc2d1f5e9ade889b11f0e8acfb4f5cb5a01b0293a3d47916c1a8d81422"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusPlugins/StatsPack/Sources/OsaurusStatsPack/DelimitedText.swift:19-35 | Packages/OsaurusPlugins/StatsPack/Sources/OsaurusStatsPack/DelimitedText.swift:65-81 | Packages/OsaurusPlugins/StatsPack/Sources/OsaurusStatsPack/JSONLAdapter.swift:19-33 \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":"Packages/OsaurusPlugins/StatsPack/Sources/OsaurusStatsPack/DelimitedText.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b543383224888eb4dacdae42e9a31edb1b835d2f54c06d0972c4638aee510fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift:73-93 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:1783-1803 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"58571ee9495a1e583ccec7855570c84a25474a049fa88e40993522d3d3c84149"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift:2452-2464 | Packages/OsaurusCore/Models/Configuration/RemoteProviderConfiguration.swift:433-450 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:13-29 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":2452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6192816f08cc5400011ed3047637797f04db3135a4d65389d1970ce545616880"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Managers/SkillManager.swift:257-278 | Packages/OsaurusCore/Managers/SkillManager.swift:285-303 \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":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7fc6c8b8fd3d60870a4a22240ae9ced514a6b356e6afb575a86a0a40f70f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Managers/TTSService.swift:258-275 | Packages/OsaurusCore/Managers/TTSService.swift:317-331 \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":"Packages/OsaurusCore/Managers/TTSService.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd709f3729487fc780c39647849ac98d64615366f88e60f337e0f35bcebcc57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Models/Schedule/Schedule.swift:265-290 | Packages/OsaurusCore/Models/Schedule/Schedule.swift:387-406 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"babc12fd3c59db3ea92f2dfc60d3a6489186a7d48d9db92876343ed5afad8ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Models/Task/TaskModels.swift:72-85 | Packages/OsaurusCore/Models/Task/TaskModels.swift:111-124 \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":"Packages/OsaurusCore/Models/Task/TaskModels.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"093d7b065f30bf709307aa905fe9a028d329d3c66a1b7d96826fcf50dcbe6877"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:107-114 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:140-149 \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":"Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"113412743f9dbfb4f6a96e68f8f3f15843c761fe33b23632c235498a103f97f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:766-786 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:837-857 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5544c1b1bca7d9eadde969c2dc2a6aa65a3aa3e77f46c41b033b49280d79e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1582-1598 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1679-1692 \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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee267119ad2da3c46d554c1cbbfc4ce78631395000de88959bc892a2067c6489"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift:530-543 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:614-634 \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":"Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e66cbc4f0ff768a4db5bd1f8f766923deec462a2ac95bcb38b83b3ee5e8b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusRepository/CentralRepositoryManager.swift:375-396 | Packages/OsaurusRepository/PluginInstallManager.swift:583-601 \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":"Packages/OsaurusRepository/CentralRepositoryManager.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5c78cf3b58bae84042a291bf206ddc2cf7e0bd9f3ab88d759f1046aab70320"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Managers/BlockMemoizer.swift:419-441 | Packages/OsaurusCore/Views/Chat/MessageThreadView.swift:86-109 \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":"Packages/OsaurusCore/Managers/BlockMemoizer.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76d1b6870d7f0e9798ccd7887c319e3885d123cf5a59533f464700d824e20e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1592-1606 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1670-1691 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"da07e7b92055f7b48c3607730c1fb9dd818b816a30f1914561c68071e19a84a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:650-664 | Packages/OsaurusCore/Views/Voice/VoiceSharedComponents.swift:76-88 \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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3d341ad94f1fbbc2d997a2cb6ffaf255406965b83d6843f4aea9ea38dfc1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:404-424 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:449-470 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:472-491 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:520-537 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34075d9f7bf7f92849bc09d54e53dc0a8e89e1f111796df68a77000307b0f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift:525-535 | Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift:690-705 \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":"Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcdb439f044ec00c8986f267b19af6baed2b4d8ea6f460ec41b9c08dde017aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/ChunkedFileDownloader.swift:434-443 | Packages/OsaurusCore/Services/Documents/DocumentFileInspector.swift:73-84 | Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift:302-311 | Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:3448-3464 | Packages/OsaurusCore/Services/Sandbox/SandboxResumableDownloader.swift:352-365 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChunkedFileDownloader.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"395eca661e60b0cc8c5e15ebbf3cabfc17ce28cc9c65cf7946afd70b582d2fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/GitHubAuth.swift:52-62 | Packages/OsaurusCore/Services/HuggingFaceAuth.swift:62-73 \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":"Packages/OsaurusCore/Services/GitHubAuth.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a9f11492c09a4a15d2d260393a7579c6cef6b72c2703e27a9535ef0c8ba458"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:613-627 | Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:629-643 \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":"Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"002f2278ac2391bcafac6eabc6363ead3120144fc04ecc812aaa85175ade7355"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Services/Telegram/TelegramAPIClient.swift:433-452 | Packages/OsaurusCore/Services/Telegram/TelegramAPIClient.swift:454-475 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Telegram/TelegramAPIClient.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b8caf49ed87a0af5a2dd201926315a42419f46affc982cc9bd632387cbb1e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1317-1331 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2726-2737 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"68666382ab3e1a7034f5bc735ff1f6f84d42b9204cbe57cd106fdcfaea205ee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1229-1247 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1315-1333 \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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27bc332b51214d47870d02c2ed864f3c5d3112589c5ea76cacdb3cb58c6373c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:213-229 | Packages/OsaurusCore/Tools/Database/SchedulerTools.swift:273-282 \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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dabf1bc035952220150c13d00db2bb79736e016016fc484796fd93444b5cd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:469-489 | Packages/OsaurusCore/Services/ModelDownloadService.swift:2097-2118 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccced5cc935aea2bbc7a9ade74c767610e649a0e4b4e37d493bd51c549641d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Models/Event/OsaurusEvent.swift:192-199 | Packages/OsaurusCore/Services/Harness/HarnessGrantStore.swift:185-195 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1427-1434 \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":"Packages/OsaurusCore/Models/Event/OsaurusEvent.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ba38a42ed7cc77b5894e8d22d3ca7122b9051fa344c5fac2507785c6435a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1446-1455 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1515-1524 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1574-1585 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1632-1644 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa63025185f299b0f1fe4f2dd77bceb3356ab85d44a6b2260a368673cc20d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/Credentials/SignInSessionStore.swift:242-254 | Packages/OsaurusCore/Services/Workflow/WorkflowConnections.swift:223-234 \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":"Packages/OsaurusCore/Services/Credentials/SignInSessionStore.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42007812fb54715dffb84f7055923fcdc4a7cad8c3d5bca74c9e79bdd976b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Packages/OsaurusCore/Services/SystemPermissionService.swift:287-313 | Packages/OsaurusCore/Services/SystemPermissionService.swift:328-354 \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":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce854aaad272775bbb9fb2bf6846cb6b5de9e842f773e03b4bad44cf90f3dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatMinimap.swift:238-250 | Packages/OsaurusCore/Views/Voice/TranscriptionOverlayView.swift:174-183 \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":"Packages/OsaurusCore/Views/Chat/ChatMinimap.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ca3cf9a1bcf4d10b51d54787be2d6210ab7fa0d7015dcceef49e534f3e3b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:351-364 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:397-410 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:455-469 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"576bf81ac4b7ef59567c0f807244308fc33fc29e96acdc84258aa0353d82e24c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:599-608 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:610-622 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"718ec8afc0b8f5981e5043963c3bb68c631ccc6317e62e842112767249e52cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2196-2203 | Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2373-2381 \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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":2196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8152d4ca6e91a6d5f511c6dad7c2a9246e8d423ffd79f2b17da46145e9f4a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Packages/OsaurusCore/Browser/Runtime/BrowserSessionCatalog.swift:181-195 | Packages/OsaurusCore/Models/Agent/AgentInviteStore.swift:236-247 | Packages/OsaurusCore/Models/Agent/RemoteAgentStore.swift:40-53 \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":"Packages/OsaurusCore/Browser/Runtime/BrowserSessionCatalog.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeac5c739bd8ec1439c3fbcf87f202cd7a307f9832df7c596f5931eac0cd642"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:401-419 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:765-779 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:908-924 \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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e12949a91991b296843e896118a75be7afc189cb49d1bbc681b071381f5b1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:1668-1676 | Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:1809-1818 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"228f3619039c5ed1217f37f8c5029ff80378bb6797670b8c07f3a40e198b14cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:740-749 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:937-945 \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":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c1a9b18c2fcd60ea9fe1ec981a7fa323b99d9bc2322b641f7fb56388fe3832"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1828-1847 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1849-1870 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"12eca64d2c5d04af45312c88008d31551b8c9488913d9c2d6ebf626032e04dbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift:311-322 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:921-932 \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":"Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b9a59de39770c1a4d1328b2569f51c4b80aeb76c77f4f33c08d7d830670b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/DevelopmentDesign/CatalogNativePreview.swift:97-101 | Packages/OsaurusCore/Views/Chat/TerminalDisplayView.swift:670-674 \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":"Packages/OsaurusCore/DevelopmentDesign/CatalogNativePreview.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"119f944249f61b3a226662bb11b988633f571d9ed43948613ead1c0a5baf4dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Managers/Model/ModelManager.swift:1589-1595 | Packages/OsaurusCore/Managers/Model/ModelManager.swift:1600-1608 \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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"76638d9cc9bbe061c527b3a78ad27366b996313c68a020ed1422f0295235777c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift:495-511 | Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift:515-532 | Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift:564-578 \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":"Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd641ddad5508d4ae84b26f85e37b1361041a48a0772e88a0d3f79b759fe0d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Models/Event/EventPayload.swift:290-302 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:729-740 \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":"Packages/OsaurusCore/Models/Event/EventPayload.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd71f3a7af8955ea6e945438d0c39cf3624718e215934256de6c32ca720b317"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:687-693 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:907-916 \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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38cbc30b447f6f30adbf78155c0caf109e72ee00f1f6ab20b4b544415d78a25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift:54-62 | Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift:130-138 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04a54f0f204f9468088892466cf1a0372ce3bfcdc3b5cbdf31f777d9bfebfca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/LocalReasoningCapability.swift:573-581 | Packages/OsaurusCore/Services/LocalReasoningCapability.swift:588-598 \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":"Packages/OsaurusCore/Services/LocalReasoningCapability.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b601621610541d2e4dd6034d47e4b6009061e83d0e42994b64e4facc95bb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift:420-436 | Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift:444-457 \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":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2402ce1c552c7e9827012f28aeaf947a7e244f1b918cdc455145ee8b9267c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:3794-3810 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:3919-3935 \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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":3794}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7276973ecddf7612f5127e8534618e5915bdef9c57a169aece16ba088a20a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Agent/Templates/AgentTemplatesIntroCard.swift:254-268 | Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:278-292 \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":"Packages/OsaurusCore/Views/Agent/Templates/AgentTemplatesIntroCard.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c2d30f2b279750eb7a53c4c1a5e50c7e1e6bc944e1dc67bf9eb24376651f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift:1157-1169 | Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift:1172-1187 \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":"Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1267aed05a25f6d299ac4e7d0de02973b197dbfcc71c65358568b3835ef01a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:385-398 | Packages/OsaurusCore/AppleApps/Reminders/RemindersService.swift:281-293 \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":"Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9589fd5806330ef94a383b2537bd6e870986007eb50344ed89d87ca420724cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:379-389 | Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:391-402 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:735-745 | Packages/OsaurusCore/Services/Telegram/TelegramAPIClient.swift:513-527 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d35fc3d85dde432ef0ee629064f40b3bcd7cbd3084831a5a94790df235c25ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:940-950 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:963-979 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1025-1035 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8d90aeeaad508da90b4f3c9c9919514e05d4de44a344424bc8ebd2250a824f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:515-527 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:346-356 \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":"Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"881d11b57ebc2df62b3cbd99a437cf0d368f9a7619d11fee5a5f04ffd20475c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/Sandbox/SandboxPackageManifest.swift:164-173 | Packages/OsaurusCore/Services/Workflow/WorkflowSandboxEnvironment.swift:308-317 \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":"Packages/OsaurusCore/Services/Sandbox/SandboxPackageManifest.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"dead622c9219bf3a1c24c4fb3eef3640fdf372c30cf098afe700f0ec16f78e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Packages/OsaurusCore/Services/Spaces/SpaceActions.swift:103-124 | Packages/OsaurusCore/Services/Spaces/SpaceActions.swift:145-165 | Packages/OsaurusCore/Services/Spaces/SpaceActions.swift:167-189 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Spaces/SpaceActions.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc9c391c6ba4d52c37bc36a325f979dd4a8b103d224dcd582ab3014e28e1de9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:2602-2620 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2293-2305 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift"},"region":{"startLine":2602}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb8189fdb8c9fa1bef4c2870d38b01d464ccf52a974c3f0deeb0326be077227"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:62-80 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:82-108 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c1c96110052738ce391c24647ba39b48bf248e8f96af25455e3584fda4f7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Agent/AgentDispatchTarget.swift:294-300 | Packages/OsaurusCore/Models/Email/EmailChannelConfiguration.swift:255-262 \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":"Packages/OsaurusCore/Models/Agent/AgentDispatchTarget.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0785f5d080d6d77b382c390985676e53bf22b291d19d63424dc984ebd08434"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/Task/TaskQueue.swift:43-58 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1395-1409 \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":"Packages/OsaurusCore/Models/Task/TaskQueue.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d69de6a5c37d4e6fd660ccb5263ba1def04065197e368b28ed9c55b737e9fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift:557-568 | Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift:717-729 \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":"Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54e447dc43e12628ef2e9e1baf561c0a97e648ba8eb32c8abf7862f39150652"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:93-111 | Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift:21-37 \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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db14ad07907fbbe9076de345af8025f733f0cbb66cc74c8d2f67c7bc7c916e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift:204-215 | Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift:259-270 \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":"Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b5e1720da28733cd43705f763005144d48da59c74deeae5bf715734fb3e7fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:162-183 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1523-1542 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece63c929cb127b29f23d5573bf6d7c229e7be87745a370a6738ffdb3ecd8e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 10\u002B corresponding lines): Packages/OsaurusCore/Storage/ActivityLogStore.swift:1137-1148 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1919-1933 | Packages/OsaurusCore/Storage/AgentDatabase.swift:2619-2631 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1270-1280 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:630-640 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:667-679 | Packages/OsaurusCore/Storage/TaskDatabase.swift:639-648 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfac2e5093124b64e0dd3f9b25bb0dad81ea0a09778fe512a3847b34f484cd8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1307-1329 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1714-1736 \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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"05976bd3fdcb2a2ffc5dad151c37cbde014cba0bd94a1091780c7e3506216818"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:338-347 | Packages/OsaurusCore/Views/Agent/Database/DatabaseSharedUI.swift:18-27 \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":"Packages/OsaurusCore/Tools/Database/DatabaseExport.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8171f4202dfb9c592280653e084bb680b28ffb5a36d91bdf3278e5b409745250"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift:605-618 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:1323-1340 \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":"Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efb89485da7a6acbce03cfe13214abc092b184825d028be75e610cc4bf88968"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentSharedWithSection.swift:138-156 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:1725-1741 \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":"Packages/OsaurusCore/Views/Agent/AgentSharedWithSection.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"728369883cf2544cc8ef0b1ba454b5aa99c745b2c2e9e0b85d20796874e1db2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/BundleCommand.swift:13-29 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestCommand.swift:13-31 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/BundleCommand.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a6363d781ed967eaef5bd99dad1207451cee1258fdf919a25a33d7c2f93bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift:848-864 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2575-2592 \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":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"a008b6e96c075a63d2a70be7f3295a46335c3f91837191e839c4a44b308de914"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:197-210 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:781-792 \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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e9e823410ce19a37307d24a8c1e8725cee39f6f8ecc915dec18006d4975967"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 19\u002B corresponding lines): Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:230-248 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:268-286 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:288-311 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:313-333 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:443-469 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f64cac7eaf98aa26de9b30dd6886072467897a51f7f13634198ea19d182cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:382-396 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:274-291 \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":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a7b83add86fd05bca414abe99c938fae28901f5368f915f67f5987b74abe8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Services/SystemPermissionService.swift:217-242 | Packages/OsaurusCore/Services/SystemPermissionService.swift:370-392 \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":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc27fdc81c107cfa0aec0feefbec0e109999a0b4ad8dad66cbd21ad3cd709560"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:195-207 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:222-234 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:213-225 \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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3dcbf5f704868a86f675e3b924a9aa83e015cd28288cd431016f5232e58df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:260-279 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:287-308 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:278-297 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"584dee8a9a5a016cc460ec3834e7f83a175bf18db0ae780082a3807610dc9018"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): App/osaurus/osaurusApp.swift:395-420 | Packages/OsaurusCore/Views/Settings/StatusPanelView.swift:417-444 \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":"App/osaurus/osaurusApp.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1146cbb56f31c4d328e29e2be9c88566df26180bcd7422e8a3975ba9c5d672f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Managers/AgentManager.swift:1949-1961 | Packages/OsaurusCore/Managers/AgentManager.swift:2006-2017 \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":"Packages/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad89ce324fb3b14571d9b3fbc64844ddcd8bff3d7e44e1faa356e82cc3b2bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:537-550 | Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:554-567 \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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44332088f2851e1bdb9462c26483578f5e7bfeca17fa6d3241dc0442dd7544d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Models/Insights/ActivityLogSettings.swift:81-94 | Packages/OsaurusCore/PrivacyFilter/Store/PrivacyFilterStore.swift:44-58 \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":"Packages/OsaurusCore/Models/Insights/ActivityLogSettings.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3897bf5385fbf1970395136111309abfaa5913bdca524b366a928259c533953"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Models/Knowledge/KnowledgeModels.swift:157-177 | Packages/OsaurusCore/Models/Knowledge/KnowledgeModels.swift:203-225 \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":"Packages/OsaurusCore/Models/Knowledge/KnowledgeModels.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49472403135debcb34163c7a964ddb1371914ce262161b0d9b4ad88a3cd8bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:169-183 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:331-351 \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":"Packages/OsaurusCore/Models/Template/TemplateRequirements.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"beebeec9a0091460504a37339bea02ec4fdee5ec1c93e657b9043998bf37d718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 7\u002B corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:266-272 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:274-281 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:311-318 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:350-357 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:497-503 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:579-586 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:671-678 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d65ca1b3fe2bb47baa79dd385d038553f933ca8e3a8443d5a03e6bb069c3a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyCustomRuleEditor.swift:185-197 | Packages/OsaurusCore/PrivacyFilter/Views/PrivacyCustomRuleEditor.swift:264-281 | Packages/OsaurusCore/PrivacyFilter/Views/PrivacyCustomRuleEditor.swift:305-320 \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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyCustomRuleEditor.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"429231de4c24fae19775d3e8c01a7ba2396e48b851842b2ea34486d328981c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Services/Harness/HarnessRuntimeStore.swift:109-123 | Packages/OsaurusCore/Services/Sync/SyncConfiguration.swift:77-93 \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":"Packages/OsaurusCore/Services/Harness/HarnessRuntimeStore.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2420d37211fe4a7b6eb3c989f30cbd334615aa7a7cd8ecbc1b234f6c6e59e918"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:116-121 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:151-156 \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":"Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4382db371c667339be71a4a0a62788aad90913ac0af108d79957058dc64d0f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift:278-286 | Packages/OsaurusCore/Services/Sync/SyncInboundApplier.swift:396-404 \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":"Packages/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc318aedf8c4fe1fabbfb167daa776ccbb0dac85761acaa1235f6a070827e4a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:354-366 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:506-521 \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":"Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c89652c62253717a29ec07aa15cf1485051e5c4f4d6fa09bd4e880613138c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): Packages/OsaurusCore/Storage/MemoryDatabase.swift:986-996 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1055-1070 | Packages/OsaurusCore/Storage/MethodDatabase.swift:222-234 | Packages/OsaurusCore/Storage/ToolDatabase.swift:309-319 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef43e5b93eb218544d74276ecfc5b370ca4b6c089b8da3bcb283c761e6cab67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift:118-137 | Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift:141-160 | Packages/OsaurusCore/Views/DesignSystem/SettingsSection.swift:278-301 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b409b99a8cbc81d71898e9c3c1ed713291a0e526d79d05e3eb634726824645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:1005-1012 | Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift:1076-1084 \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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec53454c8039667264a911d083c3871fa7ece0baec7007af9bff761ecc37a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Agent/ConfiguratorConfigurationStore.swift:86-96 | Packages/OsaurusCore/Models/Agent/DefaultAgentConfigurationStore.swift:39-50 \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":"Packages/OsaurusCore/Models/Agent/ConfiguratorConfigurationStore.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a90804a88fa3c233192efdff87511380e32abf8f464c7b80fef81bff474c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Models/Chat/ChatInputHistory.swift:45-63 | Packages/OsaurusCore/Models/Chat/ChatInputHistory.swift:69-87 \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":"Packages/OsaurusCore/Models/Chat/ChatInputHistory.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1e9fe038c475c32fc9ebe1aa37cc23da144aab64d0cbe0423c808abbdda868"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Models/Chat/RequestLog.swift:455-473 | Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:123-141 \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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"877790a0c8b32c571d3d6a095981bf9df8ec3349261d01e09b56a63e6bb72106"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Packages/OsaurusCore/Models/Configuration/MCPProviderTemplate.swift:174-195 | Packages/OsaurusCore/Models/Configuration/MCPProviderTemplate.swift:198-221 \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":"Packages/OsaurusCore/Models/Configuration/MCPProviderTemplate.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e11c41e80665ebeab4a1622007a73c31db1eb577a1f24dfa66f96300021cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift:41-59 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:463-485 \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":"Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"daffb7a2ccbdb344ff40afcbfa3052dadbadadd2a00ead92f5cb2b593b4ee7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/Models/Documents/BusinessDocumentSummary.swift:85-101 | Packages/OsaurusCore/Models/Evidence/EvidenceReportRegistry.swift:47-63 | Packages/OsaurusCore/Services/Documents/CSVTableWorkflowService.swift:18-30 \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":"Packages/OsaurusCore/Models/Documents/BusinessDocumentSummary.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8759a108829976c0102063ead541bc23f7d0514811e6630604f731e160048a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/Services/CrashReportingService.swift:349-362 | Packages/OsaurusCore/Services/ProcessMemoryProbe.swift:25-37 | Packages/OsaurusCore/Services/SystemMonitorService.swift:273-287 \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":"Packages/OsaurusCore/Services/CrashReportingService.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a6e4193834586eefdb03c69860eb2ca128c05065a56ca0412c80fa7507fc9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Credentials/AppKeys.swift:122-131 | Packages/OsaurusCore/Services/Credentials/AppKeys.swift:134-142 \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":"Packages/OsaurusCore/Services/Credentials/AppKeys.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6282a28b66e56fc4e59248d2bc4e2914f18710f2db1c0d14acaf9c10d094e4ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/ExternalModelLocator.swift:1070-1080 | Packages/OsaurusCore/Services/ModelSizeCache.swift:127-137 \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":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"b309598a7c01e88de188f0df767641227704efbfacd3c68d751c3e44100958bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPServerHub.swift:178-195 | Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift:305-320 \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":"Packages/OsaurusCore/Services/MCP/MCPServerHub.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7635bcfb6a40a376355867e56229a2114871b7a75946a26802f71fe662b838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPServerHub.swift:241-257 | Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift:362-374 \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":"Packages/OsaurusCore/Services/MCP/MCPServerHub.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"e358989fcaadea2d2a0c283a0b6211a4c5e942fc7a02f091b00aa62e19e7a400"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Managers/RemoteProviderManager.swift:634-655 | Packages/OsaurusCore/Managers/RemoteProviderManager.swift:725-744 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"80df665c77d900789fb43a5ae924fb748f280b4767687d1989eaab2dfdc83ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1895-1900 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:3060-3066 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cfcc6e3af362fbc88b29b458ce0e45ce1f0750520fb13ca703973fd5f7cbc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:109-129 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalTranscript.swift:50-68 \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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24adc48bb512f2bace34c2d957f43c6a2f7661f89990e97ad48bcae60371ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:1169-1176 | Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:1179-1186 \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":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf0fad39e460bd5ee138534b6240747ec5d10ce03e0831f74600bd11d037dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): Packages/OsaurusCore/Services/Documents/CSVEmitter.swift:29-50 | Packages/OsaurusCore/Services/Documents/DOCXEmitter.swift:23-34 | Packages/OsaurusCore/Services/Documents/PPTXEmitter.swift:25-37 | Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift:25-38 \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":"Packages/OsaurusCore/Services/Documents/CSVEmitter.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b2c3f827841db95ba22a89e58f948f44999a3881527aae0918d049f65b6275"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/Documents/PDFAdapter.swift:688-702 | Packages/OsaurusCore/Utils/InsightsBodyCapture.swift:23-34 \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":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0f75b903818b572ffc4e0115097f3e8dd2b55c5eda99095687193874085f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Event/ChannelMessageEventSource.swift:203-218 | Packages/OsaurusCore/Services/Event/ChannelMessageEventSource.swift:224-241 \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":"Packages/OsaurusCore/Services/Event/ChannelMessageEventSource.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a01743394acebfbdaa694750459071acd135d21422fb972ec2838c2bdc0cca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/FileHistory/FileChangeJournal\u002BRevert.swift:128-137 | Packages/OsaurusCore/Services/FileHistory/FileChangeJournal\u002BRevert.swift:141-152 \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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal\u002BRevert.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0ed74e80fa84e44384f958b2e6d215e92995a7d967f44466514ff5f17df356"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:123-128 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:158-163 \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":"Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0b57e8fdd1015e50c9a1ab9d4e4be3e913116aec3719c536e18ea90dd619e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Template/TemplateShareOptions.swift:16-23 | Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift:863-870 \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":"Packages/OsaurusCore/Services/Template/TemplateShareOptions.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"583ef5eb528b925716d4f52769f71ba7264c20200245148113ca302f14e32203"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): Packages/OsaurusCore/Storage/ActivityLogStore.swift:1095-1104 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1872-1881 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:975-984 | Packages/OsaurusCore/Storage/MethodDatabase.swift:209-220 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:320-329 | Packages/OsaurusCore/Storage/ToolDatabase.swift:298-307 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"29decd655ad4278a013afff10a6437b679e8934b7edf6180d651b2c3425b67eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:377-384 | Packages/OsaurusCore/Storage/AgentDatabaseStore.swift:96-106 \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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f670e0f455617deb6d9b2c54143d72aadcbd0c081435d0b78cb458ecd25e864"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:1367-1386 | Packages/OsaurusCore/Storage/AgentDatabase.swift:1393-1414 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b196c6e645e7254bc12c27110e7318291c623ecda97f453fdad479896c5eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:171-184 | Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:186-199 \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":"Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff0170b30ef852d0c80ff12d2e6d3bb36c2fc9770e0065704a2c3ebc82c35b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:132-140 | Packages/OsaurusCore/Models/Workflow/FolderRequirement.swift:61-68 \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":"Packages/OsaurusCore/Models/Template/TemplateRequirements.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b646663a7e5d944b182112bb3706f40a42010f34d0faf0868c652789e1ed7e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 17\u002B corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:982-998 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1000-1018 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1020-1038 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1040-1058 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1081-1099 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba34ca0861c3f2ce1d245e9806f82b6c89cfff543ee90c17c8ccb30d5c7c050"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/Context/MemoryRecallEvaluator.swift:138-147 | Packages/OsaurusCore/Services/Context/ReasoningChannelEvaluator.swift:98-109 \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":"Packages/OsaurusCore/Services/Context/MemoryRecallEvaluator.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e374b900ff31e7cc82f3f1c2ece34dff62da84d5d60647c9cd5d035fb66d0331"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Knowledge/KnowledgeVectorIndexer.swift:96-108 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:302-314 \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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeVectorIndexer.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e29a2c269393d22079355719bec9b1006d2861008563b5137f890b4acd1cca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/NotificationService.swift:107-119 | Packages/OsaurusCore/Services/NotificationService.swift:121-137 | Packages/OsaurusCore/Services/NotificationService.swift:234-243 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/NotificationService.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4635ff250d2768d9a0a002fca3b3879d9028cbe09ada8e8475dbd7a514c6f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Services/Router/AnnouncementsService.swift:106-120 | Packages/OsaurusCore/Services/Router/SupportService.swift:136-152 \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":"Packages/OsaurusCore/Services/Router/AnnouncementsService.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a8839d8adbe77588f827469d634e946b01a0aa1b69f608907b0294e904741d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:518-531 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:533-546 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:628-634 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:636-642 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:663-669 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"95426bbc39aabe05b9dd6df4cfcaf735a82b1d0a40547d95cd5cbd772e6bd339"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift:299-310 | Packages/OsaurusCore/Services/Sync/SyncServedChats.swift:326-337 \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":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"24423e0fd71a298c1a883e1056b7a5ff441579c0cd983ec62cbd53bf0c27713f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift:51-65 | Packages/OsaurusCore/Services/Sync/SyncServedChats.swift:249-267 \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":"Packages/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce60fcde9278b741af33ec64667f0687fda471d001426afb77ceb89f2faaedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1883-1892 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1328-1337 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1397-1411 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:331-340 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7b64e6d13a054dd09500bb1ae4e0fe87a325af6a456d7d6378bd1e37b3a3a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentReorderSheet.swift:98-105 | Packages/OsaurusCore/Views/Settings/RemoteProviderReorderSheet.swift:102-115 \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":"Packages/OsaurusCore/Views/Agent/AgentReorderSheet.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5925b98c70d7a35973fe8fbea27f2071282b3678d2a0c0755482050baf44a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1972-1984 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowInspector.swift:359-371 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowCards.swift:181-194 \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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c791c6a7815c1f53491d7c66954dd3bb792c9745439de871d625c6a080372e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:375-391 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:1278-1294 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb8c596f29e5cf47e126a6082b33adbdb7c92e6540a2525a278886adee7de23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:370-377 | Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:516-526 | Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:641-648 \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":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbf8bbe3f6fb6535e3ef7656efe2f7618bd526e180b639052476210c415b5d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:986-998 | Packages/OsaurusCore/Managers/WindowManager.swift:505-516 \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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9a91e532b26456a397c9238ddcbb179d5d4e3f17f3c612a3ab4e6f788af02b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Managers/InsightsService.swift:434-441 | Packages/OsaurusCore/Managers/InsightsService.swift:444-451 \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":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb33ecd952a1c98b213b485cd7688237cf3ca7b4ee1fb48e2f11a9f081759cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/Keychain/EventSecretsKeychain.swift:32-42 | Packages/OsaurusCore/Services/Keychain/SourceCredentialVault.swift:26-36 | Packages/OsaurusCore/Services/Keychain/WorkflowSecretsKeychain.swift:105-114 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Keychain/EventSecretsKeychain.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e823bd685b53fb9f3218cba42d47920ea897bbb6f74fc2e6d29938ba3bf2f11f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/Workflow/WorkflowRunService.swift:81-89 | Packages/OsaurusCore/Services/Workflow/WorkflowRunService.swift:94-101 | Packages/OsaurusCore/Services/Workflow/WorkflowRunService.swift:304-311 \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":"Packages/OsaurusCore/Services/Workflow/WorkflowRunService.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"766eec119772fecd8caa7e3f59660938cb5f387839ce0e5f4425ef51aa16aff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:4122-4148 | Packages/OsaurusCore/Views/Agent/AgentsView.swift:4150-4173 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":4122}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7d5f8e455296e20867973eb245939c9d2fc74df887b934d333aac311e926f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:887-909 | Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:911-927 | Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:960-976 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2cca911ee74817b6130c592270ca265efa59986e65ce8f36b48d2c3421ff2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:157-168 | Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:202-217 | Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:229-244 | Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:258-274 | Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:287-302 | Packages/OsaurusCore/AppleApps/Messages/MessagesTools.swift:88-102 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"186825a89391b816a641aacbef3276bf20c72e1a80061e446ed29dfe79a31fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Agent/AgentDispatchTarget.swift:120-130 | Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift:73-84 \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":"Packages/OsaurusCore/Models/Agent/AgentDispatchTarget.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d2e7c5f8c16182e82b6c75af2b9b2c4234297b23de069f90f935eae8c3fab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:410-429 | Packages/OsaurusCore/Services/Attention/Participant.swift:232-244 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a71e5d5198b051b3d54c95a3f907fe413815d9f47979c94652968c3be776419"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Chat/Attachment.swift:543-556 | Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift:1095-1101 \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":"Packages/OsaurusCore/Models/Chat/Attachment.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"264e6bacf84481d88f7d829415408a608c52e009106cba2641f7283c58baf054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Template/Template.swift:402-408 | Packages/OsaurusCore/Services/AgentChannel/ChannelAgentRoster.swift:288-294 \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":"Packages/OsaurusCore/Models/Template/Template.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00bd2750feb0b7c89429d35c723c822c15642ffc9037f9cc4949bb610561e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift:39-50 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:311-318 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:619-626 \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":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b73286261cab8eb6f16b4d16f39b9e0d0c79619ba056e493642c7c97788148"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:810-817 | Packages/OsaurusCore/Storage/ActivityLogStore.swift:565-571 \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":"Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"940a7c0f0d19fbbc5b0170a14b9d267d7b290d4c0a83e48d57fbc8733876291e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Workflow/WorkflowConnections.swift:393-398 | Packages/OsaurusCore/Services/Workflow/WorkflowConnections.swift:400-406 \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":"Packages/OsaurusCore/Services/Workflow/WorkflowConnections.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"b599572d6f92d4d057e1b56694b6982d6321b1c8bff8f697e13fe686bb1024c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:2633-2660 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1183-1197 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:652-665 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":2633}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec554505d47fa5bb17d89add5b5a07e9ba96c67b55cb45ddf30c33a0852cc11c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift:308-314 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowConnectionsSheet.swift:126-133 \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":"Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f507f182449687648f0f4b4f9d39815e8e229b3275fc51ccee4d765e7f0cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:727-747 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:852-868 \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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf540b601808f9f6d9f2b11db4aa8956f3a196089073ac7842840b8e5890594"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift:1439-1450 | Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift:1452-1463 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.swift"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e10516479ba58cc75f595e6e992acb073c6b47c5ece0b43827e2a6e7b4e668"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/MLXModel.swift:114-134 | Packages/OsaurusCore/Models/Configuration/MLXModel.swift:232-252 | Packages/OsaurusCore/Models/Configuration/MLXModel.swift:291-311 | Packages/OsaurusCore/Models/Configuration/MLXModel.swift:316-335 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 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":"Packages/OsaurusCore/Models/Configuration/MLXModel.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76f4cac3f67fa96538c892b611cd7831d3e128d056b144fc6b2b19b9d051e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Models/Memory/MemoryModels.swift:348-370 | Packages/OsaurusCore/Services/FeatureTelemetry.swift:65-85 \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":"Packages/OsaurusCore/Models/Memory/MemoryModels.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"0079f0c8e98f2926a02f4531201f0fb27526c0fb97303079649d54e0f8877ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Models/Plugin/SandboxAgentMap.swift:83-94 | Packages/OsaurusCore/Services/Sandbox/SandboxAgentUIDs.swift:50-59 \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":"Packages/OsaurusCore/Models/Plugin/SandboxAgentMap.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a70a9404e64308db9aa6125c65e512ff34dc329e877197da7dc79c42d36ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 17\u002B corresponding lines): Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:212-228 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:250-266 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:335-351 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:356-372 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:374-390 | Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift:392-413 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f6463c771453184690c2cbf9b92eb918d5f5f71871ec1368978601d8aab89d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:2386-2397 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3454-3465 \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":"Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift"},"region":{"startLine":2386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3594617231cf54e7048ecd0d1e4aec189e831736d86bae7f13d37c9e6c202360"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/SystemPermissionService.swift:485-500 | Packages/OsaurusCore/Services/SystemPermissionService.swift:510-525 \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":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7e4a591ac64e423952c302ed33525200e4064347a6b670216d0a3d2e6f40fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:417-425 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:488-496 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:416-424 | Packages/OsaurusCore/Storage/TaskDatabase.swift:663-671 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:274-282 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4415e8561551dde595cabf2861efeaab06ec1ab12ca3243f6b18b5a27fe245f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Tools/OsaurusTool.swift:451-462 | Packages/OsaurusCore/Tools/SchemaValidator.swift:471-480 \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":"Packages/OsaurusCore/Tools/OsaurusTool.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f68bdb1193e33015ceb2062da6b45ba253e1787e5f5a060206b5d6c0632c70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:707-725 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2400-2421 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"10be037dce36245413c3255df88ca54dc0b99b3b7741e5cc3425e35ec8686dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Identity/MasterKey.swift:441-461 | Packages/OsaurusCore/Identity/MasterMnemonicStore.swift:143-154 \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":"Packages/OsaurusCore/Identity/MasterKey.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6784d886fc85f5fa13eb1d8fd914ebfff0462ab8f536ff933a14163482be0e53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Context/EvalHostBootstrap.swift:109-121 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift:843-865 \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":"Packages/OsaurusCore/Services/Context/EvalHostBootstrap.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfc9215d4942e3071339d65d640cc36b2ed8a77d21e5a940c9c36bda526d29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:315-332 | Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:344-352 | Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:354-362 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08eb514b5343590663026f7821894cbb1a8cd29c4aa68c5e8682c2cdfc12041"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordPollingTransportRuntime.swift:45-62 | Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:75-95 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:61-81 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordPollingTransportRuntime.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7974031b016ad6160d3bcd8cc8bd7095a9eb247ac1e574af4955435bf7a1543a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Event/EventManager.swift:332-339 | Packages/OsaurusCore/Services/Event/EventManager.swift:343-348 \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":"Packages/OsaurusCore/Services/Event/EventManager.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"5276727926eb4ce95a8ceb24ee4c52f78d231836b597a1c31314e4ce1ff95869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:841-863 | Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:900-923 \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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"543a8193ee6b0ab379470d0c55ff6f6afef89fbcc8618e73c8ec9c782c926e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift:827-840 | Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift:842-855 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bd7644727ace578cfd07731ea1b5ace2a43a3f193f4ba04fa0a59b5a0aef7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift:139-147 | Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift:235-244 \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":"Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37e472fdf4cd0647e66dfeb4c4f0caf799504b5556faf50b870ae12fc76b6eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:594-603 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:606-615 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:2127-2136 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd15df5ec372d71cbc08382eb447e3c3c527d31fb20640d6782047677d7caad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowLayout.swift:128-132 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowLayout.swift:134-138 \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":"Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowLayout.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88330fd9cb5246cd004797ecdb51c305cd08a19244c904a47d8cba7943354bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/ComputerUse/Feed/ComputerUsePromptQueue.swift:279-285 | Packages/OsaurusCore/Configuration/Declarative/ConfigApprovalQueue.swift:189-196 \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":"Packages/OsaurusCore/ComputerUse/Feed/ComputerUsePromptQueue.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7579bd2b8307c85a40f9cfcecaf7d7eef323a1ede82ff4bda238f8cb6971daa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Managers/SearchProviderManager.swift:348-361 | Packages/OsaurusCore/Managers/SearchProviderManager.swift:390-411 \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":"Packages/OsaurusCore/Managers/SearchProviderManager.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"50779d7c3d377f85d4738bac6ba4f68ce8c31f822e5a00f4996d92afc076f93c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 19\u002B corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:294-318 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:320-343 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:345-366 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:371-394 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:465-483 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ae2038ef59ec741aff886b9574e4c5fbf26cf401b5a51c544a1b038b4e8d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Models/Configuration/EmbeddingDetection.swift:32-47 | Packages/OsaurusCore/Models/Configuration/ModelFormatDetection.swift:33-48 \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":"Packages/OsaurusCore/Models/Configuration/EmbeddingDetection.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7003e93f924ec4d1566e4ba0f932e05cbc7e58ed548194c593e6a45464b2d957"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/ModelOptions.swift:484-493 | Packages/OsaurusCore/Models/Configuration/ModelOptions.swift:1001-1012 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalThinkingControl.swift:33-39 \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":"Packages/OsaurusCore/Models/Configuration/ModelOptions.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e638996f6967a59fe33eeb50948a00b3a9f6911d4c936a32cd43fd19170a0e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:231-238 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:695-702 \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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"237172cafa6651bcca5290cca22e5d564c7933bcb4e52f7898e1aa3f169866f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionManager.swift:269-287 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionManager.swift:291-302 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionManager.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bee8ddb5e396cab82f0849847d6d6074f591a24ba3262fd239cf6560520bb0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:783-793 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1110-1121 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"9649602006c5e9aa815c601edba74a2cfd31856034aa6ac59e4a1e009d397089"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/Sandbox/LiveExecRegistry.swift:155-164 | Packages/OsaurusCore/Subagent/SubagentFeed.swift:602-612 \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":"Packages/OsaurusCore/Services/Sandbox/LiveExecRegistry.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace82efe1c0afb50c1422e3fa48378341419b5884877d7f6dd6fed499031239e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1218-1226 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1283-1295 \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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"174a109c4041d16c998af0cf9917795926555174383682c47a9c4bc5e2f8550c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1084-1107 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1112-1132 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47d693288d933e4f3a71951844ffd45a46107129a93dc4f9f53dfe5e00c095a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Chat/MarkdownImageView.swift:408-420 | Packages/OsaurusCore/Views/Chat/NativeChartView.swift:383-392 \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":"Packages/OsaurusCore/Views/Chat/MarkdownImageView.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad57fc88035c6051f8c66ea33b4da9c8967b970ebe34ef866b2b73e169cdd7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift:675-685 | Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift:687-697 \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":"Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9213dacc333438dc3dbceed193794ac3a61a6e6b69b4d80ec889023d1843ad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:131-137 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:47-53 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:741-747 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"def7c4fd2a4f4acad53865b17576c72ee677845464ef121190fd985693a303a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 6\u002B corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:359-365 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:505-510 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:611-616 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:618-623 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:680-685 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:704-709 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:807-812 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e9ed2c6844565877e84142ec9fed13dbdf50f6de5c88acb4d7062dc1cfb79e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/ChatImport/ChatImportVerifier.swift:334-339 | Packages/OsaurusCore/Services/Documents/PPTXEmitter.swift:98-102 \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":"Packages/OsaurusCore/Services/ChatImport/ChatImportVerifier.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d312a9466104fab37acfb176b03d082f830a79abbe62b1f064a05f3f71a3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/ExternalModelLocator.swift:1082-1091 | Packages/OsaurusCore/Services/ModelSizeCache.swift:139-152 \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":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a13c30811b140b97f4bd3ece39a9bcb9e0a91d89c84e926d250fc4327d45bfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:210-227 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:189-206 \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":"Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba8a76623e62611bd28b87a8002c68b9e99bd290b31d5de20405a5ff2528aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Inference/ModelService.swift:306-312 | Packages/OsaurusCore/Services/Inference/ModelService.swift:497-503 \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":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"76653b76102b7e97efc613a23bdfdf98a839a0518525de261e5694de3f8e0c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:122-131 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:151-161 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:333-344 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2609eef4dd654d792887229e0b498a172411abf6a8ef3fac7cce77c2e4cb598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:572-593 | Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:597-611 \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":"Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dbd539f758076e6b15471b81c8011d776f335bfd72eafc0dfc575747c41420"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1258-1277 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1633-1650 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1659-1678 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f03d6eae2486a2eae7b9ed5f54a0b04c115ca304f93c4755b3efec0c997707"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatImportReviewView.swift:164-172 | Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift:446-457 \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":"Packages/OsaurusCore/Views/Chat/ChatImportReviewView.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5deb196c3babe765bc4e1ad2377f7f1807cc7f2193658f5815601622648c6b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Chat/ToolDisplayName.swift:249-256 | Packages/OsaurusCore/Views/Chat/ToolDisplayName.swift:318-325 \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":"Packages/OsaurusCore/Views/Chat/ToolDisplayName.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"36198142f16ad0072a4c3fb45728499b536014a206fbe30f21ed3632f3867f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:537-553 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:970-984 \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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab451e198e30580c4aa9c50a840a5fd1b26304235f047f5de3d2ff902af0523"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Knowledge/KnowledgeWritePreviewView.swift:166-176 | Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift:450-461 \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":"Packages/OsaurusCore/Views/Knowledge/KnowledgeWritePreviewView.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f8793a94e3861b46aae77984918ecfb4856deafb6d2356cb9959736c30b701"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1654-1671 | Packages/OsaurusCore/Tools/SchemaValidator.swift:853-862 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:834-843 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2da920cbb8ec38cd18a1ff59e524fba370d3289576ca11a3e1bf877a090904f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Models/AgentDelegation/SubagentConfiguration.swift:1196-1205 | Packages/OsaurusCore/Services/Sandbox/SandboxPackageManifest.swift:133-143 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:468-480 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentDelegation/SubagentConfiguration.swift"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3714a72029705cc03dbad76ffea08234d36b814fd7be8f4f93cc0908fe1162da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:759-763 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:908-912 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c624c755a32bccc3fe41ae8ccea69668181ef30ed4b6f0717809395aa07023"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/EmbeddingDetection.swift:49-65 | Packages/OsaurusCore/Models/Configuration/ModelFormatDetection.swift:50-66 | Packages/OsaurusCore/Models/Configuration/ModelInfo.swift:246-262 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/EmbeddingDetection.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ec202895b6583c4741edaa59b01b94d8d27ed69061abe83595bfcad2b0c748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusCore/Models/Event/EventPayload.swift:326-334 | Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift:312-318 | Packages/OsaurusCore/Models/Workflow/WorkflowValidator.swift:328-334 \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":"Packages/OsaurusCore/Models/Event/EventPayload.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"4152278ad825d39de8a892049a73e18b2fea8d32f25659d5d1335c26e84f0060"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusCore/Services/Attention/AttentionOpener.swift:39-47 | Packages/OsaurusCore/Services/Task/TaskControl.swift:66-72 | Packages/OsaurusCore/Views/Event/EventDetailView.swift:733-739 \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":"Packages/OsaurusCore/Services/Attention/AttentionOpener.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f31d927c8a4a3837922c0a97eac2efa1f0acdfad1cbe2671ee5ac0298cc7b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:406-420 | Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:426-438 \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":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b92027adc471d9923d11f1ad9bb8d758f30ff85f4493b425ddb3d303f65e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Credentials/CredentialResolver.swift:81-87 | Packages/OsaurusCore/Services/Credentials/CredentialResolver.swift:92-99 \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":"Packages/OsaurusCore/Services/Credentials/CredentialResolver.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b470aea11e15c650f011d77a6628cc43b8a876d49ad931486e87dcec177cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift:390-397 | Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift:451-460 \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":"Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"297f95a7d4af5458967ee618ccd4a9a0c288d475083f160853c979ff65fa39a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift:660-672 | Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift:250-262 \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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f45790a099524408d61b994dfcabcc7ec53b5a761c7cdba070c165a38b505a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime.swift:1096-1113 | Packages/OsaurusCore/Services/ModelRuntime/ModelLease.swift:117-128 \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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b979c93361e0d4f3d8a8f16bcd2160c9986c0de8c00b740993d78dc2e228d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:59-66 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:332-340 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:471-479 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"751829c524c953cc3f4f9aefb9652aa856d3e9a0eff79d304ae95cf453236600"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncAgentDirectory.swift:191-201 | Packages/OsaurusCore/Services/Sync/SyncDeviceFeedContract.swift:359-369 \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":"Packages/OsaurusCore/Services/Sync/SyncAgentDirectory.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa284b9511184e9fee5c50142e0a1c39658e96f5f3b32884a27c8d0170a64eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1129-1148 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:735-754 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1026-1045 | Packages/OsaurusCore/Storage/MethodDatabase.swift:325-337 | Packages/OsaurusCore/Storage/ToolDatabase.swift:387-399 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5227f85100cacd12bd9a3dae53d0f1efb5d1faae0a5293dd161c088eb0df3ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Storage/EncryptedSQLiteOpener.swift:202-212 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1318-1326 \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":"Packages/OsaurusCore/Storage/EncryptedSQLiteOpener.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5b0b1ffeae50c9e2e9937c357263494fa976a6bf612ad7db54ca784c0c1422"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:648-661 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:337-350 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2677-2693 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0f13fddeb779b4fc5c2a6636c859c5257676a4528dcb8521e50aba8edd6028"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:289-305 | Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:311-326 \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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6f8f20ee91c0326421b62ae4f8417961591c8d1e192bb9918c450bc7f37fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift:37-44 | Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift:47-54 | Packages/OsaurusCore/Models/Tool/ToolExposureDiagnostic.swift:217-223 | Packages/OsaurusCore/Storage/PluginDatabase.swift:428-434 | Packages/OsaurusCore/Views/Chat/ChatView.swift:2964-2970 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef7b46703a9d3ead6c2f710fad3968168d355ce0760d02f1767c052b1e25177"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Packages/OsaurusCore/Identity/CryptoHelpers.swift:314-324 | Packages/OsaurusCore/Services/Auth/PKCE.swift:63-71 | Packages/OsaurusCore/Services/Channels/ChannelSecurityEncoding.swift:18-28 \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":"Packages/OsaurusCore/Identity/CryptoHelpers.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b47cbcaafcdebc0f21d417fd535540da9891f154334ace3b0206cfc0bf68266"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Packages/OsaurusCore/Managers/Model/SpeechModelManager.swift:269-287 | Packages/OsaurusCore/Services/AgentDelegation/ChatResidencyHandoff.swift:275-289 | Packages/OsaurusCore/Utils/OsaurusPaths.swift:941-951 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Model/SpeechModelManager.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc97b65db4d6634233a0683f7d608e06ba7af0a7d0c44ff3644e7edc6b80fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 10\u002B corresponding lines): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:103-118 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:157-172 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:367-382 | Packages/OsaurusCore/Models/API/EmbeddingAPI.swift:25-37 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:120-135 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:342-357 | Packages/OsaurusCore/Services/HuggingFaceService.swift:163-172 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f50da4933f4fd979f2d113022b1f3dce1340811f35d8ae8574649be35f5d864"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Models/Agent/AgentStarterTemplate.swift:29-38 | Packages/OsaurusCore/Models/Agent/AgentStarterTemplate.swift:53-62 | Packages/OsaurusCore/Models/Agent/AgentStarterTemplate.swift:67-82 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Agent/AgentStarterTemplate.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0748d3bcef46880b2f64d70bab94fa2cb0a6c30855376b599cb674bf4afb97ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/ServerHealth.swift:20-29 | Packages/OsaurusCore/Models/Configuration/ServerHealth.swift:32-41 | Packages/OsaurusCore/Views/Settings/StatusPanelView.swift:65-80 | Packages/OsaurusCore/Views/Settings/StatusPanelView.swift:82-91 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ServerHealth.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba2f5da5edcd43a20c196c3a6e82c9663455e7495960e0e6e6e5c91db1ed0a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Theme/ThemeTokens.swift:275-286 | Packages/OsaurusRepository/BundleSettings.swift:19-29 \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":"Packages/OsaurusCore/Models/Theme/ThemeTokens.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c168b1eeb829e70d267a640aba52e2e360958f2cced007147b397104e33e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:936-943 | Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:1315-1325 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afd27450e4c95216d783c92955e81ef70b7016c4903ce83a26f15ee457bdac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Credentials/Consumers/PluginCredentials.swift:83-89 | Packages/OsaurusCore/Services/Credentials/Consumers/PluginCredentials.swift:93-99 \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":"Packages/OsaurusCore/Services/Credentials/Consumers/PluginCredentials.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b89393037ee8c0d8dbd67f1fe6baa3dd843bcee4a7997196c6cd27cef822a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/LocalReasoningCapability.swift:518-532 | Packages/OsaurusCore/Services/LocalReasoningCapability.swift:555-566 \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":"Packages/OsaurusCore/Services/LocalReasoningCapability.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"612104bdd468c3f5a52da016ed13f0137ba7c7ab3fa8cacb5d1d7fadd8803d70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift:199-210 | Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift:246-260 \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":"Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea9448f8bec6d1de804115809fbb8099c5db2939188f734cd5bfd879f884dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Workflow/InstalledWorkflowStore.swift:374-378 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowsView.swift:537-541 \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":"Packages/OsaurusCore/Services/Workflow/InstalledWorkflowStore.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cf5179d8c324a2422737fc17f03f3add8812f78a5f6eb71354a4156084718e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:683-698 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:407-423 \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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"f299910b4bb506a04bf1181afa0c52de15859520ae55fedfbb95e9162464be8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1047-1059 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1168-1180 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:293-305 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bd07f5f0ebf8f745fff2adaef9e611287125968a393ea78f93093e5f45f137"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:5240-5253 | Packages/OsaurusCore/Views/Settings/ClaudeCodeSetupStep.swift:73-84 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf18bdb4bf09251fcdec68c9792b95fc2fc74663c38a90dd1817bf7ed6693a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Packages/OsaurusCore/Views/Agent/CapabilitiesTableRepresentable.swift:163-173 | Packages/OsaurusCore/Views/Chat/MessageTableRepresentable.swift:497-510 | Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift:211-221 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/CapabilitiesTableRepresentable.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d821b0284973b3265ed75c2792b596c3b264f90e146939b6697482b041476c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:240-250 | Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:361-371 \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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af5b620729797091d712bd46821fa817007def343d6cb745426454dd5205940"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Model/ModelDetailView.swift:776-786 | Packages/OsaurusCore/Views/Settings/ServerSettings/MemorySafetySection.swift:209-221 \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":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb8f5123a23b127f9ef49eac05faf5de669794812343eee26ce51d6cd897ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift:910-921 | Packages/OsaurusCore/Models/Chat/DispatchEnvelope.swift:419-430 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6028-6037 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ScreenContextFixture.swift:635-645 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"649b319fbeb69dc8c6b7e91c1f6468c6e8ee8c8bb97fa54c3d4f7c9ce28511a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Managers/AgentManager.swift:1456-1464 | Packages/OsaurusCore/Managers/AgentManager.swift:1470-1480 \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":"Packages/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b0536810da233de25a3d9d547afddb30250ab4168b8005701f84dbd89799a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Channels/ChannelSecurityPolicy.swift:52-62 | Packages/OsaurusCore/Models/Channels/ChannelSecurityPolicy.swift:87-101 \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":"Packages/OsaurusCore/Models/Channels/ChannelSecurityPolicy.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a207b7821375b60be5f0cb6c7fdd968f1d86145ae341766c8ba2a87e3bd810e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:813-830 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:970-983 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7ba155e780123c9aab04252d4e00abaf040be383d54ed482cd7413dab35e96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Workflow/InstalledWorkflow.swift:199-209 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7690-7700 \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":"Packages/OsaurusCore/Models/Workflow/InstalledWorkflow.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d4d334e683c0a58fb3d20c9302d63e1645aec1f0864d4b0aafe4aecdeb8047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Models/Workflow/WorkflowChannelReplyTarget.swift:24-36 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:445-463 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowChannelReplyTarget.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf5b108621a9b96add89ecb860bd6c3f1626b62a3876883238696258ec4a44c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Views/RedactionPreviewTextView.swift:255-268 | Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:491-502 \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":"Packages/OsaurusCore/PrivacyFilter/Views/RedactionPreviewTextView.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f5bd5e23cdc417fb1813a3ca2d19d07a05e7704c79108c8bd386830b499aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Services/AgentBridge/AgentRuntimeBridge.swift:93-107 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:106-124 \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":"Packages/OsaurusCore/Services/AgentBridge/AgentRuntimeBridge.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7358b8471d9d3af2fab8bcbe983e498b8385b6e7356786d57ba5801cdd8eede6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Packages/OsaurusCore/Services/DirectoryPickerService.swift:212-228 | Packages/OsaurusCore/Views/Credits/CreditsView.swift:900-911 | Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:622-634 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Packages/OsaurusCore/Services/DirectoryPickerService.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"72805cd8f72b5187177c9f37496573a37ed0662358dd560df0c016dfcc882b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Email/SMTPClient.swift:269-277 | Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift:570-578 \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":"Packages/OsaurusCore/Services/Email/SMTPClient.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb65036c8c8ec094c5a23458662ab08102f9d027522c358ac7d1e638c15581a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): Packages/OsaurusCore/Services/Inference/ModelService.swift:382-387 | Packages/OsaurusCore/Services/Inference/ModelService.swift:531-536 | Packages/OsaurusCore/Services/Inference/ModelService.swift:552-557 | Packages/OsaurusCore/Services/Inference/ModelService.swift:771-776 | Packages/OsaurusCore/Services/Router/RemoteRunArtifacts.swift:69-74 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"3729beef3bdc68ab9a4e43ccb5b60cbd2479c3cc44cb93b32f58e4cb7ebf6ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/DesignSystem/SettingsButtons.swift:363-381 | Packages/OsaurusCore/Views/DesignSystem/SettingsButtons.swift:635-649 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsButtons.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"603ce15bfc54d2ef70bc4c9a7c74600c489032e47e51d86ccffe4421064b3678"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:556-565 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:530-536 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:898-907 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"2278d95b444c5645f03de586be23b7cb440a02c72e22818c82f8814548bbdc99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatSessionExportCoordinator.swift:153-158 | Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift:317-322 \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":"Packages/OsaurusCore/Managers/Chat/ChatSessionExportCoordinator.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82cba4cf3057a2d9144f1eeb70dd127b9ec86d8d3ed67cb56c9d05c13ae5062"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Managers/MCPProviderManager.swift:689-699 | Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1027-1037 \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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa04926b6258b86e07ce519f9b4eebb0bc414b0b6586adaee71344dfc4c2b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:1230-1248 | Packages/OsaurusCore/Models/Template/ListingEdits.swift:67-78 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:1093-1111 | Packages/OsaurusCore/Services/Router/OsaurusRouterWorkspaceTypes.swift:112-130 \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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9b887bccdef006247d8382cadd0f92f495713dd405a175bfa0ff4cd61f5091"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 13\u002B corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:1076-1089 | Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:120-132 | Packages/OsaurusCore/Models/Email/EmailChannelConfiguration.swift:298-311 | Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:293-305 | Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:236-248 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:202-214 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:249-261 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"5049fbf68dccd76d7080afc7d8dd0fdd034d66fae81b19017ac5d7124f243546"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Configuration/EmbeddingDetection.swift:171-177 | Packages/OsaurusCore/Models/Configuration/VLMDetection.swift:47-56 \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":"Packages/OsaurusCore/Models/Configuration/EmbeddingDetection.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1907c217af55de65c55ae39e5db50edc32a79e41e8d3af756a8f050429d056"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/Memory/MemoryModels.swift:43-57 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyRule.swift:186-200 \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":"Packages/OsaurusCore/Models/Memory/MemoryModels.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7f2dd52c4c815590a4b3e67d9deb0f4f87b5f5c18224c6cc7f170665067af3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Theme/ThemeRoles.swift:299-305 | Packages/OsaurusCore/Models/Theme/ThemeRoles.swift:442-448 \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":"Packages/OsaurusCore/Models/Theme/ThemeRoles.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"657a6834a8a124f8df3f439d0279c9edf3f419d9bf71063d144b7517f87560ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:3777-3786 | Packages/OsaurusCore/Services/LocalReasoningCapability.swift:687-696 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3777}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ab28cb5de4be324ed58e05032cf1e4d2affdc729661de97bd60ed48ee8a2d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift:580-588 | Packages/OsaurusCore/Views/Event/EventDetailView.swift:343-350 \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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fef399298cf65366f5269e2048c1dead9a6ada29f1b4ba343fc2b6853712e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordPollingTransportRuntime.swift:29-43 | Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:49-66 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:44-59 \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":"Packages/OsaurusCore/Services/Discord/DiscordPollingTransportRuntime.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"675d092d22eb5c45c094876d9351b0cf10c96b71f9098526a545b3a2251d26ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Inference/ModelService.swift:420-424 | Packages/OsaurusCore/Services/Inference/ModelService.swift:455-459 \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":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"039950ff823c9a4b00ded65a346c79383b2dbd8013ccc67940bc669141dd4603"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:518-528 | Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:530-540 \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":"Packages/OsaurusCore/Services/Memory/MemorySearchService.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf686449c279ec7aaf5d3403ea39c8701cf51827021dcb92a98e580113b7dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:165-180 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:132-147 \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":"Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c30f1e1db5a3bb33019a42d4ceff776de10531df10eb66ecca58606a4e4c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1281-1300 | Packages/OsaurusCore/Storage/MethodDatabase.swift:427-443 \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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4358b48494f72398892f9440f8eb31fc6e6e6187405fd767ca909ac7676503c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1739-1754 | Packages/OsaurusCore/Tools/Handoff/HiddenAgentHandoffRunner.swift:159-165 \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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb0ce24d0feb1307afe4777a5f1dee55ab98dba61dcc4f905e16dd449bdb1ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:447-455 | Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:643-651 \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":"Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b868f60a79448eb348f45e90d9352c4aa1562c3756ed8dcb7c8b8fdfdc3e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:4108-4120 | Packages/OsaurusCore/Views/Settings/ServerView.swift:1879-1892 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":4108}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b7532c155a0df2a55a01fb8c489ae741f4fdc87995e407c3edadd83849002f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:2045-2051 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:2055-2061 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":2045}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b039d94ed6e1dc25c137107d7528d02a40ffeb9d8c558bff0574de99e2bdf6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Settings/ComputerUseDiagnosticsPanel.swift:196-206 | Packages/OsaurusCore/Views/Settings/ComputerUseDiagnosticsPanel.swift:208-220 \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":"Packages/OsaurusCore/Views/Settings/ComputerUseDiagnosticsPanel.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafd49c32598aef1ba2d613b738ed75da9188103a90921a68f6bb093ddea910b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:61-63 | Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:65-71 \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":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8810276e81d47ce276af021b92426755ca0d45a15d81acf1ea8e736038866ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Managers/MCPProviderManager.swift:726-739 | Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1105-1114 \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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b9a328fed12908e0c7cfe9b96c54a79f8d5ced5d214e8e380ad57fdb447d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Managers/Plugin/SandboxPluginManager.swift:630-639 | Packages/OsaurusCore/Models/SlashCommand/SlashCommandStore.swift:44-54 \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":"Packages/OsaurusCore/Managers/Plugin/SandboxPluginManager.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bd68af73e3160dee7da56cd500f1e7f4407491ecdc413408c0618fccf13787"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Agent/Agent.swift:819-835 | Packages/OsaurusCore/Views/DesignSystem/SettingsChips.swift:61-69 \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":"Packages/OsaurusCore/Models/Agent/Agent.swift"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"86915c7abaf53f8d208ada5f6b7abf0a30360adad588578ae904d453ec0eb7f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Theme/Theme.swift:383-391 | Packages/OsaurusCore/Models/Theme/Theme.swift:440-448 \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":"Packages/OsaurusCore/Models/Theme/Theme.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8825ca6908e56ecc32a1735c0f10ddaa4ebdb67d56d288e779f10dd353121a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelAutoDestinationResolver.swift:137-146 | Packages/OsaurusCore/Services/AgentChannel/ChannelAgentRoster.swift:334-337 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelAutoDestinationResolver.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5fa5308cb0cc7be920f4af4f96a3a5b30b855f773c560cde024918067695d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:171-187 | Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:403-417 \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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5807186eefd49a6ba64718db00b6de5f0fc137ae263e9d23d82a4f1a89342ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift:178-184 | Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift:186-192 \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":"Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"00026b822af0f4d441bd1359a21ba5181420a9d82fdc6d06d02298c0f9e18fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/MobileConnect/MobilePairingService.swift:599-610 | Packages/OsaurusCore/Services/Sync/SyncPhoneDevices.swift:118-129 \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":"Packages/OsaurusCore/Services/MobileConnect/MobilePairingService.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5ff0b54aaa10896d8dd2381cb3cc336df253fde42f22068c9ab027caf42f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Onboarding/MacProfile.swift:54-64 | Packages/OsaurusCore/Services/Router/WelcomeCreditDeviceID.swift:42-59 \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":"Packages/OsaurusCore/Services/Onboarding/MacProfile.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a80f29a220a1b88adb994644eb2c7148fae1757dd54320cca5800aaf5f42046"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift:64-74 | Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift:59-69 | Packages/OsaurusCore/Services/Sync/SyncServedChats.swift:186-196 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bd646ee51a22fed24c860b5bccdecaaa6b1450650f4c393f37c70f1a0e8544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncKeyStores.swift:53-63 | Packages/OsaurusCore/Services/Sync/SyncKeyStores.swift:84-95 \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":"Packages/OsaurusCore/Services/Sync/SyncKeyStores.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"018708e1315fe17af1b0d31e614ef96b949caf96cee3b57061c5fe8a135ff5ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:346-356 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:332-341 \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":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1607402fc9ec8edbc5e83c840090ab886223a5fffc4ec6405281c30d9fe24d15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:433-450 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:580-600 \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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"757215bc5d51a5318fe714e58dedd5eae45d2262cc266bff8883db82a8ade3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift:40-56 | Packages/OsaurusCore/Views/DesignSystem/SettingsSection.swift:114-128 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb11f69278fc5a025a30b57709159f21e759cff0333c3a65dec133c88500a4be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Identity/MasterKey.swift:169-183 | Packages/OsaurusCore/Identity/MasterMnemonicStore.swift:123-137 \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":"Packages/OsaurusCore/Identity/MasterKey.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"0358bad1a4d6345f1fbc968b88c6dcf548fc8dae97a79e9bf6a3a399394b15c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:371-383 | Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:389-401 \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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"247cbe83063dc2adfcbad79ed5e4f8958b331c9fcee802db6efcf6f196a51c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): Packages/OsaurusCore/Managers/InsightsService.swift:256-265 | Packages/OsaurusCore/Managers/InsightsService.swift:267-278 | Packages/OsaurusCore/Managers/InsightsService.swift:474-483 | Packages/OsaurusCore/Managers/InsightsService.swift:485-496 | Packages/OsaurusCore/Managers/InsightsService.swift:500-509 | Packages/OsaurusCore/Managers/InsightsService.swift:559-568 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7e50eb5392c385058804f55b4b56a1ea6fc2359e1df9051fcc8e55f920873e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): Packages/OsaurusCore/Models/BackgroundTaskModels.swift:60-75 | Packages/OsaurusCore/Views/Settings/OrchestratorSupportSections.swift:383-392 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowCanvas.swift:553-563 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift:600-609 | Packages/OsaurusCore/Views/Workflow/WorkflowRunHistoryList.swift:24-33 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/BackgroundTaskModels.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"368555ad8e450394fd6a01a745c3190600ab8c0a915ae9ce84a9ea66ba00b268"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/Chat/ContentBlock.swift:352-366 | Packages/OsaurusCore/Models/Chat/ContentBlock.swift:416-430 \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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3b94b49714ec1da8f675d1780453ba2807d5fecdb5f65610caf3c52687ee92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Configuration/ModelOptions.swift:608-615 | Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift:444-449 \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":"Packages/OsaurusCore/Models/Configuration/ModelOptions.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"4508c1ba658f0a363f03dd0f5f4bca348e09b9cd2054215398e6b10a07867553"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Template/Template.swift:279-290 | Packages/OsaurusCore/Models/Template/Template.swift:445-453 \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":"Packages/OsaurusCore/Models/Template/Template.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"021dbebfed490a81d4a27405a522626014b641522b5326c9b4f6ed7d9861b7e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedNativePicker.swift:206-216 | Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift:1204-1222 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedNativePicker.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdf162d518aa3b1ff58ae79fe2b12edeedeb223422469ce5527ecf3948c681d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Workflow/BindingRenderer.swift:324-332 | Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:1913-1921 \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":"Packages/OsaurusCore/Models/Workflow/BindingRenderer.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99098a023a234aed722a0f082b4dbf612c59e4e7a955f33f54127b21050add5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift:746-752 | Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift:754-761 \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":"Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"c015a8fe1b49bdcf62fe2da9f9eda08d75fce5e145b139aa4718f9c2afd8b4df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:152-167 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:382-397 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1798230fe4d4b1483d0ac12af946d0f2e863ab3f2f26ef01736a8da1241c97a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:1084-1090 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1250-1256 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"830121143300a351067180cb8564a24d9868f8bedc628a71b03971b1df7379c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/Event/EventSourceAdapter.swift:44-55 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:3944-3958 \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":"Packages/OsaurusCore/Services/Event/EventSourceAdapter.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c28a8e010f7ccfffdb2aed5ca30d5dba05abca1de4ec17679957ea3a9ff60c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:467-475 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:562-570 \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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"0484b93b213e45a196745e1f8d051f030d22e9283575b983400cd95dfa1d362b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift:26-34 | Packages/OsaurusCore/Services/Provider/RemoteResponsesCapabilityFallback.swift:41-48 \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":"Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"294dcb1df652c812404fcb67ce16619d05e945b0d53da63287df22e1975cb06f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): Packages/OsaurusCore/Services/Sync/SyncDeviceFeedContract.swift:123-128 | Packages/OsaurusCore/Services/Sync/SyncDeviceFeedContract.swift:305-310 | Packages/OsaurusCore/Services/Sync/SyncHostedRunContract.swift:153-158 | Packages/OsaurusCore/Services/Sync/SyncHostedRunContract.swift:201-206 | Packages/OsaurusCore/Services/Sync/SyncServedChats.swift:87-92 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncDeviceFeedContract.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bf50ca72f9b5fa9854f2d4f4725c69a6f821e60988c8b8c111acb708a32774"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:2609-2617 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1207-1216 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:577-586 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:614-623 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":2609}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2b7b29c0b2bba361828d6ca17b196f4608d8973046d630c141d168b9b8268e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Storage/MethodDatabase.swift:339-351 | Packages/OsaurusCore/Storage/ToolDatabase.swift:401-413 \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":"Packages/OsaurusCore/Storage/MethodDatabase.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ce1c02dd7b32078982e2b2afa5ef471e8a5c11c74680f3b9b173829e963b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/AppleApps/Messages/MessagesTools.swift:34-38 | Packages/OsaurusCore/AppleApps/Messages/MessagesTools.swift:79-83 \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":"Packages/OsaurusCore/AppleApps/Messages/MessagesTools.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e85b86a83f1496dc14fd304dac55c5d4f159a3b0267c10544cbc3a8ebce899"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift:161-173 | Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift:211-228 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a000276cc22dff2c62fe47687565d8c0d0c627016c209db5d4b090af41bb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift:158-178 | Packages/OsaurusCore/ComputerUse/Model/AgentView.swift:80-96 \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":"Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe238b24492641f69354b00bf637c2f99de08436c0f061c3bd7d352d5858258"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Identity/IdentityModels.swift:239-244 | Packages/OsaurusCore/Identity/RevocationStore.swift:53-60 \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":"Packages/OsaurusCore/Identity/IdentityModels.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42f0f04a7a68ac31ba056ff9759e362f477f8cec82c4b7ebb4843751ef4dbea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Managers/MCPProviderManager.swift:2056-2073 | Packages/OsaurusCore/Managers/RemoteProviderManager.swift:27-42 \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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":2056}}}],"partialFingerprints":{"codehealthFindingId/v1":"37514eb79c88c5205f0757f11923cb83edf03a1a22020a089cb672d86d623838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Packages/OsaurusCore/Models/Credentials/SignInSession.swift:91-102 | Packages/OsaurusCore/Models/Method/Method.swift:94-110 | Packages/OsaurusCore/Models/Task/TaskModels.swift:595-606 \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":"Packages/OsaurusCore/Models/Credentials/SignInSession.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5950ebba18c2290a35ba240e5c2751f7e75c8a2cb15c5d7c722dd425117ab3e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedProgress.swift:80-85 | Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedProgress.swift:86-91 \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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedProgress.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7076b999e1f2055b0803ba36184491ccafda141e4631c6aa14905e5c4259e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Theme/Theme.swift:271-276 | Packages/OsaurusCore/Models/Theme/Theme.swift:279-284 \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":"Packages/OsaurusCore/Models/Theme/Theme.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"841d7523797944fa3aaaabf2c5920149291f8e392f83998b22c372e66cb7f1a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/Inference/MLXService.swift:676-684 | Packages/OsaurusCore/Services/Inference/MLXService.swift:686-693 | Packages/OsaurusCore/Services/ModelCompatibilityDiagnostics.swift:617-627 \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":"Packages/OsaurusCore/Services/Inference/MLXService.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"1214d4fab009670caba27a128f0cc272fd4648d9ae7741007c015c723a406e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:266-278 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:280-289 \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":"Packages/OsaurusCore/Storage/FileHistoryDatabase.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c13608fedf744943160fb7bd0c8d4f26e008a64ad14de394797e29d7fb0dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Packages/OsaurusCore/Storage/StorageMaintenance.swift:90-101 | Packages/OsaurusCore/Storage/StorageMaintenance.swift:103-118 | Packages/OsaurusCore/Storage/StorageMaintenance.swift:120-135 \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":"Packages/OsaurusCore/Storage/StorageMaintenance.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"25610931411ed681b0059df710538ef8436a99bce162a72f0389d152b6905fa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift:524-533 | Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift:535-544 \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":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"399a3bc6538c2cd1ba5fb4fe540502772e6a476f4dfff9df7444add34c630f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Utils/OsaurusPaths.swift:51-64 | Packages/OsaurusRepository/ToolsPaths.swift:17-37 \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":"Packages/OsaurusCore/Utils/OsaurusPaths.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"018d5de4a04bcb635181c077602d124ca2a79f7b524a37893238075edab96fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift:45-59 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:2396-2410 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:3911-3925 \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":"Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"74db28c8e5548408a684de57304b2389c9854327d26f0cefe72691fe57a61486"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): Packages/OsaurusCore/Browser/BrowserConfigurationStore.swift:38-54 | Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift:24-40 | Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift:454-468 | Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift:15-29 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Browser/BrowserConfigurationStore.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc45386baca06f4c2719f3f81aaa6f7c4c95d52a3598000bb0873463bc23b831"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1030-1035 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1078-1084 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07dd6de8b6be3e705f71ce024aa2900107c257ed38b26a4319db581c34928e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Managers/AgentManager.swift:1610-1634 | Packages/OsaurusCore/Managers/AgentManager.swift:1694-1707 \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":"Packages/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9d3459049cf31262f372c264bc0badf825bd214cb3292fb7109eea689429d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:64-82 | Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift:698-714 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5549ce939f339fd433013158457ff112321ae629508b368ff002c68f2687d798"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 10\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/ModelExposureStore.swift:132-141 | Packages/OsaurusCore/Models/Configuration/RelayConfiguration.swift:52-61 | Packages/OsaurusCore/Models/Configuration/RemoteProviderConfiguration.swift:573-596 | Packages/OsaurusCore/Models/Voice/SpeechConfiguration.swift:241-252 | Packages/OsaurusCore/Models/Voice/TTSConfiguration.swift:162-173 | Packages/OsaurusCore/Models/Voice/TranscriptionConfiguration.swift:55-66 | Packages/OsaurusCore/Models/Voice/VADConfiguration.swift:107-118 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ModelExposureStore.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd614d8c8b8d41ca2854fb2d2fb6dd01349b86f275c56c4eb3db2564070e264"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/Schedule/Schedule.swift:739-753 | Packages/OsaurusCore/Models/Watcher/Watcher.swift:293-309 \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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2aa2bb6969bf4c5fd055b589c73627d83fc8ed1ee713f8b8270a0e5f7ecfd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Packages/OsaurusCore/Models/Task/TaskModels.swift:562-573 | Packages/OsaurusCore/Services/Context/SessionToolState.swift:71-87 | Packages/OsaurusCore/Services/Task/Workers/TaskWorker.swift:19-29 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Task/TaskModels.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7614a22fd7469fac8bcf8583a1f414c8f15dcce3c49bf73db12236c55ee3ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Packages/OsaurusCore/Models/Workflow/WorkflowRun.swift:614-625 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:633-647 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ExperimentProfile.swift:44-58 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowRun.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4d97e9bbe27ff5cd3f95583da6f5a59cca89ba7f0f8bf028ddb8d9ff81db75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Packages/OsaurusCore/Networking/ServerController.swift:277-299 | Packages/OsaurusCore/Networking/ServerController.swift:302-328 \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":"Packages/OsaurusCore/Networking/ServerController.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfa4ac4f379d6f571cae11a41ced01443fdad55b2a2511f2355744727253903"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:460-465 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:852-857 \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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7e06ea8d8ac9637044ae3f6d132bb4d354e9edac5ca917fb4bedcee4a935a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1064-1072 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1101-1109 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"55396ca720fa01322ea18669fc60b40c280bc2b729e2f12969c1300d893cb0ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Chat/AgentTaskState.swift:1558-1563 | Packages/OsaurusCore/Views/Chat/ToolDisplayName.swift:198-204 \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":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1958a50f4db6fc04c601bb7376d70ec85b4ba610e5833be5446ff5f041fc4fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 6\u002B corresponding lines): Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:1960-1966 | Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:1995-2001 | Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:2028-2034 | Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:2036-2042 | Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:1190-1196 | Packages/OsaurusCore/Tools/Handoff/ConfiguratorHandoffTool.swift:250-255 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"52df498097e4c95b89b34e1c96017e471a30d9dbe17ac9e5f13cb0173d8ef37f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Credentials/Consumers/PluginCredentials.swift:65-72 | Packages/OsaurusCore/Services/Credentials/Consumers/PluginCredentials.swift:74-80 \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":"Packages/OsaurusCore/Services/Credentials/Consumers/PluginCredentials.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c167b152a4072dc747c843932bb007f7c7f9657613217d121097d7630ce5896f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Packages/OsaurusCore/Services/Credentials/CredentialBinding.swift:166-171 | Packages/OsaurusCore/Services/Credentials/CredentialBinding.swift:189-194 | Packages/OsaurusCore/Services/Credentials/CredentialBinding.swift:196-204 | Packages/OsaurusCore/Services/Credentials/CredentialBinding.swift:214-219 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Credentials/CredentialBinding.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d32b1f5d279a51f126bc69665aeaeafad3982bf9a7751e402a59d0e8830c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/Documents/CSVAdapter.swift:129-140 | Packages/OsaurusCore/Utils/DocumentParser.swift:210-222 \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":"Packages/OsaurusCore/Services/Documents/CSVAdapter.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8263999aaba6a3e13416941a865bd0d1d8544a550094076e186fb2eb27cbd470"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:406-418 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:484-503 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"290a6fb7aaa4914e60ee9a18300362ab84b49734d0835b779b83edc64c3dd9f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:549-559 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:642-650 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d37173e4bebb375dd44ce3bf2471b6991d91edf3e08cdbb70a13b8aaacbb2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/RuntimeProofMatrixReporter.swift:170-190 | Packages/OsaurusCore/Storage/AgentDatabase.swift:199-217 \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":"Packages/OsaurusCore/Services/ModelRuntime/RuntimeProofMatrixReporter.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b7197fbe585eeb7c5eed2a85bf76a4588ec968165121b5033b4878fe4a3d64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Router/OsaurusRouterIDTypes.swift:64-72 | Packages/OsaurusCore/Services/Router/OsaurusRouterIDTypes.swift:81-90 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterIDTypes.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"417dedc90e1b1ec6dc7a4cf6e0ba8dd301e1001d3febc9e3c4461e94881455f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1349-1367 | Packages/OsaurusCore/Storage/ToolDatabase.swift:421-433 \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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80a3006e9af827f0a07e1aeb8d65bb2742b9c45aed93c0eaa119efb094f2a5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Packages/OsaurusCore/Views/Chat/OnboardingPanelView.swift:112-122 | Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift:453-461 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowCanvas.swift:1104-1114 \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":"Packages/OsaurusCore/Views/Chat/OnboardingPanelView.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbb2f88935785cc882a0deea04c5705eb9c1affd826492dc786f6a0535079ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1337-1346 | Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1459-1473 \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":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ead919cd9e58d2cd97d3bc823c3cbe5d2e9ea80b541a7eaef3ae768c61d2109"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1177-1194 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1281-1299 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"79baba3f0a0a4c9ac630a91dba6db32ac12b916fe5002c2e44f305197414afc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 9\u002B corresponding lines): Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift:395-407 | Packages/OsaurusCore/AppleApps/Contacts/ContactsTools.swift:270-282 | Packages/OsaurusCore/AppleApps/Contacts/ContactsTools.swift:364-376 | Packages/OsaurusCore/AppleApps/Notes/NotesTools.swift:127-135 | Packages/OsaurusCore/AppleApps/Notes/NotesTools.swift:196-206 | Packages/OsaurusCore/AppleApps/Reminders/RemindersTools.swift:275-287 | Packages/OsaurusCore/AppleApps/Reminders/RemindersTools.swift:301-313 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7960fe255e03fc44ca29f28c5a7f5c447a30cd737c27991d9e38025b58a9c5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/AppleApps/Support/AppleServiceQueue.swift:24-35 | Packages/OsaurusCore/AppleApps/Support/AppleServiceQueue.swift:39-52 \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":"Packages/OsaurusCore/AppleApps/Support/AppleServiceQueue.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb19fe2d7e5eb7cdf0bf55afe383d23a04d5c46ceed4a63e65a5c0c3f5be60dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:297-302 | Packages/OsaurusCore/ComputerUse/Driver/Mac/InputController.swift:116-123 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62666868fbaeada0c11d33968be7174c596aa07df7d62e3629be95cc3c09c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift:37-53 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ScreenContextFixture.swift:88-102 \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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextDistiller.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e55996824b0d262dd19355d458fa090cf699d86bb328c3d723fb83706cb632"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift:510-515 | Packages/OsaurusCore/Models/API/EmbeddingAPI.swift:56-61 | Packages/OsaurusCore/Models/Agent/ConfiguratorConfigurationStore.swift:29-34 \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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace3d7934360e4343bafd185616fa74c02ec12400ac1b13415e641af29f29dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Identity/SecureChannel.swift:162-178 | Packages/OsaurusCore/Services/Plugin/InstalledClaudePluginsAggregator.swift:210-226 \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":"Packages/OsaurusCore/Identity/SecureChannel.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe4ebb62d100ed95f4a15fcd280b464e7c058f94a21e7c13a66219fc1f74321"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Managers/RemoteAgentManager.swift:338-346 | Packages/OsaurusCore/Managers/RemoteAgentManager.swift:350-356 \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":"Packages/OsaurusCore/Managers/RemoteAgentManager.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddaf8da902c5e6b5098b012e9f026b69b9a91bd0c44224266b300917d3045566"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Managers/ToastManager.swift:299-318 | Packages/OsaurusCore/Managers/ToastManager.swift:321-339 \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":"Packages/OsaurusCore/Managers/ToastManager.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed6de29a17e23a70f9a94c2e3a3890df8e10f1ab2c6aabf2e20bf973424e8a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift:376-380 | Packages/OsaurusCore/Services/Search/SearchTypes.swift:271-278 \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":"Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b06cf22535bd2c7120d11bbf3467d7705e9664ac6a1ea685efa1dbaceaad6ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/FeatureTelemetry.swift:559-567 | Packages/OsaurusCore/Services/Onboarding/DiscoveryStore.swift:72-75 \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":"Packages/OsaurusCore/Services/FeatureTelemetry.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a4784a40721d52eb29f1a5ebe9ed5025f29b957e40fc5a395db54f2fa75561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/GitHubSkillService.swift:347-358 | Packages/OsaurusCore/Services/GitHubSkillService.swift:366-375 \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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc34452ee17425679d9e548e307dc2b625cfa12ce821a6a3f53c4c9a275269a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Insights/EventActivityLogger.swift:59-64 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift:393-402 \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":"Packages/OsaurusCore/Services/Insights/EventActivityLogger.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b1a2767fb9f33784becae0bda038f66c5b264db1035afaffdf21d0f8bf1f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Packages/OsaurusCore/Services/Voice/KeyboardSimulationService.swift:68-94 | Packages/OsaurusCore/Services/Voice/KeyboardSimulationService.swift:98-118 \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":"Packages/OsaurusCore/Services/Voice/KeyboardSimulationService.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9f1df05630f559ec5b0a2c2d195e148468bd292b6593bf868c7fc3069eb4ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:615-627 | Packages/OsaurusCore/Storage/TaskDatabase.swift:624-637 \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":"Packages/OsaurusCore/Storage/FileHistoryDatabase.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadf5f36e414bd5c9c88e3e1cee6121af058a12995c20d8605a014daa3327d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatView.swift:3306-3318 | Packages/OsaurusCore/Views/Chat/ChatView.swift:5860-5870 \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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":3306}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0ce8a70b30e2c2a6536bebca2e84d7688e3375832fdc6388f552d14d8572f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1313-1324 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1157-1168 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1417-1428 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7df325e72ed1ccba3258064c1ed3100dc69bb26435e2082b589096e887c9f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:55-71 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:65-79 \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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f22418c006a7fdf677f85a57f28de554d501332b83b5b0fcfe02d9cf9164de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:713-719 | Packages/OsaurusCore/Services/Router/OsaurusIDSessionStore.swift:102-110 | Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.swift:265-273 \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":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3c11091a8f7c0ed2d47742467535bc9df9b9347c4e6f958e71d22139dab910"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Managers/ToastManager.swift:230-248 | Packages/OsaurusCore/Managers/ToastManager.swift:251-269 \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":"Packages/OsaurusCore/Managers/ToastManager.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d100817af857c1cc8eabe694399c482344baebbc6bb26950a4490579b54f29c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Agent/AgentStore.swift:620-628 | Packages/OsaurusCore/Utils/OsaurusPaths.swift:1154-1164 \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":"Packages/OsaurusCore/Models/Agent/AgentStore.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb64f2d974906e48b32f708385cbcc4a1c200642d8ffaed5db67282e37ff9be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1496-1518 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1553-1567 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1634-1652 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72e4ccf63ce6644ec787e068a43f84c1bc0c2e2dc5e1341b728d8ee8a1bd9b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Packages/OsaurusCore/Models/Event/EventPayload.swift:318-323 | Packages/OsaurusCore/Models/Workflow/BindingRenderer.swift:83-88 | Packages/OsaurusCore/Services/ChatImport/ChatImportVerifier.swift:152-155 \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":"Packages/OsaurusCore/Models/Event/EventPayload.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b3afdc3c951f4c7e1bf608c1fbb9a835c5e4a82623986b1bc9626c225d864a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Models/RunTrace.swift:58-74 | Packages/OsaurusCore/Services/Plugin/InstalledClaudePluginsAggregator.swift:178-196 \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":"Packages/OsaurusCore/Models/RunTrace.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65a40b7e3fb45c583b2c2c0bbfa2bb032deefc6295636b8bc1f4556a20bf5fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift:346-355 | Packages/OsaurusCore/Services/Search/SearchStructuredDataStore.swift:131-139 \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":"Packages/OsaurusCore/PrivacyFilter/Core/MessageScrubbing.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bcb6e772bb7ef473a75f281b4762510baa6b51eada41d99f2c2f8e1eda3352"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Credentials/SignInSessionStore.swift:142-148 | Packages/OsaurusCore/Services/Workflow/WorkflowConnections.swift:187-193 \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":"Packages/OsaurusCore/Services/Credentials/SignInSessionStore.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2c1eda8d8512822055807ac26395f52bdfd6e18a331f28ca82da38fb65f13f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/GitHubSkillService.swift:768-778 | Packages/OsaurusCore/Services/Workflow/WorkflowRunner.swift:619-628 \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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ad2bd3ab9e1b9a5ceb85410f574016a5789acfea510b4c18ade16087528552"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1260-1270 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1428-1438 \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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da657f4dcd500b05d938bc7ba7006095a5bbb7bfc2b4d19984641be08752d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/Keychain/AgentSecretsKeychain.swift:83-93 | Packages/OsaurusCore/Services/Keychain/EventSecretsKeychain.swift:44-51 | Packages/OsaurusCore/Services/Keychain/SourceCredentialVault.swift:38-45 \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":"Packages/OsaurusCore/Services/Keychain/AgentSecretsKeychain.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e358443c5b81a65150e1a8ba6cea017a5a354d21d0e745d82387a4062b8418"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:691-698 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:700-707 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:709-716 \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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a89eeefb549ab45f6b424a24b046e3995017f3347380779799d0da46def68a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Storage/ActivityLogStore.swift:772-779 | Packages/OsaurusCore/Storage/TaskDatabase.swift:414-422 \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":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbdb84cd5f4d532542c92b839da3b0b4969f077d6389dc24e4aeee057a9b5df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:2263-2278 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:344-352 | Packages/OsaurusCore/Storage/TaskDatabase.swift:683-691 \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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e722494ecf8ff7a18ea8ab9639f3d11e19cd7f1e629d5e979662c12226b211"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:767-775 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowsView.swift:656-662 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"beef4a3e7449435e9fc5400a665d94d9fe041d98eb89c09d032a0af6801b98d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1226-1234 | Packages/OsaurusCore/Views/Credits/CreditsView.swift:693-702 \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":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e96a8be538b5501df1ef1a5758d80bc5e8633f1458f62df4c49b3b827369169"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Common/EndsEditingOnOutsideClick.swift:47-58 | Packages/OsaurusCore/Views/DesignSystem/SettingsFilters.swift:350-360 \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":"Packages/OsaurusCore/Views/Common/EndsEditingOnOutsideClick.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba695f89752cf495bfc851352c553e630bff202d434cc771f585e36edc5b8f6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Packages/OsaurusCore/Views/Identity/AgentKeyManagement.swift:143-153 | Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift:463-473 | Packages/OsaurusCore/Views/Voice/VoiceSetupTab.swift:388-398 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Identity/AgentKeyManagement.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f580e8034ac225ebf617d1953f6a5405ec1e3e40ad3953bac34ac47acebad4db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift:934-945 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:374-382 | Packages/OsaurusCore/Views/Workflow/WorkflowRunHistoryList.swift:385-393 \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":"Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e19b89f2e7c3f1f275bacea03e271a7b767bd6300c2fa0cbf558ec055cb9d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1093-1108 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:821-835 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb0aa3531f1fb579f552eb8de39a13c5adbe755eb4c0733bdd2c11f5f0a0eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Views/Settings/ProvidersView.swift:354-370 | Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift:333-349 \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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a2bb7a38dc5b1411d5c0c6252dd9d4a970c3cec6c4e0894819552b3f5b46e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Managers/InsightsService.swift:280-286 | Packages/OsaurusCore/Managers/InsightsService.swift:288-296 \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":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc44f1bab47edf14cb311cf769c7ec1329828497ba0421370d0bd1d79d21ac71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Managers/SkillManager.swift:391-398 | Packages/OsaurusCore/Managers/SkillManager.swift:400-407 \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":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf65fae7831d9453119f924f4793b2626a2b5a0e82e69d510ad3daa2850839e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:276-282 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:297-302 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:502-508 \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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a15e0bba891fe2067575634f153c3a8787e3505cfb417c56a17e25293495cd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:944-960 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1238-1255 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"101cc875816bb7ec06fd7a87ce4dd6fe3b86a4697d2c163f650e09024e8399ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Models/Configuration/AppConfiguration.swift:190-208 | Packages/OsaurusCore/Models/Configuration/AppConfiguration.swift:273-286 \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":"Packages/OsaurusCore/Models/Configuration/AppConfiguration.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"921f7e58b2a5079edd89d8372f97bca4a5712b1959e40c6aefb60d86543b1d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:149-155 | Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:265-271 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:231-237 \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":"Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a2136d29046c89c05a6afdcd090dc3d17ed9cf57392b1f980bd8de21bf4aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Packages/OsaurusCore/Models/Workflow/BindingRenderer.swift:346-349 | Packages/OsaurusCore/Models/Workflow/WorkflowAccessScope.swift:337-340 | Packages/OsaurusCore/Views/Workflow/WorkflowFormView.swift:116-119 | Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift:619-622 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/BindingRenderer.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a262d5f4f37fa4610b7f570ad5c5e7824f45d4f1e03b5fae53c182aeb6854f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Credentials/Consumers/WorkflowCredentials.swift:40-43 | Packages/OsaurusCore/Services/Credentials/Consumers/WorkflowCredentials.swift:45-48 \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":"Packages/OsaurusCore/Services/Credentials/Consumers/WorkflowCredentials.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3ccdf09d5b7ced950ec4b842e36e87d3761471ab69c1b4843266dbe9c19ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1343-1355 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:303-318 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1509-1525 \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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43674aa5c22dbc8db57157dbb7d8bf540124f6712161243c08285dd1957d6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:71-82 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:102-114 \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":"Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1edaed7683edfad6ae3403c6b5d0677ccdcd08b2423775ff180173a0d2ecb0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthHTTPTransport.swift:19-31 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:126-138 \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":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthHTTPTransport.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bdafc737e04d2310f90a874b3fe890c831cb49be3945442cdd0eec006c68eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/ModelDownloadService.swift:967-972 | Packages/OsaurusCore/Services/ModelDownloadService.swift:982-988 \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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"c875b4b675efd6d2c7bd5693f82750d47c7a43801f6faec7569b00c13450a655"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:506-554 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:320-364 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a10b6941106ccfcb82731df377bf6829a5eefe5be0fcd628aad4938f9236d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Agent/Creation/AgentDraftPanel.swift:682-692 | Packages/OsaurusCore/Views/Settings/EmailAccountSheet.swift:102-114 \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":"Packages/OsaurusCore/Views/Agent/Creation/AgentDraftPanel.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e69c30db63bf02ed78211b2e9b3b595353997a8a016e9e00ec686dccd6813f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5820-5830 | Packages/OsaurusCore/Views/Chat/MarkdownImageView.swift:271-279 | Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift:589-603 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5820}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3f43081c13f3e8ba4109dd1f0c8ee983cc5726042a90b143d2719e469b9333"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1025-1031 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1033-1039 \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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ac12b42c8d1851288692b987bb3b01f675badcb5da331be3ec321c7265aa22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1208-1223 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1897-1912 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0749d60a280147150e688cc52e4838dc9ac14de5b608edb0361fae2a0be62f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:697-712 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1110-1124 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1067-1080 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1214-1228 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 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":"Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dbc914272cb98b3b1635e3784984b3c2d0a6d5b146331c9eeaeafa43d8abcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift:531-538 | Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift:321-325 \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":"Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f128bd5fe9ecb17e3919898c6ed164e49902ca5af4ac2c9fabdfd68331755b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Workflow/Library/WorkflowsView.swift:596-606 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowsView.swift:728-735 \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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowsView.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bf27ef673f61b86a9f3e026168524537c31da98f23e5ced5de9ae41ebd7ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/ComputerUse/Tool/ComputerUseTool.swift:115-124 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift:408-417 \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":"Packages/OsaurusCore/ComputerUse/Tool/ComputerUseTool.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91a77334cd793a33cc4ef632256ab5e2c7519551e3f669b39b09bbbd6c4182e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigExporter.swift:510-520 | Packages/OsaurusCore/Configuration/Declarative/ConfigExporter.swift:529-539 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigExporter.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf0dfe878f4a3b6863c3082e5545a6cfcf9b8380df7e1feded703b8d5b73c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Managers/BackgroundTaskManager.swift:948-957 | Packages/OsaurusCore/Managers/BackgroundTaskManager.swift:1033-1042 \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":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4d401f61f8f68b1c7e99c1a31f072d27f50e581f7a92c30ada3ea654c51695"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Managers/Plugin/SandboxPluginManager.swift:455-464 | Packages/OsaurusCore/Managers/Plugin/SandboxPluginManager.swift:470-477 \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":"Packages/OsaurusCore/Managers/Plugin/SandboxPluginManager.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"795e05230649771d6e53bd85dfc8f3d15482c9224e6fda75c3b124ec687d5a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Agent/AgentDraft.swift:23-32 | Packages/OsaurusCore/Models/Agent/AgentDraft.swift:91-99 \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":"Packages/OsaurusCore/Models/Agent/AgentDraft.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e880462d8c217c7f4a28bd9347006f79fd410fc422c8c35e6b09e05b69eddffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:144-160 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:672-688 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:693-709 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e045af986c7d426064890ef05cc4c3194cc2ba0166cdd7527a7886a10c85b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1081-1099 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1131-1143 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"3925def6e4e47bd378615129623e43949c9c87a1b80b06b3d022c91b4b2e2513"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Models/Email/EmailChannelConfiguration.swift:313-320 | Packages/OsaurusCore/Services/AgentChannel/ChannelAccountMigration.swift:362-369 \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":"Packages/OsaurusCore/Models/Email/EmailChannelConfiguration.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"e920b9741787346db76b0c4b6df7f14a21583afd0a26e9bf89edede4b0518e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift:1162-1177 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2817-2834 \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":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab2a8f91c313455f6542ed3bc4c6e093a1c449053cb2c95dcfc7178d3fbefe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:599-614 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:616-631 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:633-646 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"69327322d5df108facc25ac92460c9e5fd4308dc7c93ee34ad96a308aa26e8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:797-813 | Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:815-831 \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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce80c6f39d02f4a6bdcf01e1f0202b3adef54e1464d3c508e30b16ca4dabc9cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift:693-702 | Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift:659-667 \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":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d36e5cd8b089a263a046e51d246881bb0deaab8c5ac516ca8e3913c9de4124"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:452-460 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:462-470 \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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c106e9b72e063906efb66b75871d0b54ab552424ac652052af54e1dd82f780c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/Router/OsaurusRouterSupportTypes.swift:198-205 | Packages/OsaurusCore/Tools/Database/SchedulerTools.swift:23-30 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:994-1002 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:895-903 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/OsaurusRouterSupportTypes.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f166097d161d72192bdbbf562ccb764fa055b9df70d5b8eb19cdb6dacada80c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:223-237 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:248-258 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:152-164 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:270-279 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"8269be1819cebcc457e3efdd48a3b62353853285ce1c23847d3b5ac19b114343"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Storage/EncryptedSQLiteOpener.swift:122-130 | Packages/OsaurusCore/Storage/EncryptedSQLiteOpener.swift:156-164 \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":"Packages/OsaurusCore/Storage/EncryptedSQLiteOpener.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31bc87c320aa75a8b0696d5df8b1955bfc898e952054483328350a0ff576a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:630-644 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:369-378 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"22445d8614a5436d44ecb0fcccdfefafcd26eb3c0be2886f4ecb190079dc967a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Subagent/SubagentCapabilityRegistry.swift:60-69 | Packages/OsaurusCore/Subagent/SubagentCapabilityRegistry.swift:72-81 \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":"Packages/OsaurusCore/Subagent/SubagentCapabilityRegistry.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"92efefb30ed74836eff35550e29f8b7fa1321662ac24e28c84bd74ac13d5fd75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Common/InfoRow.swift:25-38 | Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1483-1497 \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":"Packages/OsaurusCore/Views/Common/InfoRow.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c15b895527334a190cba968a8447c0069b518b32fcf2c2ace356f9ebe4e32b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:720-730 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1129-1139 \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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7dac6cab551a5ed6b77f5198fb0ff7cf84f56fb3eacf175d7b310496d5ece29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Views/Memory/MemoryDiagnosticsViews.swift:126-137 | Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:669-676 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowStarterPreviewSheet.swift:178-185 \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":"Packages/OsaurusCore/Views/Memory/MemoryDiagnosticsViews.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29235b6f6846a1375a12ef5d6a6e27370367676a61f6d71604d9c0c1fb70d64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift:194-205 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:590-597 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fcf203cc47e1a53f55fa79ac096e9500141ee1fe9dd425d3e07b6774e327bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/AppleApps/Shortcuts/ShortcutsTools.swift:88-100 | Packages/OsaurusCore/Managers/SkillImportPolicy.swift:622-638 \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":"Packages/OsaurusCore/AppleApps/Shortcuts/ShortcutsTools.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"27af069601edefbbc002c36a2578eac28df8e75d3162d5464f275dd0bf5e8c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift:37-41 | Packages/OsaurusCore/Tools/ToolOutputSchema.swift:34-38 | Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift:295-299 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca74af6e08c73b0567044fd7bafbce213cdb637a8aa27ccdd627bd8e4428557"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/ComputerUse/Perception/ScreenContextSnapshot.swift:45-59 | Packages/OsaurusCore/ComputerUse/Policy/Gate.swift:33-49 \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":"Packages/OsaurusCore/ComputerUse/Perception/ScreenContextSnapshot.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d724080cbe282d6659df5641114b94309372dccf2652bb309c92af82d44b31e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift:73-81 | Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift:71-79 \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":"Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a509e6f9a6c0223229af0f710d5a8758dece386918998b8a7f4757b2992be582"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift:67-76 | Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift:81-87 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"37624757b0ede30555b1dcfa8c3b1c7bb86985d072e54cfc0c6356f153e0eb98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Managers/MCPProviderManager.swift:2015-2023 | Packages/OsaurusCore/Services/Inference/CoreModelService.swift:1013-1023 \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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"823835c9cf13ed3eae387fdf77e767cdc0226db2b98eb676b890f1064b98d462"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Managers/Model/ModelManager.swift:825-832 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:720-727 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalScoreboardCLI.swift:148-155 \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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"e744cc32d7f1b092f894a713a020beda7360116f74667d102a91b947790bac40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Models/Agent/Agent.swift:1163-1179 | Packages/OsaurusCore/Models/Documents/RichDocumentRepresentation.swift:62-78 \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":"Packages/OsaurusCore/Models/Agent/Agent.swift"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f92a12b0a150e889d14c8e5e412c173138eb5d7f1c2ed31e1dd0480b07bd7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Agent/AgentInviteStore.swift:168-177 | Packages/OsaurusCore/Models/Agent/AgentInviteStore.swift:188-196 \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":"Packages/OsaurusCore/Models/Agent/AgentInviteStore.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf97d90d63680a14545f706a9e7b8e6f1b9b91e1ad9a05867ea7d794968352a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/N8nPairingCode.swift:122-138 | Packages/OsaurusCore/Views/DesignSystem/SettingsSheet.swift:168-182 \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":"Packages/OsaurusCore/Models/AgentChannel/N8nPairingCode.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2a27aa3ddf86592d632956d981db7c423191d270d7ed58710dd6089c7761e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): Packages/OsaurusCore/Models/Documents/CSVDocument.swift:43-61 | Packages/OsaurusCore/Models/Documents/PDFDocumentRepresentation.swift:62-76 | Packages/OsaurusCore/Models/Documents/PDFDocumentRepresentation.swift:106-120 | Packages/OsaurusCore/Models/Documents/PresentationDocument.swift:111-125 | Packages/OsaurusCore/Models/Documents/PresentationDocument.swift:218-232 | Packages/OsaurusCore/Models/Documents/Workbook.swift:77-93 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Documents/CSVDocument.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee2b64852940098636e4123a2dcd16011610019b3bb3d818847cf5d36d1f1e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Workflow/JSONSchemaValidator.swift:35-41 | Packages/OsaurusCore/Views/Workflow/WorkflowFormView.swift:88-94 \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":"Packages/OsaurusCore/Models/Workflow/JSONSchemaValidator.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c28a0427b9bc6686fc0e6f563e2b7284483acd60ef215aaf8957a6b7aaaedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:414-426 | Packages/OsaurusCore/PrivacyFilter/Rampart/RampartModelManager.swift:199-210 \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":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fbb4004c9bc5f4bdb51cff32c27a4238172dd3acd5e418f017452ffed7a748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): Packages/OsaurusCore/Services/Chat/ChatEngine.swift:574-581 | Packages/OsaurusCore/Services/Chat/ChatEngine.swift:616-624 | Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:512-520 | Packages/OsaurusCore/Views/Template/ListingEditorViews.swift:355-361 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f024f239e9b34dfc9d891fd3fa55a135b0b394784b4a2822daa611b4dc093d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:260-267 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:474-482 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b3bb83b054b2e7d51784b798c47d1a4b9fe0a2facb02c2969ec19125a6a81f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:527-539 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1658-1672 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbe5b5526ef56ce01efa5220ccc2760775bbe441d01f1e45531ec9571fd527d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Event/EventStore.swift:56-62 | Packages/OsaurusCore/Services/Event/SourceConnectionStore.swift:130-136 \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":"Packages/OsaurusCore/Services/Event/EventStore.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"722b98dcbc39e211689b36e2151f7320ae69be209e58ebdf0ad7a49ec3449f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:144-160 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:101-109 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"828dd042478068ab1328d813dfd68aaee5b89a14c66be9fe7c95a1c7f8a7a88a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift:202-211 | Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift:213-219 \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":"Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"adba92f995c20d2d7321d6272e903467efff90dfa609eea20ca8ef76a6b7aad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Task/TaskStore.swift:420-429 | Packages/OsaurusCore/Services/Task/TaskStore.swift:432-439 \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":"Packages/OsaurusCore/Services/Task/TaskStore.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd8ea4b4bc50e91ba50609e60bbe622d90ff7e316b9568b858af1d2420f182a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:273-279 | Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:291-300 \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":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"34745b25a7a90f2b189e2a126206a2c0898a682d891b914a72061cd42e6100d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:1739-1746 | Packages/OsaurusCore/Views/DesignSystem/SettingsPage.swift:635-643 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"08eb512866088e6470853d26c4417b4ad06af2955d87b21f8fdc2aee6052b591"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:797-804 | Packages/OsaurusCore/Views/Template/TemplateImportReviewView.swift:363-372 | Packages/OsaurusCore/Views/Workflow/WorkflowAccessViews.swift:169-178 \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":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d67a96df6111539978d991154235a646a69e07d989463b70cf88afcbc15853"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): Packages/OsaurusCore/Views/DesignSystem/SettingsFilters.swift:35-51 | Packages/OsaurusCore/Views/DesignSystem/SettingsNavigation.swift:338-352 | Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift:770-784 | Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift:825-841 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/DesignSystem/SettingsFilters.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b555a8d08f8316197cf0146f0923c13154282c1d026b4cf1d944dc0db969afcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:249-267 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:799-818 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:252-266 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"4caff72b4028f567b13df070a5c9a5543f170b8241535c3e5bc97cbcd571046c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:571-589 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:591-605 \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":"Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0bf062516d768ac4035d37c6f3d130146934df588dc4ac3cd3e3fc2f47df8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:1147-1160 | Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:1168-1175 \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":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad5a32b4237922df78a44af84afa87140c89e8eea6a4e92f3b7556aa5d700ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Identity/RevocationStore.swift:92-99 | Packages/OsaurusCore/Identity/WhitelistStore.swift:114-121 \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":"Packages/OsaurusCore/Identity/RevocationStore.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4ee716b75656e35b74c937a67585cede7768ab7bc6d3e6ea51736f5ff3139b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Identity/WhitelistStore.swift:50-59 | Packages/OsaurusCore/Identity/WhitelistStore.swift:61-71 \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":"Packages/OsaurusCore/Identity/WhitelistStore.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1306aa472d44e359bb0ef243daa737c14a4801503fc06d5daa673d77a1ad15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundVerifier.swift:57-71 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1222-1235 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundVerifier.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ee2b369c23375949f7fb1846fbc1d9f7e2faadbe275212abcffbea4f78a836"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Attention/CallerDeclaration.swift:125-132 | Packages/OsaurusCore/Services/Attention/MultiPartyTranscript.swift:60-66 \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":"Packages/OsaurusCore/Services/Attention/CallerDeclaration.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2e8137b59b387a54dae65284455f43ae92a68f9d7f38328938aa81b51393f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1652-1657 | Packages/OsaurusCore/Utils/ZipArchive.swift:277-280 \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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dbdc40d69d2fcb2ce85bd784b6b93c7345cfb18c262aa340d9793511ac75a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift:65-77 | Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift:79-89 \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":"Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1baf49560639ade09e6d5f0d79df4ed1055b1aa5897e53ae4a0333d63afdb3b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/MobileConnect/PhoneChatHandoff.swift:116-125 | Packages/OsaurusCore/Views/Chat/TrailingTextFader.swift:114-126 \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":"Packages/OsaurusCore/Services/MobileConnect/PhoneChatHandoff.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bd7c32b7e489d3c5d07d359a597c35f0b40867a722845efd442db1ea879235"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:164-176 | Packages/OsaurusCore/Tools/Handoff/HiddenAgentHandoffRunner.swift:233-242 \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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e405e1f5816f5110648b3db38d0d8747a9cd8743fdfeb1bc5e53d44a70e575a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Subagent/SubagentFeed.swift:184-201 | Packages/OsaurusCore/Views/DesignSystem/SettingsEmptyState.swift:250-266 \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":"Packages/OsaurusCore/Subagent/SubagentFeed.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80b56a77f1cfae05cb08eecb3217ad94d75caddfd19c2147063c65d505e25ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:590-595 | Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:597-602 \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":"Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f17510a470fd6cb2c6b47db3f019ccd90067d3f3e7d05968fc00d8bbc845712"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift:633-649 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:269-282 \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":"Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d37172938918f1eb2c78df8a185f17564f07fe4f8e4fc2a0c5457cd6f3c0b48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Voice/TranscriptionOverlayView.swift:51-65 | Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:922-934 \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":"Packages/OsaurusCore/Views/Voice/TranscriptionOverlayView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb84c428d0d6c2be45cd5a7e762072a57f38b43bb0c10c6ead1b9199a2f73fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:425-436 | Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:440-451 \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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fede84b76d28fc91a5696ef00559c09bc9e597c3fa2a57ad9b868ad7e9d4d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Managers/RemoteProviderManager.swift:595-626 | Packages/OsaurusCore/Managers/MCPProviderManager.swift:558-569 \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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"383d532cd01d9967ece0012e4ed75a3d9685846246b28f56d88248c195005943"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Managers/SkillManager.swift:752-760 | Packages/OsaurusCore/Managers/SkillManager.swift:762-770 \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":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffc1e81baf32516b4e0855d535a8634674c8efe3c7d4e6f420a2b193242cb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift:552-556 | Packages/OsaurusCore/Tools/ToolOutputSchema.swift:41-45 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"15688deb4a89c9faedd4087f01b13f0740c5bd31f829a2c31180faf98bd93001"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 7\u002B corresponding lines): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:147-153 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:340-346 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:435-442 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:540-546 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:644-650 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:652-659 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:661-668 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:835-841 \u2014 These 8 members are one piece of code written 8 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9160f3077bf68fe1d86f57b2636bb1d48347221f9d4a5994588bb3415b4c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Channels/ChannelReplayNonceStore.swift:160-165 | Packages/OsaurusCore/Services/Channels/ChannelWriteKillSwitch.swift:139-144 \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":"Packages/OsaurusCore/Services/Channels/ChannelReplayNonceStore.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"6127b3740f8672bf156de4f0d870e86d581b4a78c636ef3556bdf27424ba1466"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:492-499 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:847-854 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c946ed7f3d9fbbddb393d3d504951f888680c270bccc2b0f071fc0503860ca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/OsaurusCore/Services/Memory/MemoryService.swift:87-106 | Packages/OsaurusCore/Services/Memory/MemoryService.swift:115-131 \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":"Packages/OsaurusCore/Services/Memory/MemoryService.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2686316b1a84d5f15346457ac9e55e44a4b8ffc03fc5d7fcef56665c2d9116"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/OnboardingModelsProxy.swift:50-63 | Packages/OsaurusCore/Services/TelemetryService.swift:384-398 \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":"Packages/OsaurusCore/Services/OnboardingModelsProxy.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4593e73fa5e140c9969be916dad508bfe1c0b82f7537f0c8d1439cef40ff2d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift:1848-1853 | Packages/OsaurusCore/Tools/OsaurusTool.swift:443-448 \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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ba966773fd6757bd7d8d79f0c1b393a6a472caf0154f5a4110e4a66fc5ee39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:294-305 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:581-592 \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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"17184a705f3f5603ab21d11f84cccd156b037d724fd6e43ab326dda1bd6ec24e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Storage/EventRunDatabase.swift:241-253 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:257-270 \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":"Packages/OsaurusCore/Storage/EventRunDatabase.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeca35d368370897314557132bb79234dabdb3bec907944f57b15748a56822c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:362-401 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:190-220 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2d35a30d41172be9d37072fb0936b111c47dbba31675c61f584750b41ecc33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift:623-632 | Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift:953-966 \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":"Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"5647843f4ee70c59dad5789bf17f4dbe731d508b72e47d585076176c84dd028f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:2299-2309 | Packages/OsaurusCore/Views/Identity/LoginConsentView.swift:143-152 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a0e2075a31e9359ee5f78b71d5427d91838e2b777f608c7e810aabb3ef01ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:556-565 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:570-576 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"00006e9058785bbdc10f4691acdfa88dc43f86f88b0785e318bb34ef94445595"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Views/Event/EventsView.swift:384-389 | Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:723-733 \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":"Packages/OsaurusCore/Views/Event/EventsView.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"755bdfa354522b15cb2de0e62171b0a3a5d4b16eb8273dd248b6c3c1a6f26400"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift:265-275 | Packages/OsaurusCore/Views/Settings/ConfiguratorSettingsView.swift:201-211 \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":"Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f58906b3895982b0665571abd77ed6dc181b45b03d5e7d940c373c8da9a180a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/CoordinatorLockService.swift:145-154 | Packages/OsaurusRepository/SpaceRegistry.swift:183-190 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/CoordinatorLockService.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"11793d1babee7e4ccbd687b4ef7f06e47cbba7a1efe4560b8bf33d3fc13b9a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift:111-127 | Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift:266-284 | Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift:296-304 | Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift:102-118 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e06f78d59d97d1019a05c9c004673baa4a9a0e6a91e4a02e21ece777f9bd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1017-1024 | Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift:721-730 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60ba9a26f852d6096352e21fa0f475005a74d0a53ffd93ef5eeff6c31d21b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Packages/OsaurusCore/Managers/AgentManager.swift:435-454 | Packages/OsaurusCore/Managers/AgentManager.swift:485-499 | Packages/OsaurusCore/Managers/SlashCommandRegistry.swift:57-76 \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":"Packages/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9b709b9038ad4459cf04bbd31bd344945e15059bb8b40843afb632582937bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Managers/TTSService.swift:797-800 | Packages/OsaurusCore/Services/Documents/OOXML/OOXMLText.swift:392-395 \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":"Packages/OsaurusCore/Managers/TTSService.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"3090150dda944cddb2d01977fbe2292e8c7007e1851237c06edf0dbeba835933"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift:90-104 | Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift:171-183 | Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift:250-260 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aedc5e5e5b1c3ab2f531ea226eb2da5a8bec447088d913d251f777b71ddcdbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Packages/OsaurusCore/Models/Chat/ContentBlock.swift:337-350 | Packages/OsaurusCore/Models/Chat/ContentBlock.swift:457-470 | Packages/OsaurusCore/Models/Chat/ContentBlock.swift:474-487 | Packages/OsaurusCore/Models/Chat/ContentBlock.swift:530-539 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f9b9e049f79a2fa0ac1c6838bcfa65e60d5c6c60512c9d0bd3fdf393ceafdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:243-261 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:274-292 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc8de9bf38c466fb7c89c5f09b4c32a93ab4590c595e4a18369f7a1760ec0a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Configuration/SearchProviderConfiguration.swift:508-515 | Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelBundle.swift:131-137 \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":"Packages/OsaurusCore/Models/Configuration/SearchProviderConfiguration.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"41241e5f23a7109bd76c525d775a83fab1816dce157a5e705b3d6e6c896261f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAgentProgressStyle.swift:11-13 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorModelPickerStyle.swift:12-14 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorThinkingStyle.swift:17-19 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAgentProgressStyle.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24291f896097b936e0f3f1b2b2d00b6208aa067e82b5f122240cf9d255b889b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1367-1373 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1375-1384 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fa56ee3803c6e2815a91120e5ccb071f1638491021a59e228f5b67d2f528ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Packages/OsaurusCore/Services/Chat/AgentTaskState.swift:1281-1286 | Packages/OsaurusCore/Services/Chat/AgentTaskState.swift:1289-1294 | Packages/OsaurusCore/Tools/ToolEnvelope.swift:560-566 | Packages/OsaurusCore/Tools/ToolEnvelope.swift:584-590 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50479ad1cd3af31ad8d969447cb3bdb6dd5694318f843432a68bed584de5c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:724-730 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:834-847 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0965fe31dcb68b3864caa6d56772d52c485373570cc7f10b1e9b8e429134b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Keychain/EventSecretsKeychain.swift:57-65 | Packages/OsaurusCore/Services/Keychain/SourceCredentialVault.swift:51-60 \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":"Packages/OsaurusCore/Services/Keychain/EventSecretsKeychain.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"235b67d2af0d4a33f30b9046aea9ddd80a5733cd364a1024dafaff8f92c194f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Keychain/SessionKeychainItems.swift:22-30 | Packages/OsaurusCore/Services/Keychain/SessionKeychainItems.swift:32-36 \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":"Packages/OsaurusCore/Services/Keychain/SessionKeychainItems.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c8fe760cbd2df2c12e3d813c22d57773216e1ec8d572ff78c3adaeccd6e0e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Workflow/WorkflowWorkModeResume.swift:49-52 | Packages/OsaurusCore/Storage/MethodDatabase.swift:525-528 \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":"Packages/OsaurusCore/Services/Workflow/WorkflowWorkModeResume.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"91aea96d1fc4d948f401f11726f1ed22bf9c7d68cc53a527c18f34b08ac163d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:583-636 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:638-681 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be703e5e4ae102d4fde71e4b101020d42203d8f0a748b3ff712d26def0cfbe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Utils/InlineMathScanner.swift:206-215 | Packages/OsaurusCore/Utils/InlineMathScanner.swift:218-227 \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":"Packages/OsaurusCore/Utils/InlineMathScanner.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e9070c1c8cb2fafa3da2429eaf94e71c1d1a9fc45d272e0064febd1267a7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Views/Chat/SubagentFeedView.swift:255-259 | Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift:629-633 \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":"Packages/OsaurusCore/Views/Chat/SubagentFeedView.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76a6e5f747c704d0fb088e0c329098f79eb6d59f29d02e8749ae4443aef8c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift:629-635 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1766-1772 \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":"Packages/OsaurusCore/Views/Plugin/PluginConfigView.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c086fe83c607e7378e34934e17721542d6902e1ab19dee0dea617cc2a9e458"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:211-226 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:218-233 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:238-253 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:229-244 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d29bd70fdf1f8c41aa22ad37dbbabbc87b69c3a884df878fbdfa6e9cbcd86af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Settings/ServerView.swift:1457-1464 | Packages/OsaurusCore/Views/Settings/ServerView.swift:1466-1473 \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":"Packages/OsaurusCore/Views/Settings/ServerView.swift"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b8f46e68ce52977d918c782b9ed89e5a9322889785a72a875e4ff8e0ef7f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:549-559 | Packages/OsaurusCore/Services/ModelDownloadService.swift:2181-2199 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ea0b9045e2d1eab7c7548a1ead5989cf9583ec46469cf92012a597cede3ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift:77-85 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1539-1550 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace5568dfd96c56cca290f5a85ed8fcbfa25f2b4f5634b970b80d28b7b01cbb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:2263-2268 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:2303-2308 \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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"de603984ca952229c6add801eb75e6f63d47b3d04dbbfa82463746c3f3a34b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/DevelopmentDesign/DesignWorkingStore.swift:252-257 | Packages/OsaurusCore/DevelopmentDesign/DesignWorkingStore.swift:258-263 \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":"Packages/OsaurusCore/DevelopmentDesign/DesignWorkingStore.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9133d620eaf91f0c6bd85cff5279cb61cbcc4d5030c9742c12fc2770c9dedcdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Identity/RevocationStore.swift:82-90 | Packages/OsaurusCore/Identity/WhitelistStore.swift:104-112 \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":"Packages/OsaurusCore/Identity/RevocationStore.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a35630a03049a500fbe3c2f23f60632594e20755be69bfcd0b18b1e6ebb777"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1494-1506 | Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:2035-2042 \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":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc263d6b06b0429044634bed698edc3d72e0275a51355f63c750bb151273480"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift:207-213 | Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:561-569 | Packages/OsaurusCore/Models/Event/OsaurusEvent.swift:281-287 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be55131c5a613683741ced1f44ae8fda699eebeff7e152143f2d1a70b66deba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift:209-214 | Packages/OsaurusCore/Services/Auth/PKCE.swift:55-60 | Packages/OsaurusCore/Services/Channels/ChannelSecurityEncoding.swift:11-16 | Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:1933-1940 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4484b74d7342ff773385da4c03160ffa917adf988ea0c074a1ddf8f130200098"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Models/Chat/ContentBlock.swift:567-581 | Packages/OsaurusCore/Models/Chat/ContentBlock.swift:583-592 \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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38d2f7e59b574c93808c8239a5e783a3a7556b30de8caea9ed41edbc7a30188"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Configuration/GeminiReasoningContract.swift:94-104 | Packages/OsaurusCore/Services/Provider/RemoteReasoningPolicy.swift:160-172 \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":"Packages/OsaurusCore/Models/Configuration/GeminiReasoningContract.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a6eb8739042f60644c8ede625d2b0f58fc5ccaaec8c18435851a521cc3ec25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Models/Documents/PDFDocumentRepresentation.swift:32-45 | Packages/OsaurusCore/Models/Documents/Workbook.swift:36-49 \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":"Packages/OsaurusCore/Models/Documents/PDFDocumentRepresentation.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8599e7ba42fe3a9b86f6bcad04046b475aa1253f6c47f8f5edb2a2738362442c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Theme/CustomTheme.swift:162-172 | Packages/OsaurusCore/Models/Theme/CustomTheme.swift:176-186 \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":"Packages/OsaurusCore/Models/Theme/CustomTheme.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8894a8e244797691f857b7cdcfc007b41981295c6c876b438308f8222e793380"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Packages/OsaurusCore/Networking/HostAPIBridgeServer.swift:794-799 | Packages/OsaurusCore/Subagent/SpawnResultCompaction.swift:175-180 | Packages/OsaurusCore/Tools/OsaurusTool.swift:172-177 | Packages/OsaurusCore/Tools/SubagentApprovalArguments.swift:25-32 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HostAPIBridgeServer.swift"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6588bb7e1340415681ec3cfdc81d698ebd33e755dca414993a09cfafb129e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelTransportRuntime.swift:228-236 | Packages/OsaurusCore/Services/Email/EmailChannelTransportRuntime.swift:131-140 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelTransportRuntime.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef095a5b9d690992164f779d5456704ab7c9bc243e013a95ec5ad76085061d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Credentials/CredentialBinding.swift:173-178 | Packages/OsaurusCore/Services/Credentials/CredentialBinding.swift:180-185 \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":"Packages/OsaurusCore/Services/Credentials/CredentialBinding.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acab1d0cbb9fb1043977882e7ff2555c6f7eed1ff491f6ca792bf9b94d844ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift:715-719 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:5964-5968 \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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a348f76f3c01c6ad35dd86ede4b1204b0f76d2cba2e29c53f7f25706493909"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/FileHistory/FileChangeSummaryStore.swift:39-43 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:438-448 \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":"Packages/OsaurusCore/Services/FileHistory/FileChangeSummaryStore.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12c9fcfb3691fec830facd2510ff07797ea3ca4cb5f200afe95e02aead3a19a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:50-55 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:86-91 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:175-180 \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":"Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68b75c698729c8080794d6ade40d7d6632ee30c53d1281c81f9a96bb2b894a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift:271-275 | Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift:277-281 \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":"Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fde097c74048af3ff159674bc1a56a9220ca5197875ae2330152ffd60a4a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Workflow/ToolNodeExecutor.swift:279-286 | Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift:931-936 \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":"Packages/OsaurusCore/Services/Workflow/ToolNodeExecutor.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac8d3fef1a069843fdfa1304763881c966f0a370414504792e1da75a45b66bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Workflow/WorkflowSelfHealMonitor.swift:118-122 | Packages/OsaurusCore/Views/Workflow/WorkflowRunHistoryList.swift:221-225 \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":"Packages/OsaurusCore/Services/Workflow/WorkflowSelfHealMonitor.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff6639852d5429427438db282ee00f065bd3a0052782da5acca06f94c3d3c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:224-232 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:286-293 \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":"Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d00d841af6fb293227cb767346434d7297d8a367e935cb3e0c85d90fe04b097"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatView.swift:6882-6890 | Packages/OsaurusCore/Views/Chat/ChatView.swift:6895-6903 \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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":6882}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecf475220cd2ab0e11f0e5ed89c3b559edc5a4dd4953475073369aab5f9a820"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Model/ModelDetailView.swift:271-281 | Packages/OsaurusCore/Views/Model/ModelDetailView.swift:301-311 \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":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf0252d60099dd8bd50d42943ba9bd6aa1e5ecf0dbb2487a563795f968396ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift:434-444 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowModelSourceRow.swift:193-196 \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":"Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"f292c62dd12af1a461199da42fd054a0b6185d75a22ba0c78e39132171187303"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:183-188 | Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift:228-232 \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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e814d3ebdd8bc3d11c69a10d28e13a0ff9077a8399b141ffb2c4842307a285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift:583-592 | Packages/OsaurusCore/Views/Workspaces/WorkspacePoolActivityView.swift:124-133 \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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"775b20153146a456d3669aaf7c170c7f7afed05ab3c1377a0769ee4d49e3a975"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:307-312 | Packages/OsaurusCore/Services/Chat/AgentTaskState.swift:1503-1508 | Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:1564-1569 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:112-117 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Mail/MailTools.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ccd16247515edf30087bb99c212065caa56e59759c7e3d587d55519aa72218e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift:413-418 | Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift:517-522 \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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fe0da838710d5beb1b73a0f38f570ba8a1183892fe8750b499ccc796ac1cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Folder/FolderTools.swift:346-353 | Packages/OsaurusCore/Models/Tool/ToolApprovalPresentation.swift:426-431 \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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae8938e0a0a0b11dbcbf687521ba93d8159745a46b89da4328546af1c7ab6f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Identity/DeviceKey.swift:111-118 | Packages/OsaurusCore/Services/Auth/PKCE.swift:48-52 \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":"Packages/OsaurusCore/Identity/DeviceKey.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5968e9be6ab20be1c8224ff631023be1781573b7136b1b78ec46d5fd86c6e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Managers/MCPProviderManager.swift:259-273 | Packages/OsaurusCore/Managers/RemoteProviderManager.swift:381-395 \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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fb1579142b5a116a94f88b30d0bff1be60a9eb4e8168d3d4cc0f1c35e570b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Agent/SkillStore.swift:215-220 | Packages/OsaurusCore/Models/Agent/SkillStore.swift:223-228 \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":"Packages/OsaurusCore/Models/Agent/SkillStore.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8ebb80ccbf89fddc6c7ce4b9f016ec102e9f8021e318f094cd2a5410d7ee44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift:885-890 | Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:2127-2132 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ecc508d1dc8c65582a9ba259b7664dfb41d0c0142bc97576c451ff0a5b3ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 5\u002B corresponding lines): Packages/OsaurusCore/Services/Channels/ChannelSecurityDiagnostics.swift:96-109 | Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift:166-170 | Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:754-758 | Packages/OsaurusCore/Services/Provider/ProviderReplayDiagnostics.swift:261-269 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:476-480 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Channels/ChannelSecurityDiagnostics.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d74b4b0cf9135bfdb155309614dcd11d2a5de6b6d917568fae95b04567e9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/GitHubSkillService.swift:1401-1413 | Packages/OsaurusCore/Services/GitHubSkillService.swift:1415-1427 \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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"a273cbff65d2bb3123b052689875e631f4aa9f0d5cf6de7d1c90ee01514a39d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Knowledge/KnowledgeGitSyncService.swift:180-189 | Packages/OsaurusCore/Services/Knowledge/KnowledgeGitSyncService.swift:193-201 \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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeGitSyncService.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"520c4dd04437da6abd5601d3fed3b3574bd6db14bfe72a47c237fa01866829cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/RuntimeConfig.swift:60-67 | Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:978-982 \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":"Packages/OsaurusCore/Services/ModelRuntime/RuntimeConfig.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2eba293db550232a83b77b186f6f1917d3b5b6854bc2dae33e311892046677c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/SwapPressureMonitor.swift:418-426 | Packages/OsaurusCore/Services/Workflow/CodeNodeExecutor.swift:354-363 \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":"Packages/OsaurusCore/Services/SwapPressureMonitor.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b5383dc7c40d20d0ea133095c185bb2790e54736a99ab260f86e64f97f38be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:123-139 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:113-127 \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":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c28b400b32e0dfa0abd0f7f93c6265a495d0ff9701a543ab4e6427459504491"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Utils/OsaurusPaths.swift:914-920 | Packages/OsaurusRepository/ToolsPaths.swift:53-59 \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":"Packages/OsaurusCore/Utils/OsaurusPaths.swift"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5a9ab9bd50db9c6a8d02df312bef864fa0bdbc7e3ccf6a76f471c8f5e3f994"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:469-477 | Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:479-485 | Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:487-493 \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":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36738cf9a545fc3ff54df1d7dc026d587bee8da6566e028f90906513f6d471e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): Packages/OsaurusCore/Views/Chat/MarkdownImageView.swift:540-551 | Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift:1120-1137 | Packages/OsaurusCore/Views/Common/CodeBlockView.swift:485-498 | Packages/OsaurusCore/Views/Common/PopoverHoverTracking.swift:46-57 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift:998-1005 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/MarkdownImageView.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c69a6e33f3201b4b45541f0a2fdf4f590e5092ef4013a3b36475e04c4f142a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Identity/IdentityView.swift:1040-1050 | Packages/OsaurusCore/Views/Settings/ServerView.swift:287-297 \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":"Packages/OsaurusCore/Views/Identity/IdentityView.swift"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a30a34aa92d55d039b4651515413e4c8d36dca1377436d672a54246adfdb6fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Views/Settings/ProviderDiagnosticsRowsView.swift:131-142 | Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift:440-451 \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":"Packages/OsaurusCore/Views/Settings/ProviderDiagnosticsRowsView.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1caf1a89e54b8e758758375eb41c949a0687666dd17bed8b90bb83c0f7b37689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:425-437 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:701-712 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a47ebe634ca95b57a235b6b7c8c3841cd4770e08859d3197e019ba1003f7d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:401-413 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:109-121 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6deb646f71a2a93eccd019eeac66f159ea1ca01663021135d980b7fae0be5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusRepository/BundleSettings.swift:123-130 | Packages/OsaurusRepository/BundleSettings.swift:133-140 \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":"Packages/OsaurusRepository/BundleSettings.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2487d9973f8f0f8015fdf0262af5cff9b312660e4fabeeb4de9a03ef62690d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/AppleApps/Messages/MessagesService.swift:187-191 | Packages/OsaurusCore/Storage/ActivityLogStore.swift:1087-1091 \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":"Packages/OsaurusCore/AppleApps/Messages/MessagesService.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc795d3c79f5df6df66224b021e6fd7a9eda8f2250333131df796be2f9477a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift:203-217 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:57-64 | Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:103-113 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:1863-1875 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:3266-3278 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c790dff30435eee71481768bb3145cb765c41cb0a24b26c8dca1e2a66ed5c7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlan.swift:40-54 | Packages/OsaurusCore/Services/Context/CapabilitySearchHealth.swift:50-62 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlan.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacb15393710a0acf058bd2079bc06a4b0582b70708a8c0e5daca95ccd1929ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Managers/AgentManager.swift:413-422 | Packages/OsaurusCore/Managers/AgentManager.swift:426-432 \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":"Packages/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0ae6210359adfb3294d64577a89e8d5eea2fe4ad23029d8dc54ab9049b4643"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:822-833 | Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:23-32 \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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6f5c35e31b5691ea8d70cb27a9f60cd3905c308b97ec59f2bb1269455ce1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift:117-129 | Packages/OsaurusCore/Services/Sync/SyncDeviceFeedContract.swift:327-337 \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":"Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f27deb2fa4c38d0f08224b270b01e5e73c6c1b7d5c9eade3f75181ad95f61d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Configuration/CodexCLIConfiguration.swift:166-177 | Packages/OsaurusCore/Models/Template/Template\u002BAgent.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":"Packages/OsaurusCore/Models/Configuration/CodexCLIConfiguration.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc180c05bbe5b7c376413906181fc0ed3773b617385c82d4b781225fdcb500cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/ModelFamilyNames.swift:111-120 | Packages/OsaurusCore/Services/ModelRuntime.swift:8502-8510 | Packages/OsaurusCore/Services/ModelRuntime.swift:8512-8520 \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":"Packages/OsaurusCore/Models/Configuration/ModelFamilyNames.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9e98aa4ee2b96095d0021ff4e5b683f50c7517e2bbc25164575c62dbbda03d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Workflow/FolderRequirement.swift:83-87 | Packages/OsaurusCore/Services/Router/OsaurusRouterWorkspaceTypes.swift:149-153 \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":"Packages/OsaurusCore/Models/Workflow/FolderRequirement.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dee471f3b6d812578b655b37e4870781226eef32cd37dbf1edf9d38face0231"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:101-110 | Packages/OsaurusCore/Views/Model/ModelDefaultsView.swift:157-166 \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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2528e4c87e1bfbd10bf5d3b97c7dd166c7269d0dce02cbaad1bb26ed2fc85a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/ChannelAccounts.swift:169-175 | Packages/OsaurusCore/Services/AgentChannel/ChannelAccounts.swift:177-182 \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":"Packages/OsaurusCore/Services/AgentChannel/ChannelAccounts.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c83434fb5fcb04127cd264973f8d4d4dc23e2a774d792a1d1d1355c6416b076"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/Attention/ConversationMailbox.swift:169-178 | Packages/OsaurusCore/Services/Attention/OwnerApprovalService.swift:214-223 | Packages/OsaurusCore/Services/Router/InvitePeerIdentityStore.swift:91-100 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Attention/ConversationMailbox.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"3833c3fd54a9710418748dbd8caeed179aeadd9738e70391ce8b2cea2f57a66c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Chat/PromptComposerExperiment.swift:141-146 | Packages/OsaurusCore/Services/Chat/PromptComposerExperiment.swift:149-154 \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":"Packages/OsaurusCore/Services/Chat/PromptComposerExperiment.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d97f955ed726c1ad2ce1ef222b847954da5184ec401b7ca2c602fd8babf1ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:118-123 | Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:86-91 \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":"Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2979127d92127f878cbc84b111ecab380a670deb8727b1274eead85728656f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Packages/OsaurusCore/Storage/FileVaultStatus.swift:32-50 | Packages/OsaurusCore/Storage/StorageEncryptionPolicy.swift:58-80 \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":"Packages/OsaurusCore/Storage/FileVaultStatus.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e0ff72aafaef68dddba1a3045431b2451cc0e58cb4989bf5dddb49c69bf676"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Packages/OsaurusCore/Utils/CronParser.swift:115-122 | Packages/OsaurusCore/Utils/CronParser.swift:124-130 | Packages/OsaurusCore/Utils/CronParser.swift:132-137 \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":"Packages/OsaurusCore/Utils/CronParser.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa14a09641cdf490d9b53083236cc223c32401a06c8be1cfe7b70fd13eb0960"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:4553-4564 | Packages/OsaurusCore/Views/Settings/ScreenContextPreview.swift:155-162 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":4553}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf92d03877949276da0b94db7c319aad11fc75f720e79685457100f45915dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift:613-621 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:770-783 \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":"Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"f187f9ce3c590523b0e077893e70e49b987d7b6281068d3c1749e5aa723841ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:197-204 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:205-212 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2e3f1dd49b54718b6d0a7e288cd890a4d85e4dd41b3f2ffb1773cb3b17752f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1641-1651 | Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:618-627 \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":"Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f4f593cce2704e5381287eed81f2ab6dcc83ca1735f29bd68699b22390afdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Settings/ServerSettings/MemorySafetySection.swift:223-232 | Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:497-506 \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":"Packages/OsaurusCore/Views/Settings/ServerSettings/MemorySafetySection.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"01aa55088a377dada06583b94b9669d6689f6236e77fe155a122f53853551183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift:320-325 | Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift:129-134 | Packages/OsaurusCore/Services/ModelCompatibilityDiagnostics.swift:909-916 | Packages/OsaurusCore/Services/ModelRuntime.swift:8362-8367 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c749f8194e334b836c46ba03143f802ac2277a709077bf944a2cf5c891fa2353"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigHistoryRecorder.swift:87-91 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:37-45 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigHistoryRecorder.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c00f791bd78013c88ed4482ee4935b84ab640b7290a1e429fa2c2068f86f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Folder/FolderContextService.swift:205-219 | Packages/OsaurusCore/Folder/FolderTools.swift:356-365 \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":"Packages/OsaurusCore/Folder/FolderContextService.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a316c1810c0e4374ad434d3565f5200987c4a22012c826bd9ea0817402d72fdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1580-1588 | Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1592-1601 \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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab394c37a384c92cfe668b3c730b289b8b58a5a3626da7153b8d0122c05da3b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Plugin/SandboxPlugin.swift:313-322 | Packages/OsaurusCore/Views/Plugin/SandboxPluginEditorView.swift:439-447 \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":"Packages/OsaurusCore/Models/Plugin/SandboxPlugin.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80d48b6d1604865951ff7e1dc48f25f1fd59c2adde201ca5508e257abdf1832"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:1200-1205 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:495-500 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1143-1148 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:304-309 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f9753b27e0cb5aee856c643c96181efc46d641a4a6aa297f62afbdffce4285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Credentials/Consumers/WorkflowCredentials.swift:103-108 | Packages/OsaurusCore/Services/Credentials/Consumers/WorkflowCredentials.swift:136-142 \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":"Packages/OsaurusCore/Services/Credentials/Consumers/WorkflowCredentials.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"908cbe652c7312ccf3ec51eb98934bca335f827f34f0f242d7f285177039a8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Packages/OsaurusCore/Services/Documents/DocumentFileInspector.swift:152-158 | Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1068-1074 | Packages/OsaurusCore/Tools/ToolRegistry.swift:3518-3523 \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":"Packages/OsaurusCore/Services/Documents/DocumentFileInspector.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7663d4938e683607bd6f4f141ba5dc9259704bb9786d0be2c50fa9e373604562"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/ScreenshotCaptureService.swift:120-132 | Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift:488-502 \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":"Packages/OsaurusCore/Services/ScreenshotCaptureService.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12b37ecf96271f85b8697bf2ea80dbe19e52790a48e6c78d9378d01dab15e88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:302-314 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:413-419 \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":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd74ed5a84ca91b200d88a13e8b850dc69c23ab62878a7233bf6780ce438282"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Utils/KnowledgeGlob.swift:100-112 | Packages/OsaurusCore/Models/Configuration/ModelFamilyNames.swift:32-42 \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":"Packages/OsaurusCore/Utils/KnowledgeGlob.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0629cd151f39039861c1bc05d6e4ea61923994e5a051c276bf18f1036a887797"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:4486-4497 | Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:613-620 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":4486}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9992b4f6901b9835f0499338d65b7bb81a68b1ed61d3d0d50f559fda4a8ac49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Views/Common/TableViewComponents.swift:22-35 | Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift:249-262 \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":"Packages/OsaurusCore/Views/Common/TableViewComponents.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed2524a01cb9fe0dfc4da9b7b6190a7d05c64265ca35aba6e266d77f7833462"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): Packages/OsaurusCore/Views/Identity/IdentityView.swift:762-769 | Packages/OsaurusCore/Views/Identity/MasterMnemonicCard.swift:81-88 | Packages/OsaurusCore/Views/Identity/OsaurusIDSection.swift:473-480 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:2215-2222 | Packages/OsaurusCore/Views/Workflow/WorkflowRunTabView.swift:134-141 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Identity/IdentityView.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9243371e0226921bb0150026ec1810fe6f3d42058530530530038812524709"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Views/Memory/MemoryView.swift:1134-1145 | Packages/OsaurusCore/Views/Skill/SkillsView.swift:470-481 \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":"Packages/OsaurusCore/Views/Memory/MemoryView.swift"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6663ceab3a39ec3c37d6fbc041425970cc6f178ca54404bf4cf5f5868a8c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:373-383 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:81-91 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35b828bd0286a9ce1a44bd8bd990ab5a245123c7b3bc168768a5999d3ad2f1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift:297-301 | Packages/OsaurusCore/Models/Configuration/ModelFamilyNames.swift:19-23 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20e84b2cf7de50ca474eb1d3d47c62dc3b3ed8f78f481d4a59d5097810ab59c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:311-317 | Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:319-325 \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":"Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d8232a786c73e3d1f73d0d5c806d47bfbbd71e3ad764b559a287dd34a52be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:859-867 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:973-981 \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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90cd0abb3d2517f8d529f2f2ffef4562c6b069f88434b374dbdec9aed88296f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift:624-634 | Packages/OsaurusCore/Tools/ToolRegistry.swift:91-101 \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":"Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fd80852d1bbead93dc485c52731965af8a4a85a2cfdf2300c76e12f07a3e96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Template/TemplateDiff.swift:181-186 | Packages/OsaurusCore/Models/Workflow/WorkflowDraft.swift:658-663 \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":"Packages/OsaurusCore/Models/Template/TemplateDiff.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0cfd0db47fe0e6a9df4b64908117958ca6f9fff5f72ad9daee113237b7d066"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorActivityStyle.swift:53-57 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:4032-4037 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorActivityStyle.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fa73860cb5c230cd6239030ae0e346636182e7bfca6f91b7f349fc009bf6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Theme/ThemeRoles.swift:231-236 | Packages/OsaurusCore/Models/Theme/ThemeRoles.swift:382-387 \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":"Packages/OsaurusCore/Models/Theme/ThemeRoles.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"f474040c6ee94009cce7a88514a0be566839848b8c48ab0ebae40c7cf63e9438"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelAsyncSubstrate.swift:221-226 | Packages/OsaurusCore/Services/Event/EventWebhookIngress.swift:119-124 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelAsyncSubstrate.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd8c031a3be2d90c2db115c29f715ddc3114936bcba654f435834b924322532"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:2544-2550 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:601-607 \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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":2544}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8634baf358ecaa8adea68591e6f750a939dece2960c75ec476c5e3bfcfea19f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Storage/SchedulerDatabase.swift:299-307 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:179-187 \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":"Packages/OsaurusCore/Storage/SchedulerDatabase.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"306707c831cbf772d87bcfcacb690fa40ea4c99ab12e5d662a6416c756652687"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Subagent/SubagentSession.swift:338-343 | Packages/OsaurusCore/Subagent/SpawnResultCompaction.swift:45-50 \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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a61ecc5e8ec6452376e17cfdf0c6adb429c4dc164966ff3a44e9765c499150c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Utils/InlineMathScanner.swift:40-49 | Packages/OsaurusCore/Utils/MarkdownBlockParsing.swift:558-567 \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":"Packages/OsaurusCore/Utils/InlineMathScanner.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"66deb2c3a74917d09310d32b0431ec0e5051541d93e47d903af9dd8737daff4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1023-1043 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:836-848 \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":"Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e359979d201be5eb2406bc8dd1c9cc6a5b699184034ae03ce1ec8b89186615"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Views/Workflow/WorkflowSummary.swift:226-231 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:593-598 \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":"Packages/OsaurusCore/Views/Workflow/WorkflowSummary.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1252283b2d3dad80e57d051db32c331f08d7210050407bae3d9746e7b3414eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:120-128 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:359-367 \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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b2c065e0499f9fd33d9775953656fd5de649d4fe8357ccbe0ea38b94be612f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorActivityStyle.swift:6-8 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorMessageHeaderStyle.swift:7-9 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorThinkingStyle.swift:6-8 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorActivityStyle.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca444c70cad93e7f8c5648ce8788c35be37da938b4e7e769ca88bff509cfc4c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Models/Workflow/WorkflowAccessScope.swift:66-75 | Packages/OsaurusCore/Services/Chat/PromptManifest.swift:192-204 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowAccessScope.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6882696948e7f950d56ba0d2fa9de8c831d4619334917f94482c36426ef18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Attention/AttentionCenter.swift:221-229 | Packages/OsaurusCore/Services/Task/TaskBus.swift:43-51 \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":"Packages/OsaurusCore/Services/Attention/AttentionCenter.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c691d8b2db1c7ad115299f229e7b382d36c99a1477f6c662a67a807dcb28ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/Attention/AttentionItem.swift:105-113 | Packages/OsaurusCore/Services/Attention/NotificationPreferences.swift:18-25 | Packages/OsaurusCore/Views/Settings/NotificationRoutingSettingsView.swift:83-90 \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":"Packages/OsaurusCore/Services/Attention/AttentionItem.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f31602edba55573f5405a94a1e77994e2465eff258a64911e4ae17066966d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/Context/MemoryRecallEvaluator.swift:35-44 | Packages/OsaurusCore/Services/Context/ReasoningChannelEvaluator.swift:43-55 \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":"Packages/OsaurusCore/Services/Context/MemoryRecallEvaluator.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca99e96b82086f712373abf02e28df58b9b581d533cb8a6a89b5b6c72973994"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift:332-338 | Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:543-552 \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":"Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1782bdfe523fa71736713fd0ca596bfaa877141a90a037555032c950a3375b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1417-1425 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalTimeoutReport.swift:92-100 \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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"8baf66b38ff743e4af75f68e51922496ac1f6b793a7936c857a93ee612d79928"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/LocalReasoningCapability.swift:451-476 | Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:575-588 \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":"Packages/OsaurusCore/Services/LocalReasoningCapability.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5b946096c5efd093cb0e60b212396377d8d8d39f92756407fc65fe7d1b2561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift:873-884 | Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift:891-902 \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":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3543efbea4154c04440b22f53203cb79a3f65b7a9dc6241be15c99a80266ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Sandbox/SandboxRootfsTemplateStore.swift:44-50 | Packages/OsaurusCore/Identity/DeviceKey.swift:106-109 \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":"Packages/OsaurusCore/Services/Sandbox/SandboxRootfsTemplateStore.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3ae837d984361731c97635fc54f0775f7419418cc7d4b1751ded7d18f6a4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncHostedRunContract.swift:222-225 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:609-612 \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":"Packages/OsaurusCore/Services/Sync/SyncHostedRunContract.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bac6c5b25d375cef85f90c958e64407b1a825add62ad4d6b644c739e29c201"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift:1061-1065 | Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift:496-500 \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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"379abb2957c501d5be8954c49fbbe6cd96e89af15a5704b92f05dedcb351531e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:7991-7995 | Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift:472-475 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":7991}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf40e000da8b0f9679ffffc426d7ce20843e886d606dd980ed1511e11ead330"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1872-1877 | Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:255-260 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4def4b243ecbeeb39126f09442c5867cef395f9d2720e9e75fb104a7b88a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Project/ProjectsView.swift:467-470 | Packages/OsaurusCore/Views/Credentials/KeysView.swift:193-196 \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":"Packages/OsaurusCore/Views/Project/ProjectsView.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc54ca460ecf90745cc19a7fe4a1ff8d1a909f068da8e36bdef5d4a4cc8b0d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:421-424 | Packages/OsaurusCore/Services/HuggingFaceService.swift:1082-1085 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cf433895fa9dca0a1a819350fae33771d6bf9fc4006a59e03da224446f7345"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:44-46 | Packages/OsaurusCore/Managers/TTSService.swift:722-726 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3b9a3a8629d7e9520811643df3eab3ab0f0cc4311568ca8c03313a2fb81767"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlan.swift:74-84 | Packages/OsaurusCore/Services/ModelRuntime/RuntimeProofMatrixReporter.swift:368-376 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlan.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e6b2e4b2cdd8a28a83a1a66ff7ddb81fc2d1683a2491c291f28d9f940da2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Configuration/ModelOptions.swift:59-65 | Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift:285-291 \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":"Packages/OsaurusCore/Models/Configuration/ModelOptions.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0225fb1d68209e11767ba3943eacc673fbd72b5a30e3415fb0bd57b75741077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift:459-464 | Packages/OsaurusCore/Services/Chat/AgentTaskState.swift:1454-1461 | Packages/OsaurusCore/Utils/KnowledgeGlob.swift:46-51 \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":"Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bb4b95d595184d345a3f2fe6702540207d4ca23a44cf265b89218001a75111"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Networking/GlobalProxySettings.swift:90-101 | Packages/OsaurusRepository/RepositoryGlobalProxySettings.swift:37-48 \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":"Packages/OsaurusCore/Networking/GlobalProxySettings.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1a861b32f39e6cd1d81498c588041abb8514a868fe3dd7d1e0a0b0d56237ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift:131-144 | Packages/OsaurusCore/Services/Provider/ProviderCredentialPromptService.swift:374-386 \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":"Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cbb3a147e607189173d9a605ee47fdd3dfab15da6c4fe9e1b7566f293ce3c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Event/EventStore.swift:50-54 | Packages/OsaurusCore/Services/Skill/ClaudePluginManifestStore.swift:227-231 \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":"Packages/OsaurusCore/Services/Event/EventStore.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b681a070603f2706c67a9625e5679fa55b5e80af02283a98aa0a7fed26b68c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Knowledge/KnowledgeWriteService.swift:508-511 | Packages/OsaurusCore/Views/Event/WorkflowInputBindingEditor.swift:207-210 \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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeWriteService.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaa8d6e1052b6349515da787706e7041063a0d8067693e78b0dd75b99f03e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1753-1760 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1408-1415 \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":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"818251c418ed5c1b7dbe942402b5a27e201ec8eaab124e897b072f71a54e3c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Utils/CalculatorEngine.swift:169-173 | Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:1048-1052 \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":"Packages/OsaurusCore/Utils/CalculatorEngine.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c37a08fa8e7acd80774e4c0d9134d60bdab9a6e2c38a93fb542a003064aeee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:405-408 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift:96-99 \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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba39547bea4055dfd88e0ab5697abb671078949136853896adb3fc71ba6636d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:603-618 | Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift:354-361 | Packages/OsaurusCore/Views/Voice/VoiceSharedComponents.swift:100-112 \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":"Packages/OsaurusCore/Views/Voice/VoiceComponents.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"19233f7fccc785e9152056c297dec5d0cc32ff8af2ab2897035c2484440edd23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Doctor.swift:149-153 | Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:928-932 | Packages/OsaurusCore/Views/Settings/Shared/ChatModelRolePicker.swift:87-91 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Doctor.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"01eb5ae48805bc3e78e1bce05da2fc2f736df22b585b194e83abaca2d3e78f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Packages/OsaurusCore/JSHost/main.swift:139-144 | Packages/OsaurusCore/Services/Event/EventWebhookIngress.swift:141-146 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:3525-3529 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/JSHost/main.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f069cacb59d903fd224b766ea4b94c849a3bdfe534a642b3e7016209f170e38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): Packages/OsaurusCore/Managers/SkillManager.swift:1011-1015 | Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift:897-901 | Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift:306-310 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:303-311 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5c05fc6956a544bbba86437a0ce18fca83e80c441751d988d869ac119cba01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift:215-221 | Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift:354-359 | Packages/OsaurusCore/Models/Event/OsaurusEvent.swift:525-531 | Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:246-252 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:185-191 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35ebaa766324ee74ae457691751bd38cdb553b154aad2f28712484b8989feeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/Chat/WorkspaceSessionContext.swift:119-122 | Packages/OsaurusCore/Tools/Handoff/HandoffContracts.swift:149-152 \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":"Packages/OsaurusCore/Models/Chat/WorkspaceSessionContext.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e665165019a4ccd37c00af6a17f4edc0ab29cb3ab6a81a99ec38d649e8f45c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1386-1393 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:992-1005 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1330-1341 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1324-1337 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1496-1507 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef1f93fccba53e848238fcb5ec2173a764a5b963c097de728225e2fc02e0b13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Services/Attention/AttentionItem.swift:139-151 | Packages/OsaurusRepository/ImportQueue.swift:98-112 \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":"Packages/OsaurusCore/Services/Attention/AttentionItem.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"691e76edc512904cfb9489924786417971f05b83e0df56ee4e5250135b8fe604"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Tools/OsaurusTool.swift:352-360 | Packages/OsaurusCore/Tools/SandboxPluginTool.swift:205-213 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/OsaurusTool.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b65213689d56f856e9123f8e9968ab286d99913d6ddc33d9e96b890aba37cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift:296-302 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:2604-2615 \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":"Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f1d43bd00a46effdb83f3dbd803d1c89815587bbfb1c24185124db77dc6ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Common/InlineBanner.swift:142-150 | Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:115-122 \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":"Packages/OsaurusCore/Views/Common/InlineBanner.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"193012010c1118ae9a18c66d060890a26e84c7b30af3b24b452960e0b7df2207"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Views/Knowledge/KnowledgeWriteHistoryView.swift:322-327 | Packages/OsaurusCore/Views/Settings/SearchView.swift:192-198 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Knowledge/KnowledgeWriteHistoryView.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca6b3d635a6a9137852a46361ea54fd112f31ad348fe6aaf3ea0a6ec46499d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlan.swift:144-151 | Packages/OsaurusCore/Views/Chat/ConfigApprovalModal.swift:295-302 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlan.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6648b2392ecc868ce6af4d971f701e4e00906d8308b3a441bd5ad4a2150691bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Event/OsaurusEvent.swift:84-89 | Packages/OsaurusCore/Models/Watcher/Watcher.swift:256-264 \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":"Packages/OsaurusCore/Models/Event/OsaurusEvent.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"637a85a7a3a9848cbcfe1adf0db44d9a1d3dfd1df2508b94bb65af1c693253c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): Packages/OsaurusCore/Services/Channels/ChannelRemoteSafetyGate.swift:475-482 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:1075-1082 | Packages/OsaurusCore/Services/Inference/ModelService.swift:545-550 | Packages/OsaurusCore/Services/Router/RemoteRunArtifacts.swift:62-67 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:320-327 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Channels/ChannelRemoteSafetyGate.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eda662f460ff8dcf3e406457235d7356c92c9dc66a39c2fcbbed00c54a9b337"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift:238-241 | Packages/OsaurusCore/Services/ChatImport/ChatImportVerifier.swift:414-417 \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":"Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9876690ad35fe5b56f05d1226e7b66e1b67d32139379f10715ce1bd6bde3a7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift:319-323 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestValidate.swift:284-288 \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":"Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3dd1b6e5b56f5c6172be662a7b85d6d0a153ef7b5e1b35de95df661814ce16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Router/OsaurusRouterWorkspaceTypes.swift:1021-1026 | Packages/OsaurusCore/Models/Agent/AgentDispatchTarget.swift:64-68 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterWorkspaceTypes.swift"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eacfa6d871c3bd0c9255b633406b2fc05ea21f8bf81717b8558412c5ca138e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Template/MCPServerResolution.swift:259-264 | Packages/OsaurusCore/Services/Template/MCPServerResolution.swift:268-275 \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":"Packages/OsaurusCore/Services/Template/MCPServerResolution.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"c656cbe2ec9d55de83f70053833e118db10f20372f687f239a3242d874a94392"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:171-183 | Packages/OsaurusCore/Storage/AgentDatabase.swift:452-463 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd16ef4ea36e349e7819a856244350a6beb8ed3ed74f3a244f3002863a861cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:27-30 | Packages/OsaurusCore/Views/Workspaces/WorkspacesView.swift:20-23 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5b60fc5fa01030ce286d1a5669ce187007aef98db4b187720ab3ab8e55a9eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:4522-4527 | Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift:960-965 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":4522}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c79f09b9395f0f30d71160325c9395c7f2e7c5d5adfc9a1745fa53477288e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:2002-2014 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:2016-2027 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec348ba2b7c8f7a4ad7eb8c3179ce0a87c5a61f619e4070046963f8e9dc682c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Views/Settings/AgentChannelAddChannelSheet.swift:122-132 | Packages/OsaurusCore/Views/Template/SetupWizardParts.swift:173-181 \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":"Packages/OsaurusCore/Views/Settings/AgentChannelAddChannelSheet.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07dff229fb3846ae3c6148c63a98a7b8c185b0836d480326f4995d52b1599ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:385-399 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:93-107 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"f296af824bc570adfde9c477f9c8d077c2837c50cefac4b7c91fad6f489ed633"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift:150-157 | Packages/OsaurusCore/Services/DirectoryPickerService.swift:289-298 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ca603f7ab94e2177a8bc478935a19bbeba7a72376fd144ad4ea9661b6a580f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/AppleScript/Policy/AppleScriptAccessibility.swift:61-66 | Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift:21-26 \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":"Packages/OsaurusCore/AppleScript/Policy/AppleScriptAccessibility.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e863c910819c630f891c1eb260b24735e7ddb41c7f056f900c339e4fba38b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool\u002BHistory.swift:208-213 | Packages/OsaurusCore/Tools/OsaurusTool.swift:342-350 | Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift:286-288 \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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool\u002BHistory.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f024d5375a8872f9e45c7069eca97e925c9a8b1910d4cd401838628aa85fdf69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelN8nModels.swift:395-399 | Packages/OsaurusCore/Services/ModelCompatibilityDiagnostics.swift:918-922 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelN8nModels.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"c987ad0c49b3e1ec843b7ec04b85a3535ab2bded80cca632d9f8d6f292f7e50c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift:126-132 | Packages/OsaurusCore/Models/Email/EmailChannelConfiguration.swift:283-286 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:137-143 \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":"Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31cace2406e770fc352613ffd68a9247bb39b09d7728a29d482d6c02a59cb71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Memory/MemoryRelevanceGate.swift:106-110 | Packages/OsaurusCore/Services/Sandbox/SandboxSecurity.swift:286-290 \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":"Packages/OsaurusCore/Services/Memory/MemoryRelevanceGate.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cbbc5388f6cb1f6955f2d2f581d61003f6b4d45af434586c9993b42cc8da75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:3672-3677 | Packages/OsaurusPluginTestKit/Sources/OsaurusPluginTestKit/MockHost.swift:158-163 \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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":3672}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8be2a242996c00db7574649e366fef9b9a8439a68e28de2708c06915851e88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift:659-662 | Packages/OsaurusCore/Views/Chat/ChatView.swift:11168-11172 \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":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd1d89fa20bd52a530b8880f3bf982b0c81991a6b6b0c352bb7d5fffc37258f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Storage/MethodDatabase.swift:536-542 | Packages/OsaurusCore/Storage/ToolDatabase.swift:557-563 \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":"Packages/OsaurusCore/Storage/MethodDatabase.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"405379bea2f7ba3565565bde900d506ec70b6740fea6fe6780cf876821203e57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Subagent/SpawnResultCompaction.swift:189-194 | Packages/OsaurusCore/Tools/RenderChartTool.swift:627-632 \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":"Packages/OsaurusCore/Subagent/SpawnResultCompaction.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d94410bbcce770953a21cc4fb23bd464980a86cdad44d7d4569396aadcdb71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Packages/OsaurusCore/Views/DesignSystem/SettingsCodeBlock.swift:44-49 | Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift:744-750 | Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift:495-500 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsCodeBlock.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff54489abee7c43b89a64bad40cc9a170726ac0a90a372e45fd95de61e11af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:116-128 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1390-1402 \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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3dec15f296c0fe97197c7e00c8e9d379215a12ab872532a53008abac2ae85b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:375-384 | Packages/OsaurusCore/ComputerUse/Driver/Mac/InputController.swift:281-289 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"8241a4b00c32114f8d06cb576acdadeebebc454b88b2a289ae82e5b3689a0f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/MockMacDriver.swift:111-122 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/FixtureCUDriver.swift:62-72 \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":"Packages/OsaurusCore/ComputerUse/Driver/MockMacDriver.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ac0f9c5dd963cc68fcd5cbcb4210d1d8716ab5cd5acc97e0d10a4577a90a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:137-145 | Packages/OsaurusCore/Models/Theme/ThemeTokens.swift:288-294 | Packages/OsaurusRepository/BundleOnboarding.swift:71-77 | Packages/OsaurusRepository/BundleSettings.swift:31-37 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"318d080adede7649e98bf29f57a0304eef2296bc823146c2f748663e05a82409"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAgentProgressStyle.swift:16-19 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorPromptStyle.swift:21-24 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAgentProgressStyle.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7423ff2d2839956052a9b2823a00e64a0afdcb5c5fe096f0c68d6aca7a81404c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/ChatImport/ChatImportModels.swift:355-362 | Packages/OsaurusCore/Services/Context/PromptSurfaceEvaluator.swift:104-111 | Packages/OsaurusCore/Services/Context/SessionToolState.swift:163-173 \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":"Packages/OsaurusCore/Services/ChatImport/ChatImportModels.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c79db0b1033e5ddc25facd5b93c85efb2bbfc1dd5306e649580ab33ab070f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift:24-30 | Packages/OsaurusCore/Services/Documents/OOXML/XLSXEditor.swift:35-41 \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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a5eb607e45ef237ddf283336f34245953437626d00b386610ae83a40b19a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift:573-582 | Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift:413-422 \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":"Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"af18c973a2d75e4e907152544e2eaa487799f3aaaa41e9358d1c54b34fea234d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/Sync/SyncAgentDirectory.swift:331-342 | Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift:276-286 | Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift:770-779 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncAgentDirectory.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1667d114cd58894de0397999e9c30c6497c1965d4cf77ed3e0c94b3662f2720c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Subagent/SubagentSession.swift:1592-1598 | Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift:460-465 \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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"8966d89be8d044c29aabc0096d5e4efe36bef312767912acf27b6f88f4616155"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:6975-6982 | Packages/OsaurusCore/Views/Voice/TTSModeSettingsTab.swift:31-38 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":6975}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa70766f115549fe65c4b7bd159d8bf3e1739664c5e68eede6a822ee01e8932c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift:49-56 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:466-472 \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":"Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b222e222a3e2ea97da1b16b923b012b07f88bf4b495d33ec71e3641b4540fbbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:567-573 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:538-541 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bc81db9f9fef24a03345e4f4b4a51ae7f1f6f8a39770600a7fdfea7acdbaf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift:109-112 | Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:46-49 | Packages/OsaurusCore/AppleApps/Notes/NotesTools.swift:52-55 | Packages/OsaurusCore/AppleApps/Reminders/RemindersTools.swift:59-62 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fee84059adefe90919499d7c77b5f435749be2378daf270176dbb61632c5b71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Packages/OsaurusCore/Managers/Model/ModelPickerItemCache.swift:502-505 | Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift:480-483 | Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaCatalog.swift:301-304 | Packages/OsaurusCore/Views/Chat/ChatView.swift:10653-10656 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Model/ModelPickerItemCache.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2375e1b03ec5b142f1291597671cc6e841dbe82a7299fd9a9e9c0fa7dd72c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Agent/SkillStore.swift:243-252 | Packages/OsaurusCore/Models/Chat/SharedArtifact.swift:893-898 \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":"Packages/OsaurusCore/Models/Agent/SkillStore.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3041a602c6b094e405e46b60840eeb73c987b839d809c93f335a52b6b7f4129"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/Chat/DispatchEnvelope.swift:172-175 | Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:2134-2137 \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":"Packages/OsaurusCore/Models/Chat/DispatchEnvelope.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef8eb4e4cdc53e213754cdb8cf9ef412df67d18136baba87c79cd3c9e820303"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift:43-46 | Packages/OsaurusCore/Services/Workflow/WorkflowDraftStore.swift:60-63 \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":"Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"055d8998bbe02e8fad34be2de5713d2ffa237ff728e00a15a1c682bea1e79249"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 4\u002B corresponding lines): Packages/OsaurusCore/Services/Attention/Participant.swift:227-230 | Packages/OsaurusCore/Services/Router/OsaurusRouterWorkspaceTypes.swift:236-239 | Packages/OsaurusCore/Services/Router/SharedAgentIdentity.swift:107-110 | Packages/OsaurusCore/Services/Sync/SyncStatusModel.swift:446-450 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:202-205 | Packages/OsaurusCore/Views/Settings/OsaurusConnectView.swift:267-270 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Attention/Participant.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b21033d479c7794385d6a19ff6f368b10950fc10d39938e200f951a57463877"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/OnboardingModelsProxy.swift:70-77 | Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:1174-1178 \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":"Packages/OsaurusCore/Services/OnboardingModelsProxy.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff30bf73413c85e757db26f233bb3446d0d125812bab917d768c08a2b4a8a6df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift:105-112 | Packages/OsaurusCore/Services/Sync/SyncManageDetail.swift:55-63 \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":"Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d671ce3d059c40cdbb6ab35f4d05b6d5e6aa43a7b20d7d4a611b9e69ad6e051"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Storage/ActivityLogStore.swift:211-220 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:530-541 \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":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3be964b3432013823b439246fa58e7da23d01b28d105d741093bfbe157c15d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:103-110 | Packages/OsaurusCore/Storage/TaskDatabase.swift:164-170 \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":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41d8817346e783061eb0d3286000fb0409a47bc675497d5c2cdfd2b1adc2016"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Views/Agent/Database/DatabaseOverviewView.swift:170-175 | Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:1717-1721 \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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseOverviewView.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d1d98d336d48d2af131fe27606c96807952e04a976e8c94755dc20c025a6df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:4145-4152 | Packages/OsaurusCore/Views/Chat/ChatView.swift:10388-10395 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":4145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db9f171ace086cc92aed78e6f1394463bcc764e4a73580d52a18b0260cd59a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Sandbox/ProvisioningJourneyView.swift:309-316 | Packages/OsaurusCore/Views/Settings/ConfigurationView.swift:595-601 \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":"Packages/OsaurusCore/Views/Sandbox/ProvisioningJourneyView.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69948f64c9f9e9879b38402b2653265347f7c7647d583ec8eaccdfde9e67afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Managers/Plugin/SandboxPluginLibrary.swift:147-153 | Packages/OsaurusCore/Models/Agent/Skill.swift:867-873 \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":"Packages/OsaurusCore/Managers/Plugin/SandboxPluginLibrary.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e83c3de26a2e1e277393ae12e4818e0fcd2878a9f6640129e97863274a326a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1431-1436 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:543-550 \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":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"68167dff023572c3f096ee97bd5ed6069e3664a74555aefc58ac3f97847f5039"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Packages/OsaurusCore/Models/Chat/SharedArtifact.swift:938-942 | Packages/OsaurusCore/Services/ExternalModelLocator.swift:1052-1058 | Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.swift:341-345 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d66652e1bc64554ebc30a624611be87d936b2635d4e925971049e7aa8fba227"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedTextEditor.swift:87-91 | Packages/OsaurusCore/Views/Common/IMEAwareTextField.swift:105-112 \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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedTextEditor.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8842b9570baa72794e1778677a45c82d22a814c14590ce7cba8d22bb6a4064"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAgentPickerStyle.swift:17-19 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAttachmentStyle.swift:57-59 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorModelPickerStyle.swift:18-20 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAgentPickerStyle.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0f43591d0ed86046ef31dfa8dda6f7d24bfd76158865e86aa4a5d0d022085d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelAuditWorkbenchService.swift:49-63 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:134-140 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelAuditWorkbenchService.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c615ae50c2a1a0959652a079f1791d5fd4b86fea658fc3da1a74f3f1c4507cc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift:328-331 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:225-228 \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":"Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e43eeb999ee4f8289d388208357f65933281c74f630a6c77fbf74827e7bbfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/ChunkedFileDownloader.swift:477-480 | Packages/OsaurusCore/Services/Sandbox/SandboxRootfsTemplateStore.swift:202-205 \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":"Packages/OsaurusCore/Services/ChunkedFileDownloader.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90d5a91bb959767608aaec863973dc8ff566d7a5ba44532ce57549be70a76f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Documents/PlainTextAdapter.swift:77-82 | Packages/OsaurusCore/Services/Memory/MemoryService.swift:1501-1505 \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":"Packages/OsaurusCore/Services/Documents/PlainTextAdapter.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"310dfb8b786050a7ecf89780d1254dfbc7fe749fdf6a186c77ee06442e39f28e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:160-163 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:183-186 | Packages/OsaurusCore/Services/Search/SearchProviderKeychain.swift:26-30 \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":"Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bc2ea0e72cf09bb8934f95650bbc32f3065f11c088d7f4c0ea3fd10b4cdc71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:344-352 | Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift:362-364 \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":"Packages/OsaurusCore/Services/Skill/SkillSearchService.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e69477a0d0b633aa829e6e498f692dcdbb3d75c2a00e6dd92b9e98069eb9c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Packages/OsaurusCore/Views/Agent/BuiltInAgentAvatarPicker.swift:51-56 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:6717-6724 | Packages/OsaurusCore/Views/Template/WorkflowShareCardView.swift:145-148 \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":"Packages/OsaurusCore/Views/Agent/BuiltInAgentAvatarPicker.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"21aa8ce272d65cc33bb67fe9ad7a66967a7bf243f236e9f257b71681bd265077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Common/PickerCardStyle.swift:212-215 | Packages/OsaurusCore/Views/Common/ThemedAlertDialog.swift:288-291 \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":"Packages/OsaurusCore/Views/Common/PickerCardStyle.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadba678bbd70248a535810d61917a689929764883ce0ef72d91175dece42dfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Managers/WindowManager.swift:411-414 | Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:976-981 \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":"Packages/OsaurusCore/Managers/WindowManager.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc9910188e96e5c5fb6969b53d32c5a52dec168d5ae86f9c131a58bf57cbb76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Models/Agent/Agent.swift:1737-1746 | Packages/OsaurusCore/Models/AgentDelegation/SubagentConfiguration.swift:863-872 \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":"Packages/OsaurusCore/Models/Agent/Agent.swift"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd23e78da7df7866c6e6783fab903847e26e846022e0ff13209530a1890d7f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Models/Documents/DocumentSecurityMetadata.swift:42-52 | Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:532-540 \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":"Packages/OsaurusCore/Models/Documents/DocumentSecurityMetadata.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9475461f2db577d5728b910fa03eeb8ec947a74074006ae3a64591ee3b15b703"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift:511-514 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedNativePicker.swift:130-133 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/AssignedMenuPresentation.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0952a3438a8bf16ebb3fad401eb9f5e6057e23d0858bbe44ff01509af46107"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Networking/HTTPHandler.swift:14827-14830 | Packages/OsaurusCore/Storage/AgentDatabase.swift:2589-2592 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14827}}}],"partialFingerprints":{"codehealthFindingId/v1":"e521e8dba448e7f30a4633355f0ea603745ceb1c3fe73c015c3a8b5eccf627cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift:456-461 | Packages/OsaurusCore/Views/Event/EventDetailView.swift:675-679 \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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02c9dc6784ff61eefa99b9fefe815d8911b28c15a6199fb6764e325579132ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:2027-2034 | Packages/OsaurusCore/Services/Chat/CompactionWatermark.swift:60-68 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:4122-4129 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":2027}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cec8956e69ed65a0d320fce2fced89c58cf8e1c5d83d0632ee0449175ff2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Services/Chat/ChatEngine.swift:633-641 | Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift:1556-1564 \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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2aca2c17ac6d4d6e7801927c61796e1530b98ef9bc5115a8295f7a2896dfd39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift:1381-1393 | Packages/OsaurusCore/Services/ModelRuntime/RuntimeProofMatrixReporter.swift:393-397 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:574-576 \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":"Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"866faf51dd28385a12878588f80a61c1c85dde521377826fc4ee720fdc0be140"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift:364-368 | Packages/OsaurusCore/Services/Insights/ActivityExportService.swift:327-329 \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":"Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3afdfeebda56296761ed8f2222056c785f5a9b239682d13ded74e518fbbf9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:8045-8055 | Packages/OsaurusCore/Views/Common/SharedHeaderComponents.swift:37-49 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":8045}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4025835e8c90e09c5c1f43a071529420f5919d62b1d0ac0ffcb841274bd8f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:69-74 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:3883-3893 \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":"Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5033c17b1899fa4e44e895b69d11df0d570318ce9c2688ea6ac8417586cd9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigSnapshot.swift:117-119 | Packages/OsaurusCore/Folder/WorkspaceWriteSafety.swift:399-403 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelAsyncSubstrate.swift:204-206 | Packages/OsaurusCore/Services/Knowledge/KnowledgeWriteService.swift:552-554 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigSnapshot.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d30b9b9c1402ea60430622552bde62f1548e9a46c78ed50d22f2f188380275a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Packages/OsaurusCore/Folder/DocumentTextExtractionCache.swift:198-202 | Packages/OsaurusCore/Services/Chat/FollowUpSuggestionService.swift:208-213 | Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift:483-487 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/DocumentTextExtractionCache.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1b14346d16dd3b826fdd880bfaf0b60bb1c8218a679422fc8480b9e16a1044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/ServerConfigurationStore.swift:116-121 | Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:971-976 | Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift:54-59 \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":"Packages/OsaurusCore/Models/Configuration/ServerConfigurationStore.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30a7d6ffe0ef3c22d5a8507d57fd2061eb92cc00db8fdbc06e0580a1efcd51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Packages/OsaurusCore/Services/Chat/PromptManifest.swift:270-273 | Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift:440-443 | Packages/OsaurusCore/Storage/AttachmentBlobStore.swift:66-69 \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":"Packages/OsaurusCore/Services/Chat/PromptManifest.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcbd8af76ffb2954a1a60522a1fbdb0fc772ada46d24c3cb7b4b5338de8a204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift:828-834 | Packages/OsaurusCore/Services/Context/DefaultAgentConfigurationEvaluator.swift:93-103 \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":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fd8901aa74cbc37dabcb9116bdef886e20830da78e91dfde8086d0109480a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Import/BundleOnboardingPreferences.swift:57-63 | Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift:198-204 \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":"Packages/OsaurusCore/Services/Import/BundleOnboardingPreferences.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea10d736f8589e9c117d6f6a201ae587c70626eaa8112f970d801ca06adec503"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:922-926 | Packages/OsaurusCore/Views/Event/EventSourceEditors.swift:372-374 | Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:1103-1107 | Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:84-88 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c02e90b8901b2d9509004c9f1ea2023c8dc216d36d3373fbba75d0f914ba51a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Credits/CreditsView.swift:706-712 | Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:124-130 \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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"7390ed2e7fa6e118fde546f960da7cadfb3e6ad2bd9d39422107f3ac83302ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift:417-419 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:635-637 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfe6753d79fc6f9399e712b3a9ad314a804bf2dcefa51cbbf046dfd1e5eee97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift:336-371 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift:800-850 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45736990c7605e4d5a457480335af650ca5868e2e9b52500376c6881ca2e909"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift:262-267 | Packages/OsaurusCore/AppleApps/Reminders/RemindersService.swift:174-179 \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":"Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62c22285f0034e66c937ba8ec6c70952ccdec6f8d0edc64393eacdafd69ddbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Folder/FolderTools.swift:4433-4436 | Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift:681-684 \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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4433}}}],"partialFingerprints":{"codehealthFindingId/v1":"005a739d0f5f6f1df3a8f1baf94e482cec44c41b67d9bb4097840340cf4751be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Packages/OsaurusCore/Models/AgentCollaboration/AgentCollaborationProtocol.swift:27-39 | Packages/OsaurusCore/Models/Configuration/SearchProviderConfiguration.swift:55-60 | Packages/OsaurusCore/Services/Inference/ModelService.swift:254-259 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:567-579 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentCollaboration/AgentCollaborationProtocol.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c9834cff5a6556d987c35a4246bf1e31d6188b4369e793e1aed675803df550"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Event/EventRun.swift:32-37 | Packages/OsaurusCore/Models/Task/TaskModels.swift:30-35 \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":"Packages/OsaurusCore/Models/Event/EventRun.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d436015837d788a29cf8d2555c598df55e38271257c32a824d7095c5cc2e973"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:234-240 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:145-151 \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":"Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf12c1c2524c9c57c7d5a66bb222f1ff974e38b6bd548be4c2d37794a7ee2ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Chat/PromptComposerExperiment.swift:49-59 | Packages/OsaurusCore/Services/Sandbox/SandboxPodOccupancy.swift:19-23 \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":"Packages/OsaurusCore/Services/Chat/PromptComposerExperiment.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c81925ab61bb69f4231873471feb3389145cb6f9ac261db5c45e2c20ed032b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Router/SharedAgentIdentity.swift:564-568 | Packages/OsaurusCore/Views/Settings/AgentChannelTransportHealthView.swift:123-127 \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":"Packages/OsaurusCore/Services/Router/SharedAgentIdentity.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6be0b33d3cf4d595b8fe31781cb26d13f572dfbfb2a118ff9af0054702ac54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Packages/OsaurusCore/Storage/ActivityLogStore.swift:1150-1156 | Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:448-450 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:529-531 | Packages/OsaurusCore/Storage/TaskDatabase.swift:697-699 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3dc47d69ae9af2fec99a08a0e64c91690dddd0dbe30bf00ce5c43bc314117f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:7926-7932 | Packages/OsaurusCore/Views/Voice/VADModeSettingsTab.swift:555-561 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":7926}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ef0b8a6baa455c2846a0006e61950ed771cf893238798e9ea076550b6c9e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/AppleApps/Messages/MessagesService.swift:182-185 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:2238-2241 \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":"Packages/OsaurusCore/AppleApps/Messages/MessagesService.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1af01bedbb85b69e229f7b21fc61a6cf49c85a793dd751f1b99142b6bd98ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): Packages/OsaurusCore/Models/AgentDelegation/SubagentConfigurationStore.swift:179-183 | Packages/OsaurusCore/Models/Plugin/SandboxConfiguration.swift:245-249 | Packages/OsaurusCore/Services/Sync/SyncConversationStore.swift:101-105 | Packages/OsaurusCore/Utils/ConfigDiskWriter.swift:51-55 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentDelegation/SubagentConfigurationStore.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d988ef96f4fb5c0694a704978641c58be78c485213d416d1fbe8b743ff1136"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/DirectoryFingerprint.swift:111-115 | Packages/OsaurusCore/Services/Workflow/CodeNodeExecutor.swift:263-267 \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":"Packages/OsaurusCore/Models/DirectoryFingerprint.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff0394affa142e8783eb0d287ccc26d40310d165485872567721019cfbb60aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorComposerChips.swift:43-45 | Packages/OsaurusCore/Views/DesignSystem/SettingsFields.swift:315-317 | Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift:1170-1172 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorComposerChips.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39922282f621f8fb352fff9330186207572e65b319d2bf378b50b4549a75743"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Networking/GlobalProxySettings.swift:106-114 | Packages/OsaurusRepository/RepositoryGlobalProxySettings.swift:50-58 \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":"Packages/OsaurusCore/Networking/GlobalProxySettings.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"952884f3420e8283b6a6712a301f95efa885ecc01fef1da4415d7c144f9208c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:432-434 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:518-520 \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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1baac9c4bf514ba5e12c123239ab29cb1b80e1442d156a5a0755e6990825c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:189-191 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:182-184 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9b5a3df1406a7441d99b98761f15486a2bf7caaa304325708e155b7c58849a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:934-937 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1469-1472 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:468-471 \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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"46238eb23a952f333ec7679c872e21fd289690c62cec9abfbe6cb99ed29f93ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:465-473 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:136-146 \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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"718c4dae254d9157f67ab5d56a91d674dfc7e013629871d655bc7915281b07b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceCard.swift:179-188 | Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:161-170 \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":"Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceCard.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"71edacd95d6fed102e817c896a46b4ba68d467e45a01f7b1ce797b3febe14c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/ComputerUse/Diagnostics/ComputerUseGateInspector.swift:317-320 | Packages/OsaurusCore/Models/Documents/BusinessDocumentSummary.swift:70-73 \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":"Packages/OsaurusCore/ComputerUse/Diagnostics/ComputerUseGateInspector.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9037128ba9dd3a6efebac4965b3949576d7c12ec5ae61983cbad88c63d0026"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:874-874 | Packages/OsaurusCore/DevelopmentDesign/DesignInspectorView.swift:249-249 \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":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b2c54f04b959f4108b035e9ed42bf158363d400571fe8e54aff2abd94568bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Packages/OsaurusCore/Folder/FolderTools.swift:659-669 | Packages/OsaurusCore/Tools/ToolRegistry.swift:844-850 | Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:69-75 \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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"e957a44ffd34aeb0d7e64d50f323f0b5e246152229dce47c7a8bab26d5f2c72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:1799-1804 | Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift:313-318 \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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c36676ad55e5d7822e7820e54d147ddc441aa8db60bdba1631c878c15b7ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1143-1147 | Packages/OsaurusCore/Services/Inference/StructuredOutput.swift:122-126 \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":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58d23b3397e197bdc8b5249122984731417c676a39c6baa1e3cc05be4383760"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelSetupFlow.swift:32-37 | Packages/OsaurusCore/Services/ExternalModelLocator.swift:45-51 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelSetupFlow.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18b29121d5f7d2adb193d76c340e08e0508d956b997117473bd60c0ce02ce5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Attention/AttentionLog.swift:17-20 | Packages/OsaurusCore/Services/Provider/RemoteAgentRunLog.swift:33-36 \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":"Packages/OsaurusCore/Services/Attention/AttentionLog.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d463c872d8cc24491cd1b8ef44e66c6bb0b69e235f977e176bb3645df7d059c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Attention/AttentionLog.swift:22-25 | Packages/OsaurusCore/Services/Provider/RemoteAgentRunLog.swift:38-41 \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":"Packages/OsaurusCore/Services/Attention/AttentionLog.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e9830757c0c41bb6707baaac72498d7338deb29c66540eaf87331b33c5c249"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift:344-347 | Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift:294-297 \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":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ab77cc35ce889ed7fdb2fbdda82092f8b3177b95b28f01040dd9ec991c22ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Workflow/AgenticNodeExecutor.swift:86-90 | Packages/OsaurusCore/Services/Workflow/SubworkflowNodeExecutor.swift:68-72 \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":"Packages/OsaurusCore/Services/Workflow/AgenticNodeExecutor.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3fc59d3e5e746533b6689a12a93b5f6ddfb893c5f231cec34e473f60788c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Tools/ToolEnvelope.swift:607-612 | Packages/OsaurusCore/Tools/ToolErrorEnvelope.swift:72-77 \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":"Packages/OsaurusCore/Tools/ToolEnvelope.swift"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26cf3eb75dbab65b00a26b99c3456a6a51a77a052ca6843d16ab9e356b662e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Packages/OsaurusCore/Views/Settings/ProviderDiagnosticsRowsView.swift:144-155 | Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift:453-464 \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":"Packages/OsaurusCore/Views/Settings/ProviderDiagnosticsRowsView.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"4746aef528c6a58beb74a882e812b6d1640d8f3909a51d1d5547b29070391e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:443-446 | Packages/OsaurusCore/AppleApps/Reminders/RemindersService.swift:360-363 \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":"Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb24ddb3a044b46482368a42e72ec39250ce16f372c2d714427f71f34d14dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift:55-57 | Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:299-301 \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":"Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e421edf7ad588f3b6c677a8b20d9176af391cbcb5b49628b99e784ed8db4b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift:59-61 | Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:303-305 | Packages/OsaurusCore/Tools/Agent/AgentDraftTool.swift:123-125 \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":"Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"790f8470e7aba521b1678f47696b9007cddcacb44ea45848e55ba6956512b59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift:63-65 | Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:307-309 \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":"Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"330cd75cc9d13e44c79c1352c3d967c57541d08e3127724dd822734c563356bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift:309-314 | Packages/OsaurusCore/Services/Event/SelfScheduleAutomations.swift:282-287 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:141-146 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f3940d2def743a28c05d0dfb3ef82a9b8d52397f015d12ae94acf386c68127"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Managers/InsightsService.swift:182-188 | Packages/OsaurusCore/Services/SystemMonitorService.swift:46-56 \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":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be705dd74fdbb135b72d99c965b1909e4973e4979f0c842f7c237832cf82e3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift:261-264 | Packages/OsaurusCore/Views/Chat/TerminalDisplayView.swift:603-608 \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":"Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ebc26fcd230a4bcfce2ce121ce7d1950d333ff33840cb329cce605768c3ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Template/Template.swift:39-43 | Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:1456-1461 \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":"Packages/OsaurusCore/Models/Template/Template.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95a316d8c7b90efe5dc24e41332d5ce6d812f3ef6e3facf5c2ea8c58b58422d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Context/CacheProofEvaluator.swift:33-43 | Packages/OsaurusCore/Services/ModelRuntime/BatchDiagnosticsSnapshot.swift:24-29 \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":"Packages/OsaurusCore/Services/Context/CacheProofEvaluator.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"402af746abb52672cc14335f2332c7a9cf3d88b204ae175e2f46f90d3ac55b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Credentials/CredentialStore.swift:44-46 | Packages/OsaurusCore/Services/Keychain/AgentSecretsKeychain.swift:64-70 \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":"Packages/OsaurusCore/Services/Credentials/CredentialStore.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb0fdba4edb94557d8af9963a0c82fde4a882aa8bea8e3e809b8e32975c74b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Keychain/ToolSecretsKeychain.swift:296-298 | Packages/OsaurusCore/Services/Keychain/WorkflowSecretsKeychain.swift:65-67 \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":"Packages/OsaurusCore/Services/Keychain/ToolSecretsKeychain.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"35828731559e569ca4df67aed1b3be0621c2c06547f7051e5a4f9c0cf7fc2fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:49-51 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:58-61 \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":"Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1000b364612d0a937309ee91287baafe5910a3baae36b2ebd8890fe8a679aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/MobileConnect/DetachedPhoneRuns.swift:164-167 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:473-476 \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":"Packages/OsaurusCore/Services/MobileConnect/DetachedPhoneRuns.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad020102862e4628001f5763d4e3b5d7749a7e292617100aab0b41f0ab1a1dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Subagent/Kinds/AppleScriptKind.swift:511-513 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowStory.swift:95-97 \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":"Packages/OsaurusCore/Subagent/Kinds/AppleScriptKind.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee89bd6873c61326b5e782aa6aad8b099204110ccf44f63140f1e88f2fa7774"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift:287-290 | Packages/OsaurusCore/Views/Settings/ServerModelsTabContent.swift:370-375 \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":"Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"20918f970bb203e8786659c9d8be49ed8355caa43174c350b150f96d0128bde2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1020-1029 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:787-796 \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":"Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"4875aef64bc099926891289fd7c956b6ffe418773f6d89c75101b396fd6f0726"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/AppleApps/Support/AppleServiceQueue.swift:79-83 | Packages/OsaurusCore/Services/Auth/OAuthFormEncoding.swift:23-27 \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":"Packages/OsaurusCore/AppleApps/Support/AppleServiceQueue.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fdb487c4c206305b53ee572c2c10021f0d67f31b6ecfba2d744023d3c32bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Channels/ChannelRemoteSafetyPolicy.swift:327-331 | Packages/OsaurusCore/Services/ModelRuntime/RuntimeProofMatrixReporter.swift:120-130 \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":"Packages/OsaurusCore/Models/Channels/ChannelRemoteSafetyPolicy.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"881b178e10ab5bc844306a94a5b25a92b28fd0001557bd106fcb57ae7a87dad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedTextEditor.swift:107-110 | Packages/OsaurusCore/Views/Chat/EditableTextView.swift:408-415 | Packages/OsaurusCore/Views/Common/IMEAwareTextField.swift:176-181 \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":"Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedTextEditor.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"37279d94a08bd53d3922877b99da718fa620050dc346b67cbe90401582b859d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorCodeBlockStyle.swift:6-9 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorRichTextStyle.swift:6-9 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorCodeBlockStyle.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c335c2a22620a607d916bef40d61b598cae0a268d3c3fe415bfffac045ea4e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift:59-61 | Packages/OsaurusCore/Services/Template/TemplateImportRouter.swift:255-257 \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":"Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"12efd3e623fca76cb296eee90368fb6c374c85fe6240ae99a26aaba329645596"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Services/FavoriteModelsStore.swift:118-120 | Packages/OsaurusCore/Tools/ShellCommandRiskScanner.swift:466-468 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:2584-2588 \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":"Packages/OsaurusCore/Services/FavoriteModelsStore.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d25cfd355d2c9da43764cf8117565b5de2fb583db49f4d08f3910ca7e343464"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/ImageModelDownloadService.swift:278-281 | Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift:614-617 \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":"Packages/OsaurusCore/Services/ModelRuntime/ImageModelDownloadService.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e738ee7452c5558d39052a517c36e8627e4b42c453a28aafca60074b336448d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Packages/OsaurusCore/Services/Router/OsaurusRouterAuthSigner.swift:112-114 | Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift:578-580 | Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:1248-1250 | Packages/OsaurusCore/Services/Workflow/InstalledWorkflowStore.swift:86-88 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Router/OsaurusRouterAuthSigner.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c76edbacb1f2740d77b1dab24fc5759e8a9f6e12d25522695939bb65f0baab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Storage/AgentDatabase.swift:134-146 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:74-84 \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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10f4babd98810a82100850f01284f1fbc97a660edaf43c01d49f5b0c14245fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:436-461 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:270-299 | Packages/OsaurusCore/Storage/ToolDatabase.swift:201-222 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"83edd9213e51e2c45d8b7ba95b12aea293797edb7a9aead33218fb0a6c4320db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1968-1971 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2855-2858 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1968}}}],"partialFingerprints":{"codehealthFindingId/v1":"c904f199e532869a21b54465a1e3ed75a2ae530ce9ded6c864a7185c1e54a451"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Packages/OsaurusCore/Views/Sandbox/SandboxView.swift:368-372 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:739-744 | Packages/OsaurusCore/Views/Settings/ScreenContextPreview.swift:148-153 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Sandbox/SandboxView.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"71850ccaf848a1200b66b39fe54063f28e9a607a9b6c0db11f68ab52514f5e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/MCPCommand.swift:235-262 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift:207-244 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalScoreboardCLI.swift:68-94 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/MCPCommand.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d86a2969f6fa9ef9feea4b4d46560f6754ea795119b219f788bca2d266bb4ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:213-218 | Packages/OsaurusCore/Identity/SecureChannel.swift:86-91 \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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b3a093f2cd063b7bcf59fbeb5fa488b9f658fe07927a0bcede20580b974aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Packages/OsaurusCore/ComputerUse/Telemetry/AxResolvableSweep.swift:37-42 | Packages/OsaurusCore/Services/Context/ContextAttribution.swift:55-65 | Packages/OsaurusCore/Services/Skill/ClaudePluginManifestStore.swift:56-61 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:131-141 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Telemetry/AxResolvableSweep.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"db729ba56fe3d16ba9280d517812f1b9b4440d9ec6ff7b5fa3785e67aa1aba70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift:37-44 | Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift:603-610 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd61597afc109547759895affba5c876bed4cdac80d356ead6ded7e87599b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift:968-971 | Packages/OsaurusCore/Services/Search/SearchStructuredDataStore.swift:258-261 \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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4e117689f39b1e7155848df810a565408050930df98cec2abb6da077a657ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/OsaurusCore/Managers/HotKeyManager.swift:19-29 | Packages/OsaurusCore/Managers/TranscriptionHotKeyManager.swift:30-40 \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":"Packages/OsaurusCore/Managers/HotKeyManager.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a69194fd83cce12bb5fb3361c8e455c8bc1dce29a0dbc8bbce57a65283a6ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/Knowledge/KnowledgeModels.swift:80-84 | Packages/OsaurusCore/Models/Memory/MemoryModels.swift:157-160 \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":"Packages/OsaurusCore/Models/Knowledge/KnowledgeModels.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c49ed2a23867f7203e13eec2bd65bd6a2518b5f20023f3c55009c5f98f0a20f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/Task/TaskQueue.swift:99-102 | Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:1339-1342 \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":"Packages/OsaurusCore/Models/Task/TaskQueue.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31bfceb07e608dc317e0901eb2607a324137b02d13f389fc206651ff11e60d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift:151-154 | Packages/OsaurusCore/Utils/OsaurusPaths.swift:434-438 \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":"Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2d8e0b1c9e6f260048cd1ec3c7f63489e8c370a645aa6ce91f2dc70ef45bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Auth/LoginWithOsaurus/LoginAssertion.swift:73-77 | Packages/OsaurusCore/Services/Sync/SyncHostedRunContract.swift:256-260 \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":"Packages/OsaurusCore/Services/Auth/LoginWithOsaurus/LoginAssertion.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff5f855ba0668662e9dabb103a3dc3af3d3ff364689814de8d5e3d52fe726cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Context/ContextAttribution.swift:28-33 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:150-155 \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":"Packages/OsaurusCore/Services/Context/ContextAttribution.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"347fd91fc97991c132de1588f95c029931e439106012aec888ae70752e6bdff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Memory/MemoryConsolidator.swift:115-119 | Packages/OsaurusCore/Storage/StorageMaintenance.swift:144-148 \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":"Packages/OsaurusCore/Services/Memory/MemoryConsolidator.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61cb533d087e4fecd37f5437cc1c7def0456bb3a2039e9daea9041589901bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Router/WorkspaceAgentProofSigner.swift:14-16 | Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:1236-1238 \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":"Packages/OsaurusCore/Services/Router/WorkspaceAgentProofSigner.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"72299714fecd4a58b209f1603d675f4c507b74bb47278dfb220be48ddc0afc95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:842-846 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1333-1337 \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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1a1b640f0263ec52b79ede4c125d16bfef93909b2814edcb56df86ab1b349e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:189-195 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:528-536 \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":"Packages/OsaurusCore/Storage/FileHistoryDatabase.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"322aa9c8f4a76495b9e195c723683a077a320a6dddbef395579365eaf4c5bda5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:285-288 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:313-316 \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":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"831f2c85b0a2d0c6967cc82e618b58629447a2327f48f7c6dd6092a968947c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift:285-291 | Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1600-1602 \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":"Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eb0b79cf2daa534966eec0b92c4bb7454cf0ebb594aee45d782785e276d1f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1361-1365 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:696-700 \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":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c857f4a5e4e0e4c6cfa65a7af4b6faa890578ab19fd7cb18319a6a50709d6dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/AccessKeyCredential.swift:101-103 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:7121-7123 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/AccessKeyCredential.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce95cc9899640d272d9e68e6ab298d163e0538eaf7cad29cbbde7d1b15139b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigChannelRouting.swift:113-117 | Packages/OsaurusCore/Services/Sync/SyncDeviceFeedContract.swift:107-112 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigChannelRouting.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"932e05d904bcdf0ec7440fc60b5a6ed83cd441caa3cf4727b84bcb2167c643c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:339-343 | Packages/OsaurusCore/Managers/WindowManager.swift:245-249 \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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a32112b2aa23db36fa526eb54bd8818e71609b4947dbdb99ec8293221226b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Models/Agent/Agent.swift:18-23 | Packages/OsaurusCore/Services/Router/OsaurusRouterSupportTypes.swift:120-125 \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":"Packages/OsaurusCore/Models/Agent/Agent.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee6b28068664e846f72b1ece415f6e030b6279a5349cc99a97c21ecffa70e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Models/Agent/ConfiguratorConfigurationStore.swift:52-58 | Packages/OsaurusCore/Models/Agent/DefaultAgentConfigurationStore.swift:27-34 \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":"Packages/OsaurusCore/Models/Agent/ConfiguratorConfigurationStore.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47186c0e651912fc42ce229f3ab7daa80ac1ab6d5ed57f0a4fc1bc60451ab53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift:120-124 | Packages/OsaurusCore/Models/Channels/ChannelRemoteSafetyPolicy.swift:238-242 | Packages/OsaurusCore/Services/Channels/ChannelRemoteSafetyGate.swift:501-505 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:2247-2251 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Channels/ChannelIdentity.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d82218197a76cce86fbe3c63d8bc2fa7bf6398f6c966ccff22e94f86d109285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift:603-605 | Packages/OsaurusCore/Services/Sandbox/SandboxPackageRequestNormalizer.swift:111-113 | Packages/OsaurusCore/Services/Workflow/PythonCodeNodeExecutor.swift:217-219 \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":"Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"060aaa208e730219386e90cd9cbdd068853d2740d9a402fa85d126e4e85290d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAgentPickerStyle.swift:8-10 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAttachmentStyle.swift:11-13 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorModelPickerStyle.swift:9-11 \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":"Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorAgentPickerStyle.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ebec15a557c74347e814893ee828574911790f67df0b8e5a738c246c33a13c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:1415-1423 | Packages/OsaurusCore/Subagent/SubagentKind.swift:189-196 \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":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ad48343ef87ffc8782f2e86b85fe31f3b20d3ed2cecc4fd558fa9b72fcbfc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:204-211 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:421-428 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7835e62e5eef60a21b709297195c1a571660a8b19a5d5ca3402ba27cb428111"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1648-1650 | Packages/OsaurusCore/Utils/ZipArchive.swift:273-275 \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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7f8c09b9e6b961aaaeb526a6c2197ac87adc2a6e74cf8b2c310e8e98a0d30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:74-76 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:68-70 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0b4c6b55d4662c0fc3b737fc816371686d2d3012d8b64e172bedb29cd25179"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:301-308 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:382-389 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7920f488b254ae2421652771dd997e0887cd457a5a4a08d2528e09fcfc3a80de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift:454-456 | Packages/OsaurusCore/Models/AgentChannel/LegacyInboundDispatchCarryOver.swift:62-64 | Packages/OsaurusCore/Services/Harness/HarnessAdapter.swift:217-219 | Packages/OsaurusCore/Services/Sandbox/SandboxInteractiveActivity.swift:35-37 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"a476165144e33f6edc8999b1a61656a644574f2818fb9c484596ce4a1fee730e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): Packages/OsaurusCore/DevelopmentDesign/InspectorMessagingParts.swift:87-87 | Packages/OsaurusCore/Views/Chat/TerminalDisplayView.swift:675-677 \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":"Packages/OsaurusCore/DevelopmentDesign/InspectorMessagingParts.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da5fa4ce6d4976fbbf625b9d0a79cefafe64e2f2b2595e72a0456a217e6966d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Folder/DocumentTextExtractionCache.swift:60-65 | Packages/OsaurusCore/Folder/WorkspaceShareRoute.swift:28-35 \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":"Packages/OsaurusCore/Folder/DocumentTextExtractionCache.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"616320342bbeb28b70193f6f7ce5540486de920afd598f413d46bb9692a4a871"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Chat/ChatExportOptions.swift:16-24 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift:37-41 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ChatExportOptions.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"18632b0948ec5be52c4bacb094f6e5a4853bd5754c886d5c3541972164e6c7b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Theme/ThemeTokens.swift:495-502 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:293-297 \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":"Packages/OsaurusCore/Models/Theme/ThemeTokens.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"29078cf291f55105991d2c2f8ae27a78ed933cf76c65d03d059b97789eb747e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:215-217 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:434-441 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"081e115d33a5ef6f67035418a59ec4e20ea6472266df3987daf38a2ce10c6852"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:218-220 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:443-450 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0421eed81bacf2d2550709c6b09e87ecab98b99e22c19a46414d087ef02a2a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Documents/PPTXEmitter.swift:20-23 | Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift:20-23 \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":"Packages/OsaurusCore/Services/Documents/PPTXEmitter.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1a2e266d78660cf77350d8ec3459fbd7a8baef8b413f7754bcdf149cf8ed89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:70-72 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:64-66 \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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db21ad5dd5e1af6cd5ed06db0155458faaf6844088983e57bebe56bb12a34ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift:518-521 | Packages/OsaurusCore/Views/Chat/ChatView.swift:2943-2947 \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":"Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"43280fcf756aa3f29bdfc47abb464f3bc4d92f094d476dabec6eb1f0d0bbce89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift:42-44 | Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift:150-152 \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":"Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53ad62a7f7518da98f4cee0667119bea37be348fe9fa9d323680c182394dab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:828-834 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1016-1021 \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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bee064bcb357fcb834a9e2386312e64b781a48bb145afdf5cac7b543fed1eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Auth/LoginWithOsaurus/LoginWithOsaurusRequest.swift:179-181 | Packages/OsaurusCore/Services/Router/WorkspacesDeepLinkRouter.swift:35-38 \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":"Packages/OsaurusCore/Services/Auth/LoginWithOsaurus/LoginWithOsaurusRequest.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f929b5fd392397bba6e37d32c47c98378f1df017666fc9fe384732100d2fcc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Packages/OsaurusCore/Services/Documents/PDFEditor.swift:237-239 | Packages/OsaurusCore/Services/Template/MCPServerResolution.swift:72-74 | Packages/OsaurusCore/Tools/KnowledgeTools.swift:185-187 | Packages/OsaurusCore/Tools/SchemaValidator.swift:723-725 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/PDFEditor.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ea7e880d0d533379eab174ef80669b4d6141c5a04dbe96e8bf0672286307f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:4485-4488 | Packages/OsaurusCore/Services/SupportDiagnosticsBundle.swift:417-420 \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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":4485}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9442d4662844d8ed17a16d9849ffa0fefe7eedbd66c7e9896e6ec651bfaae39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:444-446 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:525-527 | Packages/OsaurusCore/Storage/TaskDatabase.swift:693-695 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:310-312 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd73ae3f5b00e35dbd8ffa9a7790e754869f186656e213a3757eb1f7f10828b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:150-152 | Packages/OsaurusCore/AppleApps/Music/MusicTools.swift:33-35 \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":"Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04d2579260c5b44094277cf8799054f9328492d0297a9539083a8f56c9184ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Packages/OsaurusCore/Models/Tool/ToolApprovalPresentation.swift:421-424 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelAuditWorkbenchService.swift:184-187 | Packages/OsaurusCore/Views/Agent/AgentsView.swift:4917-4920 \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":"Packages/OsaurusCore/Models/Tool/ToolApprovalPresentation.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7b54c5f51118e511f04c001a14b2ee45ac60abcee7a00f2c72e9f049b4dc83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelBundle.swift:53-57 | Packages/OsaurusCore/PrivacyFilter/Rampart/RampartModelManager.swift:57-61 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:92-96 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelBundle.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04dd863d99a3e983ea23be70d79f5a1c1eeafa45774c3b58def1b5944385c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift:20-22 | Packages/OsaurusCore/Services/Workflow/InstalledWorkflowStore.swift:34-36 | Packages/OsaurusCore/Services/Workflow/WorkflowDraftStore.swift:23-25 \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":"Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5439cd5820db39c52855283fa053be4f841a28114238dfbd7eec57be276183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Services/Attention/AttentionCenter.swift:232-237 | Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:237-242 \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":"Packages/OsaurusCore/Services/Attention/AttentionCenter.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27e9a3616133cd04b622d7e50e36cd7d10d3810f3ea035c969a1964660d704c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift:22-24 | Packages/OsaurusCore/Services/SafeDiskCachePurge.swift:151-153 \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":"Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2424d420c01671cc67139e4ddabc05b179eb3833ba934ab6c7ad5eebc8e88a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift:65-67 | Packages/OsaurusCore/Services/Provider/RemoteAnthropicNativeStream.swift:154-154 \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":"Packages/OsaurusCore/Services/Inference/ResponsesToolChoiceContract.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"777f23b266aa3b986511e90cc2c7ab9baba0dcd4af4548a0228da54a397aaf32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/ModelRuntime/ImageModelDownloadService.swift:29-34 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:720-724 \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":"Packages/OsaurusCore/Services/ModelRuntime/ImageModelDownloadService.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a07cd870bcffd067a2f3827a0a324a5cc4635125a6e853ae5655d67e6107a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Packages/OsaurusCore/Services/Plugin/ClaudeMarketplaceImportabilityCatalog.swift:290-299 | Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceCard.swift:157-166 | Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:150-159 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Plugin/ClaudeMarketplaceImportabilityCatalog.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6156c22a20bdd7c733c5a83dfb7946acf0202e6dbaad2e0c485da821f71f6f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Packages/OsaurusCore/Services/Workflow/AgentNodeExecutor.swift:192-194 | Packages/OsaurusCore/Services/Workflow/HTTPNodeExecutor.swift:109-111 | Packages/OsaurusCore/Services/Workflow/PythonCodeNodeExecutor.swift:86-88 | Packages/OsaurusCore/Services/Workflow/ToolNodeExecutor.swift:84-86 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/AgentNodeExecutor.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab03a1a81e76654b946f79da20a4e3552b8c493699a96fbf3d2c336ee173d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:290-293 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:318-321 \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":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dad92dc30aae95c3cd7cb7d9ce67899963f4dcd6938f842ed697c0e3fc6f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 4\u002B corresponding lines): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:213-216 | Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:228-231 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:235-238 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:242-245 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:388-391 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:255-258 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:246-249 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:245-248 \u2014 These 8 members are one piece of code written 8 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de44d6ce02d9fbb9bd1f103cf4d7ea61ac4f9d42a54f1f7cdea845675a7399b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Views/Settings/ChannelsOverviewTable.swift:264-268 | Packages/OsaurusCore/Views/Settings/ComputerUseDiagnosticsPanel.swift:380-384 \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":"Packages/OsaurusCore/Views/Settings/ChannelsOverviewTable.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"899277bb1e13f7c11a53c712adeadaa6908298404549992df8b6c889f7af2add"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/AppleScript/Knowledge/AppleScriptAppKnowledge.swift:138-143 | Packages/OsaurusCore/Services/Chat/ChatToolChoicePolicy.swift:264-269 \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":"Packages/OsaurusCore/AppleScript/Knowledge/AppleScriptAppKnowledge.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80aeeed43e7193b8ace5871b6c50e7875e395f58e922d8e8f4588da116c435f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/ChatImport/ChatImportVerifier.swift:419-421 | Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthClientMetadata.swift:143-145 \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":"Packages/OsaurusCore/Services/ChatImport/ChatImportVerifier.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b2e0f37e8cec178f100eb4b18a3c0731fb96a9d1f4badbe2c0a9c77022050b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift:45-49 | Packages/OsaurusCore/Services/Router/OsaurusRouterWorkspaceTypes.swift:1004-1008 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift:658-662 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2225a43aeeac845ae018057a6aacc79c59287e78cb9f7be22b6744c832aa8c8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/MCP/MCPElicitation.swift:239-241 | Packages/OsaurusCore/Utils/DocumentParser.swift:415-419 \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":"Packages/OsaurusCore/Services/MCP/MCPElicitation.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8320d248737e261880003794df91d066de95dbc3805fdf6a6d917488837ded6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:800-804 | Packages/OsaurusCore/Views/Chat/ChatView.swift:5627-5631 \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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f451901b1912feaccff447fa6e736d898ca85131dac4264548b175f477fc961"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Common/AnimatedProgressComponents.swift:229-232 | Packages/OsaurusCore/Views/Toast/ToastView.swift:180-183 \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":"Packages/OsaurusCore/Views/Common/AnimatedProgressComponents.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b52257e0e684df721dd5562f9ca2cfeb9cda2d5be242a5996d49645339e9d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:1800-1802 | Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:555-557 \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":"Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f99f40ea1485a72425bb53f949ade175503f5c4427307e65ebbb700e07d4af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/OsaurusCore/Browser/BrowserConfigurationStore.swift:82-87 | Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift:58-63 \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":"Packages/OsaurusCore/Browser/BrowserConfigurationStore.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1108776f7ee902b5b084636a7edc7e5705c4eb8ea32224cf1881e2d5ad829e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift:316-320 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:170-174 \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":"Packages/OsaurusCore/ComputerUse/Driver/MacDriver.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"762bc0f7721bd0a240065789915bd860a31c3c6e341f595924d092735e8d2857"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Folder/FolderContextService.swift:29-35 | Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift:689-691 \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":"Packages/OsaurusCore/Folder/FolderContextService.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f769370457de3f34d098675d83ab468c5767fe957d8722426951e38f9eca853f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 1\u002B corresponding lines): Packages/OsaurusCore/Identity/IdentityModels.swift:235-237 | Packages/OsaurusCore/Services/Attention/CallerDeclaration.swift:43-45 | Packages/OsaurusCore/Services/Attention/ConversationMailbox.swift:101-101 | Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift:37-39 | Packages/OsaurusCore/Services/Keychain/SourceCredentialVault.swift:22-24 | Packages/OsaurusCore/Services/Router/InvitePeerIdentityStore.swift:17-19 | Packages/OsaurusCore/Services/Router/WorkspaceMembershipAttestation.swift:173-175 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Identity/IdentityModels.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa734b8d5385ff89e2582083df0dacd2979b70eb8b407ed700fc26a4eef928aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Managers/SpeechService.swift:123-127 | Packages/OsaurusCore/Services/Knowledge/KnowledgeWriteService.swift:481-485 \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":"Packages/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf26415336ef76072c192e851efb22b14c07dc00bf81a8bb8a937878bbade04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:1009-1012 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionManager.swift:173-176 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab22b8bc5ca0dcc875190533f23fa0df44f38127fc5e51ccfcf09f129a8440e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 3\u002B corresponding lines): Packages/OsaurusCore/Models/Configuration/GeminiReasoningContract.swift:65-68 | Packages/OsaurusCore/Services/Chat/ModelFamilyGuidance.swift:128-130 | Packages/OsaurusCore/Services/ModelRuntime/ImageModelDownloadService.swift:37-39 | Packages/OsaurusCore/Views/Agent/Creation/AgentDraftPanel.swift:836-838 | Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateCard.swift:208-210 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/GeminiReasoningContract.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68218c27182003973cceb1be1aab932e6cd91645fde28b537f01c550053a07b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:288-291 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:244-247 \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":"Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83568f9794711c52b7484418010e68e9c4ff054c482c875e54b09b5c8aa3aaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift:52-55 | Packages/OsaurusCore/Services/Credentials/SignInSessionStore.swift:256-259 \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":"Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2934b5b27cd47bb1286673e35142ff27ceddfb1e1254a6023c6fa66fa2cce4c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift:46-49 | Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:35-38 \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":"Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8946296a02850a1824d7b6bb109e329614edd9785b2ed790193fc6edf36f9c3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:763-766 | Packages/OsaurusCore/Views/Credentials/KeysView.swift:625-628 \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":"Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43c3fcc22876189963a84ff5715a2c66a7a413d19ec3d3e8d2894668a05dec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/SupportDiagnosticsBundle.swift:164-168 | Packages/OsaurusCore/Utils/InlineMathScanner.swift:26-30 \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":"Packages/OsaurusCore/Services/SupportDiagnosticsBundle.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e00927f5063070499b8b7add614306b7c79d3dd5b471066abed6df5693c65d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Event/EventDetailView.swift:711-715 | Packages/OsaurusCore/Views/Workflow/WorkflowRunTabView.swift:110-113 \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":"Packages/OsaurusCore/Views/Event/EventDetailView.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"0805c1ee5bdad9f6f450f8d9cc4b031d0b53976ea8bbecf2e6989537965ceae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Views/Settings/ProvidersView.swift:1775-1779 | Packages/OsaurusCore/Views/Shared/ShareLinkComponents.swift:98-102 \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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b82524c272cbff7d3e23eac911d2940e1c8f2672e7dde0f5faa6d30da18919c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:565-568 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalScoreboardCLI.swift:143-146 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9b5d10f85052c91ec9f04f258a7cc36dcef5bc135376026855d6eb86e228e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:89-92 | Packages/OsaurusCore/Browser/Runtime/BrowserSessionCatalog.swift:202-207 | Packages/OsaurusCore/Models/Configuration/ModelExposureStore.swift:125-130 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0298984e0053a478419c7be8c45136b105b935c801a1b813dea6794566e7e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Folder/FolderTools.swift:2204-2211 | Packages/OsaurusCore/Services/Memory/MetalSafeEmbedder.swift:246-252 \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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7ed88a0862620a71576bb8a4ac4287a6d3400d90cb615b7eb31dc7ca947cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Models/Chat/AtFileMenu.swift:54-58 | Packages/OsaurusCore/Services/Chat/Routing/RoutableWorkflowCatalog.swift:27-31 \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":"Packages/OsaurusCore/Models/Chat/AtFileMenu.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"00285ab601c9b2770be10ebae47e0f4ba29b909848a058ef187839f58a904d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:627-629 | Packages/OsaurusCore/Services/ModelWarmup.swift:126-128 \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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a8489a77091b2d3c2a62b39ac2d20a88be8af18383c2855a058acd2ef6a457"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:212-214 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:430-432 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a23f9ab82b52917ad2a4f1ea09700e8ab7fd6c2c151412833d647016e2b21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Services/Email/SMTPClient.swift:264-267 | Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift:565-568 \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":"Packages/OsaurusCore/Services/Email/SMTPClient.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b32c3db4634e28f8d7ead59a19da3ae1f892004420964dd439a70671fc8d94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Event/FolderEventSource.swift:189-196 | Packages/OsaurusCore/Services/Knowledge/KnowledgeFolderWatcher.swift:135-141 \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":"Packages/OsaurusCore/Services/Event/FolderEventSource.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d073c133d2458379c3ac483e4a68368ff4ff1fb5f9e89650ae51c6890b0bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/GitHubSkillService.swift:805-809 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:18-23 \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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde13b9298cb9df589683349d5267fd959613e56ce6b78bf898b42d2d3331b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Views/Agent/AgentsView.swift:4681-4683 | Packages/OsaurusCore/Views/ImageGeneration/ImageGenerationView.swift:336-338 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":4681}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eb49e6212905b7b9894dbe90d4a66db3e659175a2ce9dc73f2e28b1c09a899"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Views/Event/EventDetailView.swift:138-140 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowDetailPage.swift:161-163 \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":"Packages/OsaurusCore/Views/Event/EventDetailView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9475727ef6584f6c2f53b98e65a86793a99b74cce1bf9fa385773004bbd1fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift:416-419 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerToolResultGrounding.swift:308-311 \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":"Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d4c442e0959e38913ae96252289c1ec1b04ecab6d5ec64d10b3ebb26f45097"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:95-97 | Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorNativeComponentStyle.swift:7-7 | Packages/OsaurusCore/Utils/OsaurusPaths.swift:693-695 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a780a0502e461572d3cdf2b23d2eed74b7d2b3d4c1bed0ba1a30508e52fa7bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): Packages/OsaurusCore/Models/Theme/BaseComponentAssignments.swift:121-121 | Packages/OsaurusCore/Models/Theme/DesignLibrary/AssignedBaseSegmentedPicker.swift:21-21 | Packages/OsaurusCore/Models/Theme/DesignLibrary/AssignedBaseSlider.swift:18-18 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"Packages/OsaurusCore/Models/Theme/BaseComponentAssignments.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9790cbbd5f404e848b20179ee943ed6fe2e8e5e0f888f0cd59c6d22d3ea316d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:272-274 | Packages/OsaurusCore/PrivacyFilter/Rampart/RampartModelManager.swift:124-126 \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":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"262ad3a258f9b32e8d402759649eff6a8143df0d99b65ddcfaf8663a7d93bee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 1\u002B corresponding lines): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:98-100 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelN8nPendingContactCenter.swift:47-49 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelTransportHealth.swift:186-188 | Packages/OsaurusCore/Services/FavoriteModelsStore.swift:125-129 | Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift:654-654 | Packages/OsaurusCore/Services/Workflow/SavedAnswersStore.swift:65-65 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c12f9962047c93e387b598ac98e21d57d7a7710a6043cc7d86f87914dc2c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/OsaurusCore/Identity/PairingKeyEnvelope.swift:49-51 | Packages/OsaurusCore/Services/Sync/SyncHostedRunContract.swift:216-218 \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":"Packages/OsaurusCore/Identity/PairingKeyEnvelope.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"175b02e4e91564a418b8b206175ed171c5fc3e5aec9cd002a2fa5d835955c6a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Packages/OsaurusCore/Services/Chat/ChatErrorMessages.swift:86-88 | Packages/OsaurusCore/Services/ChatImport/ChatImportVerifier.swift:386-388 | Packages/OsaurusCore/Services/Router/OsaurusRouterIDTypes.swift:29-34 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:216-219 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/ChatErrorMessages.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a40c1f2a2a3cc5543e681bd617db97b806a4a02a45403ff4989c4feff60a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 3\u002B corresponding lines): Packages/OsaurusCore/Services/Credentials/Consumers/MCPCredentials.swift:51-53 | Packages/OsaurusCore/Services/Keychain/ToolSecretsKeychain.swift:300-302 | Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:184-186 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:218-220 | Packages/OsaurusCore/Tools/Handoff/ArchitectInlineHandoff.swift:387-389 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Credentials/Consumers/MCPCredentials.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"60791f6b9358ce76034ef8c4cb1393578687e8872859a87ff5774d20696fa7a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/OsaurusCore/Services/Keychain/AgentSecretsKeychain.swift:25-29 | Packages/OsaurusCore/Utils/Localization.swift:42-46 \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":"Packages/OsaurusCore/Services/Keychain/AgentSecretsKeychain.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadfaa5500ed871dce58ab08a3faaf187e50337f1ce07cf666ae67a42f5b2b12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2773-2779 | Packages/OsaurusCore/Views/Chat/SlashCommandPopup.swift:70-73 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2773}}}],"partialFingerprints":{"codehealthFindingId/v1":"88640071b6d6aceaf6d56c775f987daf2c3280ee6c89e7d79f448c13082f1c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2460-2463 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/RemoteProviderBootstrap.swift:189-193 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":2460}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b2fbcfb1d6120c6cdf80c4b069a4b09049c665c0e137b43adb304061a9cdd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61\u201363 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ChatEngine.swift:1974-2036 | Packages/OsaurusCore/Services/Chat/ChatEngine.swift:2144-2204 \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 \u0060Packages/OsaurusCore/Services/Chat/ChatEngine.swift:1974\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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0dedf91b739999a858787c0bccff57d2b74825e5faf5c8fb99599c55c4fda25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:137-195 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:615-673 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:615\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4d723804f5b9386818b0f8b13dc4de928700453b6b2cdfcb2cd9735531b863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime.swift:4865-4917 | Packages/OsaurusCore/Services/ModelRuntime.swift:4967-5019 \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 \u0060Packages/OsaurusCore/Services/ModelRuntime.swift:4865\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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":4865}}}],"partialFingerprints":{"codehealthFindingId/v1":"6080e9bc31813966aa8aaf54127b1cec9dff95cb80f6e7c7b73498b3e6b54871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:602-653 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:822-873 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"4358746b6ab49038038008e618ccb9d62456161e4be752f322c7ba44b307dca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201351 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:740-790 | Packages/OsaurusCore/Storage/MethodDatabase.swift:166-199 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:740\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:792\u0060 calls \u0060DEFAULT\u0060, \u0060datetime\u0060 and \u0060Packages/OsaurusCore/Storage/MethodDatabase.swift:199\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"614c79213b5da1b8423c6e953650c254f236ba60a5ad5d073b37c5470fb83cb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201349 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:1114-1162 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:1675-1721 \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 \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:1114\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd410f5b16ef80dd91b2e7c5cf4ef638da9e5f98169475490bd8afdd3de90ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:132-177 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:150-195 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:132\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"04233bfcc98a24d1867d8310cbd0493ec91bd201fc3b1f7121f4451dcc3eb256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:553-597 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:773-817 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"7280fc09986993cfc361c084c8440818794e67abab56afa97b6b9d9945f6e196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime.swift:4919-4962 | Packages/OsaurusCore/Services/ModelRuntime.swift:5021-5063 \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 \u0060Packages/OsaurusCore/Services/ModelRuntime.swift:4919\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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":4919}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffc9dde4b747ee3f28396be6793a7ed3a9d80e8641f761bd6e43548fc0a0096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:519-561 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:901-942 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"852f16fbfa8d9cc40ccedb9026fc42a954c3643f98aae4fa0594ee5ed0cc17a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1067-1109 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1177-1219 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1067\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, \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1221\u0060 calls \u0060sendReadReceiptsIfEnabled\u0060 and \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1113\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"f036a795e35d4b0f0a672203b19711332029f8a7544644b3383416cf68e8896c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1028-1070 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1979-2021 \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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3f73dae11020e4d1e6ba216d3e7a7e11541fbab4596537cfdd2cecae5c2e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201341 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:385-425 | Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:448-483 \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 \u0060Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:385\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:446\u0060 calls \u0060OSAScript\u0060 and \u0060Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:383\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":"Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"104adbf22578344a2b11e89d09703fbf19f9147bc196fb25b7c4c23b3351954e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:703-741 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:904-942 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"1254b8195a207313df12951b14980767a0e52f486ee98d5f1a3786ebe6f217f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1137-1175 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1241-1279 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1137\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"503487becac2e6960ef26b8103b701022b80394fbeb02c1e4f695399be7cc583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): Packages/OsaurusCore/Tools/AgentChannelTools.swift:111-148 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:183-220 \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 \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:111\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":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ac055d6d0b5fa75676c06b6e12bf299675e7e57571fe6cf455abde7871033d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201338 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:673-710 | Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:942-976 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:673\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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeac4decb0beb37c07563b1628d68be0de060ab96e69e7efbd7dec20323f176d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/Skill.swift:171-207 | Packages/OsaurusCore/Models/Agent/Skill.swift:337-373 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Models/Agent/Skill.swift:171\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":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c99fe1a95665ca8febcd89f1b94eaacb1b2e20092a97c0c669244b4f9ac662b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): Packages/OsaurusCore/Subagent/SubagentSession.swift:807-843 | Packages/OsaurusCore/Subagent/SubagentSession.swift:873-909 \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 \u0060Packages/OsaurusCore/Subagent/SubagentSession.swift:807\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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8c79ea58ef923308da8d962b16b6ad1030a0420a292ac41b6d681024bf8c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3): Packages/OsaurusCore/Models/Agent/Skill.swift:126-161 | Packages/OsaurusCore/Models/Agent/Skill.swift:293-328 | Packages/OsaurusCore/Models/Agent/Skill.swift:382-417 \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 \u0060Packages/OsaurusCore/Models/Agent/Skill.swift:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"278357d3efc08afd5ada476ad64a2d8fda3aa97f13aee3f9a274024c47cd63da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift:129-162 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift:190-225 \u2014 before extracting anything, compare \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift\u0060 and \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift:129\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a70f34498a8cf60b263707d85207e0dd0900a6da634a8e7e6c955322566b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201335 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1245-1266 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1399-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1245\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c652e41fc1deba70a0c4cd7f88b32423264e7ca2e214ea275b26160306c4adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201334 lines \u00D7 8): Packages/OsaurusCore/Models/Agent/Skill.swift:153-168 | Packages/OsaurusCore/Models/Agent/Skill.swift:199-214 | Packages/OsaurusCore/Models/Agent/Skill.swift:238-253 | Packages/OsaurusCore/Models/Agent/Skill.swift:258-291 | Packages/OsaurusCore/Models/Agent/Skill.swift:320-335 | Packages/OsaurusCore/Models/Agent/Skill.swift:365-380 | Packages/OsaurusCore/Models/Agent/Skill.swift:409-424 | Packages/OsaurusCore/Models/Agent/Skill.swift:429-461 \u2014 all 8 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 \u0060Packages/OsaurusCore/Models/Agent/Skill.swift:153\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":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d353c5a807876c5499422706b23a38f3141001ef4a689c5f608be2eb1eebaff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:652-683 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:337-370 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:652\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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b45f49368bf1c72f7600bb52f99ae994e105efe30639b601e5797d53d3ec571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:9607-9637 | Packages/OsaurusCore/Networking/HTTPHandler.swift:9853-9885 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:9607\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9607}}}],"partialFingerprints":{"codehealthFindingId/v1":"7095bbcfae6fb567c9639a2671273c41c9574d14e0882fcc8de68dea778cab9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (87 lines \u00D7 2): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:632-718 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1041-1127 \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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"452e089bf73aac6bacb1a0e8984717e131a740e18eba60e57bf03e74663beb80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:890-922 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1078-1110 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad95b8c2cbc9ac17e5690af35223bcdacac4dcb2d4e4980fdd170b8cf46965a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:743-775 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:944-976 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"2821bbd0a7072d780af5e8bc7c934e91bc4267a8e39c6f76fbc04478ec078fdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:992-1024 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1943-1975 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:992\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s16\u0060 in one and \u0060theme.space.s0\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64f2d6bb67d61345a2c6c554dd664476801de2414b68b2b163cea0127333c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:636-668 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:773-805 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:636\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa470d302f4eb1a4e169822056d9c975f2b11fe51c9581a7adcd41baf249ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:255-285 | Packages/OsaurusCore/Services/HuggingFaceService.swift:964-994 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"48df3f20b0f2e978367cf9414fae2bf420c25250bb19322939a0a55350ed855f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): Packages/OsaurusCore/Services/Inference/FoundationModelService.swift:336-366 | Packages/OsaurusCore/Services/Inference/FoundationModelService.swift:534-562 \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 \u0060Packages/OsaurusCore/Services/Inference/FoundationModelService.swift:336\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, \u0060Packages/OsaurusCore/Services/Inference/FoundationModelService.swift:533\u0060 calls \u0060LanguageModelSession\u0060, \u0060makeStream\u0060 and \u0060Packages/OsaurusCore/Services/Inference/FoundationModelService.swift:336\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":"Packages/OsaurusCore/Services/Inference/FoundationModelService.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbf9e10232565cdd388225726da4da54740fd7abcb215d4093dc722421a748e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:16101-16130 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16386-16415 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16101\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16101}}}],"partialFingerprints":{"codehealthFindingId/v1":"525964a7925b680095e4e6e74c7c87cb441659e4631d5b1bc730b1a5072440dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:956-985 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1904-1933 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:956\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, \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1936\u0060 calls \u0060VStack\u0060 and \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:988\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"7701c2bf8f9e8d71cc8f65c32946937e00297313d77465b343edf740fa0d69f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201329 lines \u00D7 3): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:57-76 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:82-101 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:179-207 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift\u0060 and \u0060Packages/OsaurusCore/Services/Skill/SkillSearchService.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 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 \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift:57\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:209\u0060 calls \u0060processPendingIndexEntries\u0060 and \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift:78\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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6184ba6b6a774ed25bc76a3da1710787df09d50e38a3b2a895d259bc467bb229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/DispatchRequest.swift:194-222 | Packages/OsaurusCore/Models/Chat/DispatchRequest.swift:239-267 \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 \u0060Packages/OsaurusCore/Models/Chat/DispatchRequest.swift:239\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":"Packages/OsaurusCore/Models/Chat/DispatchRequest.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1b6e531642b1fa4d5b501b7238eac80ce01b0b0649216b80c2b47c09aa09f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:16071-16099 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16356-16384 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16071\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16071}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf82ab158acd0e949eaa8cf4faa90733ef11f98efef82974d0c2cc98d9965ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1038-1066 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1145-1173 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1038\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea602964eb9ded8ed0239f7ffb5e531c18354c70244679ac2b60410781ae3fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatView.swift:13144-13172 | Packages/OsaurusCore/Views/Chat/MessageThreadView.swift:124-152 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/ChatView.swift:13144\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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":13144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24fc9579af95ccb53c6ef6055e7811d044a3a0b09e205277b4bf678413786c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift:32-60 | Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:35-63 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 72 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 \u0060Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift:32\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":"Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b4d7c8803da65519864a298f5e77efe509343b19f82009a21c42e596293085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:122-149 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:127-154 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:131-158 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:131-158 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"825d2581cad1a97f9f0f1112c639e6f8158977de70b0d2a083d08bdba5bb5e69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:134-161 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:116-143 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:134\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":"Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca2a6da2a1ef0b601c80eece08c1be77dec6ed4519603592b13ca15aa593cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3917-3944 | Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift:1262-1289 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3917\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":3917}}}],"partialFingerprints":{"codehealthFindingId/v1":"b094f49f9bde0e1e7cde01757a70b109df3a076c43ecdd0a4e0de20a1ddf639c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:238-265 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:340-367 \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 \u0060Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:238\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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f1eeb5497142f802eee8b19ea7b0d13ad1582b7308d0c7446a41517c9fa560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:300-327 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:282-309 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f47d0b6f7e2a2cd8738112ab39a9e626a1e844b42bea09748333aede9871829"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): Packages/OsaurusCore/Subagent/SubagentSession.swift:730-756 | Packages/OsaurusCore/Subagent/SubagentSession.swift:769-795 | Packages/OsaurusCore/Subagent/SubagentSession.swift:969-995 \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 \u0060Packages/OsaurusCore/Subagent/SubagentSession.swift:730\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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f43c5580bbb4f68281180e5d07d6f306fcc88329cf50fa7f8950de3ee7e4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:458-484 | Packages/OsaurusCore/ComputerUse/Driver/Mac/InputController.swift:185-209 \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 \u0060Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:458\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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b688622e18c43aeec0c6e3858970b3e13bc5e5eb2a6f83bb9475cd4b1f9a02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:681-707 | Packages/OsaurusCore/Networking/HTTPHandler.swift:743-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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:743\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"e435b3d03f883fa6062b14fb6d1896e0a4ec6aa6a37d77cedab0dcb16a2fd1a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201327 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:13659-13685 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14418-14437 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13659\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13659}}}],"partialFingerprints":{"codehealthFindingId/v1":"4becc77c4c3a1f37badabe5553da8b16ced665a49a5a12dbc893546693488399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:18087-18112 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18868-18893 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:18087\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18087}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4db93c052090fe8664afbab64506bf178bf11e54aab8891fa3449eb4a7495c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:18270-18295 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18301-18324 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:18270\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e535b589a7515ecaa4afca7274468b19758bb834eab78dfe731847236f0b9f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatView.swift:5958-5983 | Packages/OsaurusCore/Views/Chat/ChatView.swift:5987-6012 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatView.swift:5958\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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":5958}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78f959c07183528f5c60a93fc2a24d2b06203391731791765f54f82cd136f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:137-162 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2482-2503 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1ca1be5e73d46bd86f42f0823a1b461c4f76329a91bce4d0871a065b428589"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:608-633 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:745-770 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:608\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"088f2904013f2c7c10b20c1eb32f569616e90226dded59e0fdbc3b4d512cb227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 7): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:928-952 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:849-870 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1287-1311 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1735-1759 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1241-1265 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1116-1140 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1391-1415 \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 7 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1735\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060timedOutWaitingForMore\u0060 to \u0060Bool = false\u0060 in one and \u0060Bool\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d39d3b0d6e772ad753e4cd343f2464066acbd46f77e8557244b6c572dce4dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:1835-1860 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1906-1931 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16882-16907 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:1835\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"db618f60022f25f043f2bea629cb50c54e350a4507eac8e37b0984028fe2dd67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift:40-63 | Packages/OsaurusCore/Views/Settings/ConfiguratorSettingsView.swift:41-64 | Packages/OsaurusCore/Views/Settings/OrchestratorSettingsView.swift:52-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift:40\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, \u0060Packages/OsaurusCore/Views/Settings/ConfiguratorSettingsView.swift:40\u0060 calls \u0060ConfigHistorySection\u0060 and \u0060Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift:39\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":"Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16a724a1708cf8a4eca0033592fb33bc4f43d0500f8c231236a8cbca99b6016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:132-156 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:140-164 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:149-173 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:132\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":"Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79c71e5c6ab1cf839b717540bc81fc5e5e1696b15133027b85fbc9dacd13fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ChatEngine.swift:2040-2063 | Packages/OsaurusCore/Services/Chat/ChatEngine.swift:2067-2091 \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 \u0060Packages/OsaurusCore/Services/Chat/ChatEngine.swift:2040\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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"319dbbc38c29c32b6edde7f6966d7ebcecf75eb57b73d3261a82388b7416284c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:549-573 | Packages/OsaurusCore/Services/LocalReasoningCapability.swift:725-749 \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":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c86008c46403e887b91b32243153b7fe9969d1975eac21c85f219466d83bb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:2396-2416 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2420-2444 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":2396}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc80b63eac4adcb8bc2ff9f798e9995183c1bc7c7913ea98b7953be6a5f9261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201325 lines \u00D7 2): Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1325-1349 | Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1415-1434 \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 \u0060Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1325\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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"2601e9d698629a600635e9268a87c46f8cf50b2aa865ee7a225cd5205285511c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift:781-805 | Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift:868-892 \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 \u0060Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift:781\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":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dad0f93e3694c445e4a84e77cfdc2104b8d672c6e57343963dfbd74092038b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201324 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:13670-13693 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13708-13725 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14427-14444 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13670}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3a2cdcdc93f6bfd29de2a8c21dbc7dd13f1d210a54ab0236fd5a3891dac2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1922-1945 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7784-7807 \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 \u0060Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1922\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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1922}}}],"partialFingerprints":{"codehealthFindingId/v1":"7061c82f87e8c15ad1d996d1b23c0f2311890fcc3a2e83de264b627a673c936d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/ChatTurnData.swift:325-348 | Packages/OsaurusCore/Models/Chat/ChatTurnData.swift:372-395 \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 \u0060Packages/OsaurusCore/Models/Chat/ChatTurnData.swift:325\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":"Packages/OsaurusCore/Models/Chat/ChatTurnData.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b38c4933e207e27b16094ff7e50158379ab7a086912d03a92efd14cbd4ff7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:257-279 | Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:394-417 \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 \u0060Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:257\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":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed84d3e991b45a01f2f818aff2ff9db0a88f2771430d5e14b0f0d4a0fac4dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Packages/OsaurusCore/Storage/AgentDatabase.swift:1611-1634 | Packages/OsaurusCore/Storage/AgentDatabase.swift:1688-1711 \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 \u0060Packages/OsaurusCore/Storage/AgentDatabase.swift:1611\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. 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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"9866a8e8c2efbe01ed68e9611e07e29e0ab6827764552cecd62732f0f290b291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): Packages/OsaurusCore/Tools/SandboxSecretTools.swift:38-58 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:149-172 \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 \u0060Packages/OsaurusCore/Tools/SandboxSecretTools.swift:38\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":"Packages/OsaurusCore/Tools/SandboxSecretTools.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8eaaed4d0c037b12ed6d2e91272ef91b759b3eb36ea4dd4dfe6559d13b310b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201324 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:582-601 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:288-311 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c18c5760b61692d9e7ec981d27678eb2b335f4deba81a5c83f9c3a5da0d161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift:77-100 | Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift:143-164 \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 \u0060Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift:77\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":"Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"09efa96f6f39d17aa66308908562d53e615ec397d1fd5a1188105f9163dbad75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:119-142 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:110-133 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:119\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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"077d98667911bf044a19add49f43b52bed31f6acc1af4a8e03eab3219f5c855a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:203-225 | Packages/OsaurusCore/Services/HuggingFaceService.swift:919-941 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1952a42ac5b730a705b1524698239db6503971b5dd1a753b7a79308b5fa4f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201323 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:2149-2165 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2183-2205 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:2149\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. 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d229f387ec158bbd01c5f0bee17707b76156318d0ed81dbdef884348f38a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:8812-8834 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8930-8952 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:8812\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8812}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7d950b3c99963f1c8ca1c6173fbca0f6599c2643c7e8ac594c301d63fc666a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:12315-12337 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12354-12376 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12315\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12315}}}],"partialFingerprints":{"codehealthFindingId/v1":"671eb01759d7026f9059b799914d6bda47c63eaac22bfc5e253d1608ce961019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ChatTitleService.swift:88-110 | Packages/OsaurusCore/Services/Chat/FollowUpSuggestionService.swift:117-137 \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 \u0060Packages/OsaurusCore/Services/Chat/ChatTitleService.swift:88\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":"Packages/OsaurusCore/Services/Chat/ChatTitleService.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a34357beb434e66446695e8938fae7fd98c60b2f62e1c0860de7e790e290c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:916-938 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1290-1312 \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 \u0060Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:916\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fc8ff7b624f491d37ed762b411bf43e51983b8f0e503266b50883fd1da0ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCore/Services/MobileConnect/RemoteSecretPromptQueue.swift:50-72 | Packages/OsaurusCore/Services/Sync/SyncSecretPromptQueue.swift:75-97 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Services/Sync/SyncSecretPromptQueue.swift:98\u0060 calls \u0060post\u0060 and \u0060Packages/OsaurusCore/Services/MobileConnect/RemoteSecretPromptQueue.swift:73\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":"Packages/OsaurusCore/Services/MobileConnect/RemoteSecretPromptQueue.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67c42255f1bfdafe425583680da911db8e05554aaf4f678ef5f131aeb2f177d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:649-671 | Packages/OsaurusCore/Storage/TaskDatabase.swift:230-253 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:649\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ebb64bceeb7e5f5ab1a158b0951c3b996f9836aff8f653a58d57a5f0fe904e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseImport.swift:222-244 | Packages/OsaurusCore/Tools/Database/DatabaseImport.swift:328-348 \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 \u0060Packages/OsaurusCore/Tools/Database/DatabaseImport.swift:222\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":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f09b0edf7567c4cf08e2e7868d55f7af2379a1b8d2c0d0e7c6c5036e303df94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:252-274 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:893-915 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:252\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f0114fc7679bfcc148e168130fb1730d9ebdec79f2906fcf2adc1bc79c5a4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201323 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift:961-972 | Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:1622-1644 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift:961\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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a4b099f35b81325c8b01fb194f0a6558aa67bb4719e9f610a9302c2c03f3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:616-638 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:1244-1266 \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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27575d78a790e9ee73f6b2172dd6ed9e698ff22bb03732fe50d813563d7f57d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1983-2005 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2870-2892 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9bed6db684708682ce246cf27f66b143415abfe845b0da34d78e8eb756e1a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:197-219 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:285-305 \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 \u0060Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:220\u0060 calls \u0060frame\u0060 and \u0060Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:306\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":"Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0678910991a9d95dbf18a3cd30bcee7f6e38cff4e20028595618dae63ec8b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift:263-285 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift:183-205 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift:263\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4503763f5afbf4256c28560f72df1bb8c5f77ad16f4144f20770b7f02d0e3ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:6409-6430 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8454-8475 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8478-8499 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:6409\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6409}}}],"partialFingerprints":{"codehealthFindingId/v1":"207a259d2d35048257d2de8518a256b6439690e19987bc1e7589524ae3f93158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 3): Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:142-163 | Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:496-515 | Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:836-853 \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":"Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"27762cffa46818efb5b151516437aaa8fece14d404e5d5d17cdcaaeb9437c76f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:310-331 | Packages/OsaurusCore/ComputerUse/Driver/Mac/InputController.swift:66-86 \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 \u0060Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:310\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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83d552c4abb348add08c4542630c3bc72ce69fa42e81fb940239c8bf339cce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Packages/OsaurusCore/Folder/FolderTools.swift:2834-2855 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2299-2320 \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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":2834}}}],"partialFingerprints":{"codehealthFindingId/v1":"7526d0da084502a8e50a9b26c1a1d67de14492df49c15047146db4beaa1feb48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1744-1765 | Packages/OsaurusCore/Models/Configuration/RemoteProviderConfiguration.swift:349-370 \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 \u0060Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1744\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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df1db2f98f215a4a4d1f6cec2a239621481f60728e88e3e3d85d59449de6cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/AgentStore.swift:636-657 | Packages/OsaurusCore/Models/Agent/AgentStore.swift:672-693 \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":"Packages/OsaurusCore/Models/Agent/AgentStore.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"f856b9e2c133a4e7229a42f85ccd050baa5e1439530a9dbfccced54546134d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:12539-12560 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13042-13063 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12539}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81bb910da62aef2053aadc35c6bd3fcfa2daf76a7e25d80df5589b5c56fe736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:14854-14875 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14902-14923 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14854\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14854}}}],"partialFingerprints":{"codehealthFindingId/v1":"470e3d025aeb0a516d48a7faf278f4a59b50d2dd7a1d324acb62b01439283054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:15327-15345 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15351-15372 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15327\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3f43cb9ac4f8382d8c1cf9fc5d555ef7b9b674914c857470a8b98c036c1ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1767-1788 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1794-1815 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d683ef59d01d183e3f608742ed360093fd7dc95cc7aa35940d8ab717d2c9644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift:1751-1771 | Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift:1910-1931 \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 \u0060Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift:1910\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":"Packages/OsaurusCore/Services/Chat/SystemPromptTemplates.swift"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"67575145dd39386d474faa14d439c4e78d972f851cfa8e733fbef4aec67c6224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:643-664 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:836-857 \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, \u0060Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:666\u0060 calls \u0060validateCompleteOutput\u0060 and \u0060Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:859\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd0f2643e13655a393b071d669d4673ffcee398b4262b5f36cd48e34ac13c6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201322 lines \u00D7 2): Packages/OsaurusCore/Subagent/SubagentSession.swift:947-968 | Packages/OsaurusCore/Subagent/SubagentSession.swift:1082-1097 \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 \u0060Packages/OsaurusCore/Subagent/SubagentSession.swift:947\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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9c67b425731bf8950b09998001cdee9dbdda1a43b48699106f6daf26ca1f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): Packages/OsaurusCore/Views/Common/SimpleComponents.swift:117-136 | Packages/OsaurusCore/Views/Common/SimpleComponents.swift:187-208 \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 \u0060Packages/OsaurusCore/Views/Common/SimpleComponents.swift:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Common/SimpleComponents.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a274166729772fee775aee8d453bc9672c9a4b95ac0ada708b10ad63c9d736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:731-752 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2429-2446 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:731\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e18f31b342c4c3c9b2ec0ef797a325f88c21f0b3cb316a79fa754db02e9358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:748-768 | Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:1629-1649 \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 \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:748\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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82f9b6c12a6407eb1d4d3e977dcecace6428743ad680e88bda6fca4929d5722"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Packages/OsaurusCore/Managers/SkillManager.swift:1035-1055 | Packages/OsaurusCore/Managers/SkillManager.swift:1067-1087 \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 \u0060Packages/OsaurusCore/Managers/SkillManager.swift:1035\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, \u0060Packages/OsaurusCore/Managers/SkillManager.swift:1066\u0060 calls \u0060deletingLastPathComponent\u0060 and \u0060Packages/OsaurusCore/Managers/SkillManager.swift:1034\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":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"040de77e416a6160af3936dfc51c573221dd18bb9409631c02629d907e441338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:5727-5747 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6560-6580 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5727\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5727}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8f8dc5b875bbf54062bbe401ee7de78caa64bda05eebde88979ce3fb939075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201321 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:9963-9978 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10068-10088 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:9963\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9963}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9b2cac75563f3213b0d7b6ced7ef74850c771d38d2ec343bdf94c5d364c21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1552-1572 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1610-1630 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1552\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fb5e9aaeba2e2837d9889d8ed35e4fd5372350a3f4cdcb5393d75097f60d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:257-289 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalTranscript.swift:152-184 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:257\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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad253fe36faa8994a201e73ef27deeed8936b8859cefbd4d75555ee8ed775a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:357-377 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:439-459 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:439\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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d966d0989959670f434b40faa2bd3eef2c809319c91f4d990bbf94acf0ebac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:188-208 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:167-187 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:188\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":"Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0901ee077e06e7e59ac3f652e5bf3ebca1080edff883f2f2c001918079aa384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Packages/OsaurusCore/Storage/AgentDatabase.swift:928-947 | Packages/OsaurusCore/Storage/AgentDatabase.swift:1010-1030 \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 \u0060Packages/OsaurusCore/Storage/AgentDatabase.swift:928\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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"802b405acf95e3804a997e2033c2abcf996d3b6f59e1811cec9307bf4c55b8c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201321 lines \u00D7 2): Packages/OsaurusCore/Tools/SandboxSecretTools.swift:220-240 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:266-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Tools/SandboxSecretTools.swift:220\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":"Packages/OsaurusCore/Tools/SandboxSecretTools.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"1541acc6e1ffa4f405ccf2d2df5bc732e4ff819542ba4ab99043fd930964750a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:298-320 | Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:1509-1531 \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 \u0060Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:298\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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac91920684b69f140838021c1cac781d8c53d7190e5fd6446cf393c4fceb128c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:103-123 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:121-141 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:103\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b887496530d3c70260b12e65ccfe550ec02393a5bd3e1391a4d3d04864a55e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:566-586 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:736-756 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:566\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbfc37d57764b4a95fbe0d150b23e3df2d2cece1b0d51903bf672a72522f43c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ProvidersView.swift:865-882 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:901-921 \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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0c99e4c1bff7ff2ad0c0bca06d590631501f57c521196e1a9066c346d9a12b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ServerView.swift:1572-1592 | Packages/OsaurusCore/Views/Settings/ServerView.swift:1713-1733 \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 \u0060Packages/OsaurusCore/Views/Settings/ServerView.swift:1572\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s8\u0060 in one and \u0060theme.space.s6\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":"Packages/OsaurusCore/Views/Settings/ServerView.swift"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f3bef65f720390614543cb7006d8b6dde7c9f8a319dea52dcd57c835a5f660"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201320 lines \u00D7 5): Packages/OsaurusCore/Networking/HTTPHandler.swift:6897-6916 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7051-7070 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7799-7818 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7979-7998 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8061-8074 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:6897\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6897}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d959e75c680aac7d34a0c7885d4328efe4f6c8929c1d333dd11f1e3e6909c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:1839-1858 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1910-1929 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2050-2068 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16886-16905 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a97df1e3746c35553023c73666a0f86bbf23adf631841d005d8135687e9d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:2111-2130 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2146-2165 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2180-2199 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:2111\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2111}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a14727ded39177fab763ac958922f0389cf070bcdbf8a599e1018000de1ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 2): Packages/OsaurusCore/Folder/FolderTools.swift:2897-2916 | Packages/OsaurusCore/Folder/FolderTools.swift:3822-3836 \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 \u0060Packages/OsaurusCore/Folder/FolderTools.swift:2897\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":2897}}}],"partialFingerprints":{"codehealthFindingId/v1":"94158c033cffc1af66129ef8e97e08ff3458c0c68d19c71f77200f7250537f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): Packages/OsaurusCore/Models/Event/ScheduleTiming.swift:110-126 | Packages/OsaurusCore/Models/Schedule/ScheduleRunHistory.swift:310-329 \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 \u0060Packages/OsaurusCore/Models/Event/ScheduleTiming.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Event/ScheduleTiming.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e246297f44b894c8f60244bbe48f6a53300ea00e2e82a947464945368ba203f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift:975-994 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift:1009-1025 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift:975\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf85d2deb08e499b649e592b94de44a35e08089593f6c6cf64c7a0e49094fa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:1013-1032 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1676-1695 \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 \u0060Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:1013\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49a4c1438d7021c0d56396603f39b665163a72e2714fab02555b23554c50726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201320 lines \u00D7 2): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:2174-2183 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:2253-2272 \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 \u0060Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:2174\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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbedacc88da598d19afe88eb55949ab26f83cb83829acbbf2532adcbb1a8662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Packages/OsaurusCore/Subagent/SubagentSession.swift:397-416 | Packages/OsaurusCore/Subagent/SubagentSession.swift:482-501 \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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdecf8280662fcf16ac131a4d1471bb214ce62e1b76168eae1c484620fd1d3f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1020-1039 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1659-1677 \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 \u0060Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1020\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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1761f81350dbead9c65b225278e30cca7047b4fad9f9607073dc59dc08baf35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/CapabilitiesTableRepresentable.swift:142-161 | Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift:190-209 \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":"Packages/OsaurusCore/Views/Agent/CapabilitiesTableRepresentable.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dcb290fc1d848f7f566cd8f989f37577fe66ca1c21adc3a772221e4110c72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201320 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift:293-312 | Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1604-1617 \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":"Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d99de6fe05ce66196d251e7e8256d2952369eebaeb0e45d2bd83bea2b009794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift:64-83 | Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:67-86 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 72 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 \u0060Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift:64\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":"Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f24deb1d850b37e97903b26f68ad89cd181a2842b455fc0630911bf3b482076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:312-331 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2586-2605 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:312\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a1a60c0165abf95693302c1a5d34eb3b55d62254a24bb1aac16aeac9adb915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1674-1693 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2032-2051 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1674\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec84527c3f4c2641d73b03eaa2d2e6c15d57b776024016d2a9dc4ece33dfa1ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201319 lines \u00D7 5): Packages/OsaurusCore/Networking/HTTPHandler.swift:10260-10278 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13587-13599 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16962-16980 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17070-17088 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17405-17423 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10260\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10260}}}],"partialFingerprints":{"codehealthFindingId/v1":"260c4e8157d3892c965ac4d170fd3d9373567c2123c6a3733ef08287fca87b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:145-163 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:146-164 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:159-177 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:163-181 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"860744d62fc06a386e0a27bd6f1683a7714bf013bc368318d350a98e441a8ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Packages/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift:315-334 | Packages/OsaurusCore/Services/Chat/GroundedFileSideEffectCheck.swift:144-163 | Packages/OsaurusCore/Services/Chat/GroundedKnowledgeClaimCheck.swift:195-214 \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":"Packages/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2ca6d0bb5d3cbb0867fa661e75cf7f9d7bed3d64a83d802139f9c9c58de795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1073-1091 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:801-819 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1169-1187 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"891258a905ed558ea3d7a660fde60be5afedbb82f77c5a6fe3372a4408f62c15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1144-1160 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:876-894 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1248-1264 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1144\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfac2f9d0b3c6f2a458a7ae1f7f0aa634e3fc9208ad47590b81273142ec6274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201319 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift:201-219 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:629-637 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:766-774 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.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. 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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"902205f95fb267cf93cee4f3bfe654269a31097d86a283c1da90542d732f786d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:325-342 | Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:376-394 \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":"Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f12f05162a89ca9a0eb61deb440556261027c70ea9a9efc00ad4b2525eeee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift:596-614 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2594-2610 \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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6794d7bbbe8a8f677f93c8d15ce1c9f1a4427c8b1b65d60a01e0888e85cd0c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201319 lines \u00D7 2): Packages/OsaurusCore/Managers/MCPProviderManager.swift:1593-1611 | Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift:409-419 \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 \u0060Packages/OsaurusCore/Managers/MCPProviderManager.swift:1593\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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb13a8f3312ed7cc8a01f392352f08e99d98186801a8cbedbe5c56f9146a59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift:650-668 | Packages/OsaurusCore/Tools/ToolRegistry.swift:117-135 \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":"Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c9af7724d8b2dacc7eb1d6b8eeb412c9c6a94bc9acdced2b607039f32f8523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:3169-3187 | Packages/OsaurusCore/Networking/HTTPHandler.swift:3209-3227 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3169}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a744e5650669408f7581eabc8632450ca938859de9e1631c6515e0552d7feb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:4749-4767 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17469-17487 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:17469\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4749}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fe81f020eb642035ba9640a16e0e5f1aa05a5dfc73e465dd7a54db28cf43e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:7376-7390 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8873-8891 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7376\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7376}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d835435277efb33e846ebd45c1bec9c2a81bd9e26da214b9aef9f080becec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:10636-10654 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10659-10676 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10659\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10636}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1458045e1666889c1a81dce78f02bce95234c7e07cfaf2daa7ee5dc8938cbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:16048-16066 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16334-16351 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16048\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also 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. 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16048}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de7c5c52361c39fe0e0d8b39f5bcff48f91b92a38e19ac3888e2fb0f2a6e86e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:17231-17249 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17260-17278 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:17231\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17231}}}],"partialFingerprints":{"codehealthFindingId/v1":"355b78c72fdf0385a7a39141b20f5106484c253f9f39093d50423bc82f7d99c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201319 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:15177-15180 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15776-15779 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18188-18206 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18943-18961 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:18188\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15779\u0060 calls \u0060HTTPHeaders\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15180\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ef786e571b37e7880ae699f1a600e092c6330755df04f65d284e0504f3c50e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ChatEngine.swift:1943-1961 | Packages/OsaurusCore/Services/Chat/ChatEngine.swift:2125-2143 \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 \u0060Packages/OsaurusCore/Services/Chat/ChatEngine.swift:1943\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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1943}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e196b33ec8fdda2946a4d72b8e8b2937bd47b9b01bf4ebb1b684a850cdc1d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/GroundedFileSideEffectCheck.swift:117-135 | Packages/OsaurusCore/Services/Chat/GroundedKnowledgeClaimCheck.swift:166-184 \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 \u0060Packages/OsaurusCore/Services/Chat/GroundedFileSideEffectCheck.swift:117\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":"Packages/OsaurusCore/Services/Chat/GroundedFileSideEffectCheck.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c4dabc91e7e9accf92a6d0821c617d18a2a040d67cdc039d2707b1cc985a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:1092-1110 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:1656-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:1092\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"167d4a64120086b1d6b6ba200d3e797a9decd8cd62f6eec60477aa81b4543a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:199-216 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalTranscript.swift:109-127 \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 \u0060Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:199\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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"48521d4afc4ae682cfb122f959e76ef81e1adde75a9ad883533524fa06f00e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:266-284 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:161-179 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:266\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, \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:182\u0060 calls \u0060sameTeamTrust\u0060, \u0060verified\u0060 and \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:285\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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1f4214e4a04e1f229e80f5c2979d57221ac519a5dbd2b368c177997ff6c65b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): Packages/OsaurusCore/Services/MCP/MCPElicitationPromptService.swift:228-242 | Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:896-914 \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 \u0060Packages/OsaurusCore/Services/MCP/MCPElicitationPromptService.swift:228\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":"Packages/OsaurusCore/Services/MCP/MCPElicitationPromptService.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"6145ea38ece750c8536c07c273fcfe245c0ea9a11ed9e9da1effe55ed592bca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1605-1623 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:2008-2026 \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 \u0060Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1605\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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"920d282bc47826bfcf2827d080e4531b6545d07a24c69544255128a12b9e7a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): Packages/OsaurusCore/Storage/AgentDatabase.swift:1108-1126 | Packages/OsaurusCore/Storage/AgentDatabase.swift:1270-1286 \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 \u0060Packages/OsaurusCore/Storage/AgentDatabase.swift:1108\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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8174ba87de5ad73dbf9f471508c3a7b9361798f1ea54ddad69472d311cf736f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3809-3827 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3894-3912 \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 after the matched lines, \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3914\u0060 calls \u0060agentNodeWorkdir\u0060 and \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3829\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3809}}}],"partialFingerprints":{"codehealthFindingId/v1":"91848386531709bfa336b14f0a3e399dfed11c6121a48d205cd649fce890b214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:973-990 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:884-901 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1328-1345 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1294-1311 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1017-1034 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1432-1449 \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 6 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"9304a335c81b56e901bc2c648c1db8cc648c7fc7fec89d80d943ed7a36ea9e8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:95-112 | Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:145-162 | Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:166-183 | Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:187-204 \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 \u0060Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:95\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77d7e3ad1ae0f21c8755eb16407857e378fd78ec818dd82ddb3cf61183d7b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:143-160 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:131-148 | Packages/OsaurusCore/Storage/TaskDatabase.swift:183-200 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:106-123 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:143\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":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41e459478265873936de9a4e5e978422f3cf515eb10fa3d661f5d8d02ad9b04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): Packages/OsaurusCore/Subagent/SubagentSession.swift:685-701 | Packages/OsaurusCore/Subagent/SubagentSession.swift:845-861 | Packages/OsaurusCore/Subagent/SubagentSession.swift:912-929 | Packages/OsaurusCore/Subagent/SubagentSession.swift:1034-1051 \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 \u0060Packages/OsaurusCore/Subagent/SubagentSession.swift:685\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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1107e5eb1a4488f19f2614b0cb67d582594b2c561b638c10cb91ef1175d728"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Packages/OsaurusCore/Services/Chat/ChatEngine.swift:867-884 | Packages/OsaurusCore/Services/Chat/ChatEngine.swift:1987-2004 | Packages/OsaurusCore/Services/Chat/ChatEngine.swift:2155-2172 \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 \u0060Packages/OsaurusCore/Services/Chat/ChatEngine.swift:867\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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"113458312850a8b8983027d589ab8564a4f14ea2cff6d437afd81947e08c56bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:262-279 | Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:350-367 | Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:399-416 \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":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e9cc8a7453f8bda1f78988aec2d606c6da987f5634fd920e5b00cd99e51aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:1087-1102 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3501-3518 | Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift:1044-1061 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:1087\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":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a136e7310ca17849d2dc3e0912985f74a9db70d84f2b5f97b1c6722f1028eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift:69-86 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift:112-129 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift:69\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Config.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"764ccf5cc6b14b2f1b5daee54d8672efa052ce42049772d75da6c3cad6fc4cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:661-678 | Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:762-779 \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 \u0060Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:762\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":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9f1aa3cce4f8a99c7d2d1f934fa6dbe85fdd8cdab6af5d86ce870df5ec2320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:346-360 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:942-959 \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 \u0060Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:346\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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb769e815a1b56d9a3385a96479fccfe4be25b96d4138beeef5eecca379bdc2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Packages/OsaurusCore/Identity/MasterKey.swift:405-421 | Packages/OsaurusCore/Identity/MasterMnemonicStore.swift:82-99 \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. 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":"Packages/OsaurusCore/Identity/MasterKey.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59a250e79d75a9698ee5439794301d135d5c911111ada6e429e715f072dc998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:489-506 | Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:617-631 \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 \u0060Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:489\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":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4e57cb14749b5225a10bfa078af018352050fbc926e2e594b7f9f9a6daabed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Managers/HotKeyManager.swift:52-69 | Packages/OsaurusCore/Managers/TranscriptionHotKeyManager.swift:70-87 \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 \u0060Packages/OsaurusCore/Managers/HotKeyManager.swift:52\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":"Packages/OsaurusCore/Managers/HotKeyManager.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1d2fc0a53b4965263f875576fdfffe880ff70b841acc1beaeda9bd3f4c189d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201330 lines \u00D7 2): Packages/OsaurusCore/Models/Theme/CustomTheme.swift:348-377 | Packages/OsaurusCore/Models/Theme/Theme.swift:812-836 \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":"Packages/OsaurusCore/Models/Theme/CustomTheme.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f72529a1b198a8d67cbfff7174763bcbd63e79106c2671226100cdf874d5b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:2352-2369 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2672-2684 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:2352\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2352}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15f5d601ac9bc6c6b83d2c7c1eb57e496b207867ef7af879658bc4486c1d276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:4722-4739 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17496-17513 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:4722\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4722}}}],"partialFingerprints":{"codehealthFindingId/v1":"50558bb454f2479f1f3047eda266ed443b89b418c218315392dc4f01a0f3ba19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:12348-12365 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12394-12411 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12348\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12348}}}],"partialFingerprints":{"codehealthFindingId/v1":"49450e129e45ecf9d3be30ada6a56d6c5fe5ddf6f32ddcaf1211d66055c0cd96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:12606-12623 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12654-12670 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12606\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12606}}}],"partialFingerprints":{"codehealthFindingId/v1":"415c3b993d537751929a36333315decd25ce054d34a9624511351265eeadd2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:14058-14075 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14160-14177 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14058\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14058}}}],"partialFingerprints":{"codehealthFindingId/v1":"b794bee86f11fc253ee9b110a541680c727a0b0b5c8158f0a192bcbf34c74ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:15882-15899 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16179-16196 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15882\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15882}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f7b31c80455cf05c5a4eaac9a97aaa32582a7aa8850580a6459e15e3856ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:16916-16933 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16987-17003 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16916\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16916}}}],"partialFingerprints":{"codehealthFindingId/v1":"01852d9702aa79cc3333b1fa86d901aeb0531e76ecd15307ed828eefa0131ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:18214-18231 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18969-18986 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:18214\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18214}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e3cf613c1fa65f3d775c05d78caab737fdb97df3158b31bfa60546269d3d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/PDFAdapter.swift:801-817 | Packages/OsaurusCore/Services/Documents/RichDocumentAdapter.swift:386-403 \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":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bdc2f1ff53032ce10f2a77ff00a625cc77dbc27c8e35b2c00aac265537518f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1276-1293 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1443-1459 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1276\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"699f52f390c2a2bf91d4504a2066adb6c2c2e35a6690e9ea92c4ae2c1c8f3f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift:291-308 | Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaCatalog.swift:150-167 \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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"720f46f125b8029fcad8a3ed567823c154f7c26867bcc977ca4d9eecb98e47b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:140-157 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:357-374 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift\u0060 and \u0060Packages/OsaurusCore/Services/Tool/ToolSearchService.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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 \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift:140\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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fa8bd6e1d3f777489d5af769476df6039a300e53a9c5c6c105ddbe80b9057a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime.swift:8404-8418 | Packages/OsaurusCore/Services/ModelRuntime.swift:8420-8437 \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 \u0060Packages/OsaurusCore/Services/ModelRuntime.swift:8404\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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":8404}}}],"partialFingerprints":{"codehealthFindingId/v1":"91db50c08f6f7e32d14973006c08f2ea0432a82db8dd0e1388629e11bbbeb770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1571-1588 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1917-1934 \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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ce092fdabc51b301ba3f188404aded0f2f467c5025ba1b00ee511d02af3051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:710-727 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:909-925 \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 \u0060Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:710\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2a9d81101b4537b35295436a0d2fbf275586e11f56401111910049a9b1c8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:834-851 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:859-876 \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 \u0060Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:834\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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"7baf2bdcdb421ce955a6847caf1c357b3cf6e891b2711307d2822d3cb424e551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:343-360 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:458-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:343\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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b89d17f8dc8a5358f1930f863db1432a2cbf8ab342f2f4b40cfa2f43a9e3c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201318 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift:343-360 | Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1642-1650 \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 \u0060Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift:343\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":"Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"91279a2e23c8db33b0be70c01034490fe5b516cc448b28111c9def22c0170e93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:248-265 | Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:307-323 \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 \u0060Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:248\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":"Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1eb5d7da6a689d398b8e62e1e9ee9d614f1d3b6636c91441f61256d1d98774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift:67-83 | Packages/OsaurusCore/Views/Plugin/ToolSecretsSheet.swift:96-113 \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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc98e22c312ff0ca6fa359551d4be62e10bd0aabfd619aadbfdeff469ab07092"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:954-971 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1038-1055 \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, \u0060Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1056\u0060 calls \u0060padding\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:974\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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"da278c37e1375919b1de3f3003c2234088425fbd47fc800dab55343caf549b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:396-409 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:366-383 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d0d530413b7ae42729aa043c50c305aad4c31234d7834978de9a15e8ee39a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:850-867 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1082-1099 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:850\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8f29f317d77dd6aac36dbf21c10be9d1ffc157e7e50e7bd076b135af637d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1219-1236 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1323-1340 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1219\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca7870228b50c860f39f02772469d417f16394d3e86f49a286c195e4bbfc664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1256-1273 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1360-1377 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1256\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee023a145b2797c8959f4e2e7fe66c6e26c16520cfab0ac14bd08ab90db0eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 5): Packages/OsaurusCore/Networking/HTTPHandler.swift:1837-1853 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1908-1924 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2048-2063 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2249-2264 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16884-16900 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:1837\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b182ee54b195e24ac4042e8ec5fc247768cedbf4b7b590e7d78287b498125a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:729-743 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1142-1158 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:874-890 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1246-1262 \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 4 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1160\u0060 calls \u0060diagnostics\u0060 and \u0060Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:745\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":"Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43b5a7c173103768c7f1c9c7f5dff0b9f61d2ff3ee52e47041a07f19a4b5481"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 3): Packages/OsaurusCore/Models/Event/ScheduleTiming.swift:121-133 | Packages/OsaurusCore/Models/Schedule/Schedule.swift:700-716 | Packages/OsaurusCore/Models/Schedule/ScheduleRunHistory.swift:323-337 \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 \u0060Packages/OsaurusCore/Models/Event/ScheduleTiming.swift:121\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":"Packages/OsaurusCore/Models/Event/ScheduleTiming.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5b6cfc3ee82307aa02ea5fb261040ff9a2c3956383376f03365370235bd4d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift:379-394 | Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift:529-545 \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 \u0060Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift:379\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"781e93149df346becc0a044a0bb9354809d07e2ca30cbf1e2cf010a0838a2c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): Packages/OsaurusCore/Identity/MasterKey.swift:282-298 | Packages/OsaurusCore/Identity/MasterMnemonicStore.swift:63-74 \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":"Packages/OsaurusCore/Identity/MasterKey.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"287e7d60bd9c8e17ef29bb885f7f5e29841f3fd8534fd63b1f5370877514ea2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Managers/BlockMemoizer.swift:425-441 | Packages/OsaurusCore/Views/Chat/MessageThreadView.swift:93-109 \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 \u0060Packages/OsaurusCore/Managers/BlockMemoizer.swift:425\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":"Packages/OsaurusCore/Managers/BlockMemoizer.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b78101a0325e99c5714578b643e9381441f1eefee9376413c0c02ba001420d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Models/API/OpenAIAPI.swift:979-995 | Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1016-1032 \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 \u0060Packages/OsaurusCore/Models/API/OpenAIAPI.swift:979\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":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f746d27e281f478ac9c53229aa48bc936977d6d3cb30ce7205bbabce5efc21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201317 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/ContentBlock.swift:977-986 | Packages/OsaurusCore/Models/Chat/ContentBlock.swift:998-1014 \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 \u0060Packages/OsaurusCore/Models/Chat/ContentBlock.swift:998\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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b05f5f4122d0c926c6e88f5db0bf71d56465342e97e6294bb8b30f12d242d4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift:1100-1116 | Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift:1121-1137 \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 \u0060Packages/OsaurusCore/Models/Configuration/ModelPickerItem.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8302a0cf8ada7160dad651c5679267547697b1419ae32a0061d1762f9d5bf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:974-990 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1113-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:974\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"beedd8ce1b19b9ae46f4e1663211c94fe16d3202b08c767a2b73c96873fb94df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:2073-2088 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2140-2156 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:2073\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e921a6a78476bf0f9a4a8f487702d3b83deb52bd7c9edd9bff11c8114bd2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:13947-13963 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14031-14047 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13947\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13947}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86b5ebb9489451be2b760fa16083d1c50d734a71250c3c8faecdb58e6781ebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:18164-18180 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18919-18935 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:18164\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7697806fc4cf50a1d146448ab66cf99b3a9fb0613f26554a9adb8bca758d5e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:508-537 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:599-627 \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, \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:506\u0060 calls \u0060bump\u0060 and \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:597\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"856bc8017f378d4d73c5b9f7fc4521d2ebd886d40dfa0dbfba75239e1dbd0358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:241-257 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:217-233 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:241\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":"Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9635d90af0a99b27c74c60cdfb960451c71caa7b95f220a6d81a8a0d72b90ce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Services/Inference/FoundationModelService.swift:459-475 | Packages/OsaurusCore/Services/Inference/FoundationModelService.swift:515-531 \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":"Packages/OsaurusCore/Services/Inference/FoundationModelService.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"13356610e333afa9f75b34376a4cb0143fc0aeefb2b7a1663474086ebc110783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthDiscovery.swift:196-212 | Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthDiscovery.swift:389-405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthDiscovery.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":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthDiscovery.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"869ddd767ab81efc38c2a72a6cdb5f76966c2bd9671b4e0feab358e747b2cd21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1558-1569 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1897-1913 \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 \u0060Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1897\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also 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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddfdcc35a062179fec30878fbe3a8c27613e676fdccf9ee1c0ede830a7a3cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Services/SystemPermissionService.swift:936-952 | Packages/OsaurusCore/Services/SystemPermissionService.swift:968-984 \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":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"45311ee1358e6835617c2f5cb8cbd8ca6b9485db9ed7036a5080580dca8ca78b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:492-508 | Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:536-552 \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 \u0060Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:492\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":"Packages/OsaurusCore/Services/ToolPermissionPromptService.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a0a2df5db0e2bc507ae807da60bdeebffa0e851a25914cd443e90f70c2ae74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Tools/KnowledgeTools.swift:291-307 | Packages/OsaurusCore/Tools/SearchMemoryTool.swift:125-141 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5eab533ee1b2d3262278a63d3b257606b5c3243b1f97a02bad958d7c780a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:184-200 | Packages/OsaurusCore/Views/Workflow/Architect/ArchitectChatEmptyState.swift:139-155 \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 \u0060Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:184\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":"Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8b3fc0cb555f92b3db5c9c6b5188160a62da26b0635f33ab52e2f8d46dea17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift:325-341 | Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1630-1640 \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 \u0060Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift:325\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":"Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca71573781caff914770ce7207c47ec1815fb6b4e0ede7cc3f84125b28d0128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/EditableTextView.swift:113-129 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:1445-1457 \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":"Packages/OsaurusCore/Views/Chat/EditableTextView.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e7b4748eb1a41bc0c1d9550812a4363dfa80af506ede6af7600455d3404324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/MessageTableRepresentable.swift:382-398 | Packages/OsaurusCore/Views/Chat/MessageTableRepresentable.swift:448-463 \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 \u0060Packages/OsaurusCore/Views/Chat/MessageTableRepresentable.swift:382\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":"Packages/OsaurusCore/Views/Chat/MessageTableRepresentable.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"16952db0755e7cb0f8c731741129fa5bf4e7570bbdb2cd0f6a0b7631e5135907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:323-339 | Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:1216-1232 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"734a84650780d17f6d467d7c11693f1dea647090862fb75f5d7d8d05aec3e332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudePluginCard.swift:144-160 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1177-1193 \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 \u0060Packages/OsaurusCore/Views/Plugin/ClaudePluginCard.swift:144\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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginCard.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f154bd6e1ea80c0cdc2db4e897c70fa12d7bf768ba86ef24e276759d0fa7ffb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:107-123 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2506-2522 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:107\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64b0a6fab9ab7ffef5abb45582148ebfc2c8c19b887fb3a3f7396fcc1721947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:336-352 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:345-361 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:336\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2635051c9e46c7e45ea7cc58e74dfa5faf403f634899bdee49aa511c0eef6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:814-830 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1106-1122 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:814\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d94a98234fe55356848526b2bf6c45c7ad15d68cbb4c2d7758c747cd675b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1604-1620 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1912-1928 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb06426f5e7ec7531195de1a0ac9c7ac6008c29e91f3eccf592dae38c63fcb90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:128-143 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:129-144 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:137-152 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:142-157 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:146-161 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:146-161 \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 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:128\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdfaf1c9685b0e0f0a3cacce32c515bb96a22054c6fb97d8bb885a9f49f9494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:766-781 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:537-552 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1093-1108 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:852-867 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:636-651 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:766\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"143fc898d32222f2a72d3eeaecef291b9cce175acf9eb83ac45f600323da5d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:6974-6989 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7115-7130 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7693-7708 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7872-7887 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:6974\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6974}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ce59ac751256b57cb3dd34fe8ef788f850152b1035b6a8306f16a47a814ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 4): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1503-1518 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1537-1549 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1921-1933 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1952-1964 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:1503\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a05fb2780bcc08142e1fd07ff673fcd7aa8b96ef7936aadaf658dedba73c045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 4): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1627-1638 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1655-1666 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1672-1687 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1698-1713 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:1627\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c7e60e90fd2fb45e48488dd917bbb2cc62d4869dbdfcf1771cddc9fdcae6d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Packages/OsaurusCore/ComputerUse/Model/AgentAction.swift:476-491 | Packages/OsaurusCore/Managers/InsightsService.swift:888-903 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift:1026-1041 \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 \u0060Packages/OsaurusCore/ComputerUse/Model/AgentAction.swift:476\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 after the matched lines, \u0060Packages/OsaurusCore/Managers/InsightsService.swift:904\u0060 calls \u0060log\u0060 and \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift:1042\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":"Packages/OsaurusCore/ComputerUse/Model/AgentAction.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69915df16822b782b8334d415561365ef893b92b1f5ec1565d063be0767c0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:687-702 | Packages/OsaurusCore/Networking/HTTPHandler.swift:748-763 | Packages/OsaurusCore/Networking/HTTPHandler.swift:871-885 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:687\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"89068e4c842c7668d1e4f90dc2375206fd0172c6ca539f915e0040af353ad11b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:10422-10436 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16955-16970 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17063-17078 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10422\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10422}}}],"partialFingerprints":{"codehealthFindingId/v1":"3596a424c70ecfb5fa8faf4887b9a1acf68a6daae7c1de6da3dd5b1243c56536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:17206-17221 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17288-17303 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17627-17642 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:17206\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17206}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c4bf31284fb31d146ce040dedc78b7b947dbe5dfc352608f25f448d93b4c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:168-183 | Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:256-271 | Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:393-408 \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 \u0060Packages/OsaurusCore/Services/LocalGenerationDefaults.swift:168\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":"Packages/OsaurusCore/Services/LocalGenerationDefaults.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28466add3feda360431dc924f5bb50e73c987393815708f2868d6c32a498d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:526-541 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:655-670 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:993-1008 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:526\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4f8cf544e67a3ea8b9dda6532c5ce76f000e169e2c8cf61655ca2c7e7d8ee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:854-869 | Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:1079-1094 \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 \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:854\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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"078635979a101e7f82944a9b303fe396b8d6fd1add37c04359f71281abf760fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:129-144 | Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:969-984 \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 \u0060Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:129\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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"af10fc3fb997edf01b63d2f30d04549529c64357348938e7b48c43f51e4d837a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:1289-1304 | Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:1389-1404 \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 \u0060Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:1289\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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"607c4d213dd10ec7a9b487342f87570b191b92621f403c39439aa22b0e9cb6e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Managers/HotKeyManager.swift:73-88 | Packages/OsaurusCore/Managers/TranscriptionHotKeyManager.swift:92-108 \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 \u0060Packages/OsaurusCore/Managers/HotKeyManager.swift:73\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":"Packages/OsaurusCore/Managers/HotKeyManager.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"4601eadfaaf02d5c4a54c87a977d83512967c1a5bf55756fe636f6d9ba170691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:626-640 | Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:665-680 \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":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a6a59f4828784c83366778cb2d84a27f9eeba0dc9bb37dbf1bd0ba6915b9d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:3190-3205 | Packages/OsaurusCore/Networking/HTTPHandler.swift:3228-3243 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6966abafd707f6c474bd25023433da8a6f369a1725f48457427dc49416ca87f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:14187-14202 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14256-14271 \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, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14203\u0060 calls \u0060makeHop\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14272\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14187}}}],"partialFingerprints":{"codehealthFindingId/v1":"15691bc862ca3327e57ede31a3354ca779fbffad0d6b498969949785d3bc39a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:15907-15922 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16222-16237 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15907\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15903\u0060 calls \u0060rejectInvalidHTTPToolChoice\u0060, \u0060ResponsesInferenceRequest\u0060, \u0060ollama\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16220\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15907}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce898574e119763d8be905a52acef0990280cd4f16c8ccb052b71cf6e1d9db06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:16023-16038 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16311-16324 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16023\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16023}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28267061ea8cee68837c6f063cc0fbb3c3a996e8e93435d57270195e51d036a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:85-100 | Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:183-198 \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. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e070684e2ac2869499439ba62106bbb8d8f7676370687428bfab107826a5f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Packages/OsaurusCore/Services/Attention/OwnerApprovalService.swift:309-324 | Packages/OsaurusCore/Services/Attention/OwnerApprovalService.swift:480-494 \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 \u0060Packages/OsaurusCore/Services/Attention/OwnerApprovalService.swift:309\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":"Packages/OsaurusCore/Services/Attention/OwnerApprovalService.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66edce910d7f77f2c4651d18ce278af3fb5491afe1af90eaf776024fc34f4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Packages/OsaurusCore/Services/Context/ResponsesEvaluationStep.swift:60-75 | Packages/OsaurusCore/Services/Plugin/PluginResponsesCompatibility.swift:27-40 \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 \u0060Packages/OsaurusCore/Services/Context/ResponsesEvaluationStep.swift:60\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":"Packages/OsaurusCore/Services/Context/ResponsesEvaluationStep.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f023292dd8ccaacdebccaac1b53137c8b1010f28ad30f02b60aca0274658d0a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201316 lines \u00D7 3): Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift:598-613 | Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift:867-871 | Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift:335-348 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift:598\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":"Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5d5d636954b0ad7a213c1a7dbbb650a416251ece46afcaaba1fbcd9fda9e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:862-874 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:996-1011 \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 \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:996\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 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. 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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aebf93997858d4f384f914c71046a45b0ef634eec5a83ea1d01d397a5cba714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:359-374 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:205-220 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5778f07cc85ffe0860d639a3b61eb220eeaa5ba6ee95886e910ecd4cc42782"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:460-475 | Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:508-523 \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 \u0060Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:460\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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d6335e64fa5d45b819c76b8c46dba9471e66a1ed20df375c955339310ddb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1669-1684 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:2155-2170 \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 \u0060Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1669\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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bc8780c051388d8ebfc30c00cbdd6705f4979400ebeede5dce62379556c2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:1761-1776 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:1922-1937 \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 \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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"661aa6396d474b02ecbe9c818761b972a78c56db498fd5e3e97d8a49dc60e9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Services/Tool/ToolIndexService.swift:392-407 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:718-733 \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 \u0060Packages/OsaurusCore/Services/Tool/ToolIndexService.swift:392\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, \u0060Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:734\u0060 calls \u0060registryParameterText\u0060 and \u0060Packages/OsaurusCore/Services/Tool/ToolIndexService.swift:408\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":"Packages/OsaurusCore/Services/Tool/ToolIndexService.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d953c348cf3515005724099f90b4db2dfbef1d53ef7b6fc4f49fb07aee14bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1590-1605 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1997-2012 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40159a49d83614e3d8296a04f040b49768c6cc679ebc50be3b26881a2e3f089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:2884-2899 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2905-2920 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":2884}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fda7daadc8312b83f63586054dc1fbbe00e3eb838b7fbe5f99a8805fd6e89b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1675-1688 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2089-2104 \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 \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1675\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d26221f7331b87865fef8b57efc0cda967c1326c195248ff77a10e6e8e47416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentsView.swift:166-181 | Packages/OsaurusCore/Views/Workspaces/WorkspacesView.swift:91-106 \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 \u0060Packages/OsaurusCore/Views/Agent/AgentsView.swift:166\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0bc9af3f3addd35a091d02e1f2054eeaee3dbe8e533bcebc481620234247a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5117-5132 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5145-5158 \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 \u0060Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5117\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a63cf678b9342c669771d88eb00e1afa33df4ad72a9f0e243cfb0c0f97f3250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5302-5317 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5325-5338 \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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5302}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb826ae5caf2ef5ac542f2621b772b39ce807f0e41afc9212ac2506ce6a97af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:114-129 | Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:151-164 \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":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a1c47ace22a146b704e0c589acf981ddedd142bffaf9057aa8a85e9bfa52ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:710-725 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2406-2421 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:710\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, \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2405\u0060 calls \u0060GitHubTokenCard\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:709\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"828cddffe057a5e4e35be2bc15d3edf8b48c90fb97d39081181c35e928042daf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:420-435 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:322-337 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c5d55da75c8379cffe034d626e342b9f48071e84aaf23890586144abc5ea3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:356-369 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:621-636 \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 \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:621\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":"Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b887a7cdc2fff93119e5fa8263e4f1094e3d89428140310d6ab81ccf027d7417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:182-194 | Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:246-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:182\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":"Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31f72f358a6b6d62f675e7c76ec250e7940d6bfbe497da0484377dc5ea67247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift:371-386 | Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift:403-418 \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 \u0060Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift:371\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":"Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86b239f8823f90b6ce1152868d81afca9714ad56529c20809b2a903e7ecced4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift:169-182 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:255-270 \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 \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift:169\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c817f5af126584bf4aa43ad64852e00c7f729a351ac0e673c95260384842655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:10890-10904 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10930-10944 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10956-10970 | Packages/OsaurusCore/Networking/HTTPHandler.swift:11006-11020 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10890\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10890}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bd04f4680d9c4f669f2987a93e7422c5569ea8567e97fd5cfdbe91cedd08f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:524-538 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:790-804 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:653-667 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:991-1005 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:524\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4ad98664f7dfa34f7bf64b04279c1d0455f7d0a6f2b3c4a67972d1389db7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:901-915 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1256-1270 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1089-1103 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1360-1374 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:901\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0cc7da1a00cf66e694b162d27c7698a3c344049284ecffd3096c5c32b16ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:4750-4763 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17470-17483 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17525-17539 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:4750\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4750}}}],"partialFingerprints":{"codehealthFindingId/v1":"7373dfc6af0fdb0256671ff74514d69e08c3125323b90be405d7a47607d7c34d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:14857-14871 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14881-14895 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14905-14919 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14857\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14857}}}],"partialFingerprints":{"codehealthFindingId/v1":"c142f2c279c8183107018de84523b6ef3403a1913fb2e49b036cac623e2917a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:14885-14899 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15331-15345 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15358-15372 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14885\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14885}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c084fade1cede8121c89c4dd546cce05add62d319c0451fd280c5502bef769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:455-469 | Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:503-517 | Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:546-557 \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 \u0060Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:455\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, \u0060Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:470\u0060 calls \u0060sqlite3_bind_int\u0060, \u0060Int32\u0060 and \u0060Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:558\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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"81be1eb17855e1a4f94c1a8c8c80b12ee20d13663fe06a34e69d29b24d9fc21f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Packages/OsaurusCore/Tools/AgentChannelTools.swift:134-148 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:206-220 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:301-315 \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 \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:134\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":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"12afe517c0b52a95623f937fc43bf806721bdea41c4c6ba5815f6d3a4f031a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:858-872 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:568-582 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1090-1104 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:858\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c09d49a7a95299750fc8d9c2f858412b01c65e4518c01ad92c21441026ffff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2474-2487 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:1758-1772 \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 \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2474\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, \u0060Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:1755\u0060 calls \u0060isMissingRequiredAgentActionError\u0060 and \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2473\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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":2474}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda0ef596395ea6949efdb811094ad5cf60932ab59807a49dd181dd10d73ca0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:640-653 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:667-681 \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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84536ed8ac57e8f915aa7e8ba6345e110e69826710f1754e476cb812cea5fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1317-1331 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1836-1850 \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 \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1317\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, \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1316\u0060 calls \u0060ensureMessageStart\u0060 and \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1835\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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"2790a26dde4ab5c9fa8ad773a27c15d09f468344009303ce8acc7f7bc4a40f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:477-491 | Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift:495-509 \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":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8aa71dd071c6660d47827e7b21e43b05e7d65aadee2cb8b8236c530dd8c72b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:3572-3586 | Packages/OsaurusCore/Networking/HTTPHandler.swift:3600-3614 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:3572\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3572}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de24ba0a8d931f1b1a7900b285f245657bedfe3f0bd839ac94dc5476df574af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:10016-10030 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10142-10156 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10016\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10016}}}],"partialFingerprints":{"codehealthFindingId/v1":"76971cfc2db816724c5ae7e27d08437fae60d8fed5fada4eeec370b5f9506042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:14040-14054 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14142-14156 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14040\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14040}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f77757e304ad6e30de667309953de6dc41efe69e346eea2f135f529073761a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ChatSessionWarmup.swift:102-116 | Packages/OsaurusCore/Views/Chat/ChatView.swift:8340-8354 \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 \u0060Packages/OsaurusCore/Services/Chat/ChatSessionWarmup.swift:102\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":"Packages/OsaurusCore/Services/Chat/ChatSessionWarmup.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a3746cfaeec150d14d83471dbaf4429b2a271be8bfc93ef58b7e9420a341f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:677-691 | Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:716-729 \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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc412dc9652702f5c2201a668bce786fad6257388ce09fc79074655bf7c8889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:197-211 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:359-373 \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 \u0060Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:197\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"31601b14e29da8a2c720dcad1c6d1feb47a86f172acdce3020431fd5a544b04d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 2): Packages/OsaurusCore/Services/GitHubSkillService.swift:1890-1898 | Packages/OsaurusCore/Services/GitHubSkillService.swift:1983-1997 \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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1890}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e271e4a77972aa6d36eea27b394e8d967999b88b3e982da5e906323981ee91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:167-181 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:168-182 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:167\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":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d8c1b4a31ab1ae4a2ded955da98a12a0c937e5008f4f5c19064aaa03d08808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:165-179 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:147-161 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:165\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b35f1f0e38c4617c3d8da0cb8db401968c3bbc2b72f0fd0fd78913a861bcf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift:487-501 | Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift:503-517 \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 \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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationCoordinator.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04b85cc37c7a90fdca74ef829992354a6e505dba14a20d91268145a12680c5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift:107-121 | Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift:177-191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift:107\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":"Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd494daa46abc65d47e37f1339240e6f30204986bd9e16ec42b1e8c780defd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:6635-6647 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:6781-6795 \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 \u0060Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:6635\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":6635}}}],"partialFingerprints":{"codehealthFindingId/v1":"386958c5ca05fe9ec0c101c6cb78e640fb2141641a8181509dd14bafc6b20349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:590-604 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:620-634 \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 \u0060Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:590\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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ab9933c10746b745a907d1fee4860c722f944ef58c8b57eb0e93e93a00e578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:392-406 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1688-1702 \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 \u0060Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:392\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":"Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"569a8eee28fa1cf43d0be25e0ed47adc1911fb4a6dc262378d2adfbe0e8b697d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:784-798 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:879-892 \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":"Packages/OsaurusCore/Services/Tool/ToolSearchService.swift"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb14a01ed1eec4e779e62a2f3dac54b50b412bfe2dbad87495a4dfa57cd1df12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Storage/AgentDatabase.swift:1134-1148 | Packages/OsaurusCore/Storage/AgentDatabase.swift:1293-1307 \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 \u0060Packages/OsaurusCore/Storage/AgentDatabase.swift:1134\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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"040601f375286c2d4a0abc7cc1be746dcbc53988052fd473d2eded20ab97b422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:883-897 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:910-924 \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 \u0060Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:883\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, \u0060Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:898\u0060 calls \u0060log\u0060 and \u0060Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:925\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16eb4e080a5d161dbefa69d720ce6ca504bdc86d5cb6232c2ce061c7f5b841f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift:217-231 | Packages/OsaurusCore/Subagent/Kinds/VideoSubagentKind.swift:95-105 \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":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba08936248e6014f4033c297a4133fca944b293b9625176995d7b03632a096a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Subagent/SpawnDescriptors.swift:245-259 | Packages/OsaurusCore/Subagent/SpawnDescriptors.swift:288-302 \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 \u0060Packages/OsaurusCore/Subagent/SpawnDescriptors.swift:245\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":"Packages/OsaurusCore/Subagent/SpawnDescriptors.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22497dbfd0e3b089f47d2a7b69ca16e3a515f4988729cb2496f1dd08a55a67d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Tools/AgentChannelTools.swift:94-108 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:236-250 \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 \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:94\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":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6765d70938b5f6fe0176d55122434670c0bae99bf7f638d0dff302001382c8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 2): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3837-3845 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3931-3945 \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 \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3837\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3837}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d23f72a8771d7d5e60e3a56884a8965618521e38e0d612c709adb2e9c02ac5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:613-625 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:712-726 \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 \u0060Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:613\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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"5826eee32f48c905febcca34483a70b39b8ef49d9a9a6a837da5c9c3371f585b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 2): Packages/OsaurusCore/Tools/OsaurusTool.swift:225-233 | Packages/OsaurusCore/Tools/OsaurusTool.swift:268-282 \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 \u0060Packages/OsaurusCore/Tools/OsaurusTool.swift:225\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":"Packages/OsaurusCore/Tools/OsaurusTool.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c228eb3cef7360b650e8197c3edac9834da31fe22e3f2fe84d4924bd04d925f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Utils/ChatPerfTrace.swift:178-192 | Packages/OsaurusCore/Utils/TTFTTrace.swift:136-150 \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 \u0060Packages/OsaurusCore/Utils/ChatPerfTrace.swift:178\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":"Packages/OsaurusCore/Utils/ChatPerfTrace.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe99859d8263edb820cc4d3fe7172bc4c85adb391b4bee2e453a6aa5075d5c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1330-1341 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1368-1382 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatEmptyState.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":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5555ee12e1ca332a23195a477a3c77b62095b7a05f59aa9db04ea21cd761146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:227-241 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:877-891 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:227\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, \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:226\u0060 calls \u0060isAgentExpanded\u0060 and \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:876\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7672c70e5e46f87d4eed6c5f998bae431793772d98e0730e089f853fbab6123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3710-3719 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3754-3768 \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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":3710}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1ffa2130f63715d358e1d85edd8f54eb28afd87a18ca56636dad59e4ed811f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Views/Common/SimpleComponents.swift:64-78 | Packages/OsaurusCore/Views/Model/ModelDetailView.swift:1549-1563 \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":"Packages/OsaurusCore/Views/Common/SimpleComponents.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca70d362523d757d154102b194a9fb01b269e4276d21ea03027e771fe7d5b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:588-602 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1261-1275 \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 \u0060Packages/OsaurusCore/Views/Event/EventFormComponents.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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc1ff61f10ea5639b14adfe4052872bdee07bd3bf44a8780d2d4a3b23e6ed80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:398-412 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2570-2584 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:398\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b9706d5dcda87f8d3ed79232a16dc9d0fa4d07be66eed6bfec3b4c1a1e1313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:64-73 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:761-775 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:64\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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedb5bc87cabd699776a58f269ce11fae49ea5f5ee09d9fe95499722e205ae20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201315 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift:118-132 | Packages/OsaurusCore/Views/Settings/ChannelsOverviewTable.swift:346-353 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift:118\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":"Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1005bcda5208c2ff2b162acd7af8a7a1d746be91dde3e6b9d9e27c7a86b664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ClaudeCodeSetupStep.swift:138-152 | Packages/OsaurusCore/Views/Settings/ClaudeCodeSetupStep.swift:242-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 \u0060Packages/OsaurusCore/Views/Settings/ClaudeCodeSetupStep.swift:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s14\u0060 in one and \u0060theme.space.s8\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":"Packages/OsaurusCore/Views/Settings/ClaudeCodeSetupStep.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b79ace66449765e0cb2d56ac705ca5d9fcbfb88276253ebbd34ebda5a8cd710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:774-788 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:837-851 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"43169e444f5bbf84a532eb364d7ecee3eee19bef751b24829d373fbd898c9345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:671-685 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:888-902 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"df965bf0267360114d1fa9758aa60dfa760435fb0a041cf52cdf278cf6c5e87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift:482-496 | Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift:643-657 \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":"Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"433406de9ad1031f972e2944ece77cba5d8477a19b1bad262d0d41718bec5133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift:178-192 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:325-339 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift:178\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/AgentLoopRegressionLabCLI.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"788c4b57d6fa9c31747c2163bfa8edd97f8f44269d669fb63b4fae4cfb7c484e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201314 lines \u00D7 22): Packages/OsaurusCore/Browser/Tool/BrowserUseTool.swift:83-96 | Packages/OsaurusCore/ComputerUse/Tool/ComputerUseTool.swift:127-135 | Packages/OsaurusCore/Folder/FileCopyTool.swift:90-98 | Packages/OsaurusCore/Folder/FolderTools.swift:2767-2775 | Packages/OsaurusCore/Folder/PromptWorkingFolderTool.swift:135-148 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1548-1550 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1554-1555 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:76-89 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:215-223 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:404-417 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:556-569 | Packages/OsaurusCore/Tools/AskOwnerTool.swift:39-41 | Packages/OsaurusCore/Tools/CalculatorTool.swift:59-62 | Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:100-103 | Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:111-121 | Packages/OsaurusCore/Tools/KnowledgeTools.swift:452-455 | Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:823-827 | Packages/OsaurusCore/Tools/NativeImageTools.swift:174-177 | Packages/OsaurusCore/Tools/SkillUpdateTool.swift:97-100 | Packages/OsaurusCore/Tools/VideoTool.swift:89-91 | Packages/OsaurusCore/Tools/WebSearchTools.swift:273-276 | Packages/OsaurusCore/Tools/WebSearchTools.swift:277-287 \u2014 there are 22 copies across 16 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 22 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Browser/Tool/BrowserUseTool.swift:83\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Tools/WebSearchTools.swift:274\u0060 calls \u0060value\u0060, \u0060requireString\u0060 and \u0060Packages/OsaurusCore/ComputerUse/Tool/ComputerUseTool.swift:127\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":"Packages/OsaurusCore/Browser/Tool/BrowserUseTool.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"761bd0a7da77a7aa41bced726e755f78f990f3e31e7a2b6d2389d86a5b86af44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): Packages/OsaurusCore/Networking/HTTPHandler.swift:1573-1586 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1867-1880 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1940-1953 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2014-2027 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16725-16738 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:1573\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6734a07ee1fe0283d41af39870861b286f975e30a141b538e591493245d296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:551-564 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:710-723 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:721-734 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:427-440 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:911-924 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:551\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d635826fc2165c8918768e7ed386558c25127f989fdd77f89b6ee5f21d253ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:2077-2090 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2110-2123 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2145-2158 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2179-2192 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:2077\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"6183131ee7977843f6d8db21229590a15b38a44952629d432ffb886b39c99d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:15016-15023 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16023-16036 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16311-16322 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18061-18074 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15016\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15016}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fb6df44e8d65e5018a41c69cdd629946af1b5f4f8f50cf311d6316a1a2512c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:6001-6026 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8836-8861 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8954-8979 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:6001\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6001}}}],"partialFingerprints":{"codehealthFindingId/v1":"d695a9196746a3b24c5bc58d45f04c11973a0244ddfb6fac5068f2da773994be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:7181-7190 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7382-7391 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8879-8892 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:8893\u0060 calls \u0060split\u0060, \u0060String\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7191\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7181}}}],"partialFingerprints":{"codehealthFindingId/v1":"57db3aff15e2b1b83e7b993d589086bb8161fd7608b18da024f69bd480d12b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:10289-10302 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12885-12895 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12963-12972 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10289\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10289}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a2039055a03210a5fa9ecda36ac67210fb13595d46057920bc9ff4035c0b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:12562-12574 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12710-12723 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12728-12740 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12562\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12562}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa3db287932bd1f44ea191afb11134b551db21c764e73d10e433ad52cac2f84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:17580-17593 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17749-17762 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17785-17798 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:17580\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17580}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab77f0003797a31def9f63ce25cb477e9d930ad838d96fd42a601864350d645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/ChatView.swift:10805-10813 | Packages/OsaurusCore/Views/Chat/ChatView.swift:10846-10859 | Packages/OsaurusCore/Views/Chat/ChatView.swift:11111-11124 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatView.swift:10805\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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":10805}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5018e2b947d76eef6fa81a3fbb65a4e2d268c1add1a39b9448c4eff40bd39ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:111-124 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:125-138 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:129-142 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:111\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3db23a50513a06820cccb4f5bcf1dc19af80bd9a84549c7be33c6d21f56fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:355-367 | Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:444-457 \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 \u0060Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift:355\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":"Packages/OsaurusCore/AppleScript/Exec/AppleScriptExecutor.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b687ec4c9a5c73b0388676e439919525b47fae1fedd42f6bdf48bde9a4622065"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift:458-471 | Packages/OsaurusCore/ComputerUse/Perception/FrameScrubber.swift:322-334 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5f50943755af3ed90059d9a4fa3d1502b3b21a56f765b758358debf2a3ca8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Managers/InsightsService.swift:788-801 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:619-632 \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":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d888282239b568b241db58bbde5df330334b90175e1cd096bbd4f1d5f2e1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:1568-1581 | Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:1811-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. 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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f28c190163db8fd1c5c350fd83a8a6090a34d5e3a5ba2065f17d67399cb3c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1804-1817 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:6795-6808 \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 \u0060Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1804\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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"7478bbfee12bde6f3f85f2be33de5a77381a3d6a2f311404fbe184d5300da047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:977-990 | Packages/OsaurusCore/Models/Configuration/ModelInfo.swift:604-617 \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 \u0060Packages/OsaurusCore/Models/API/AnthropicAPI.swift:977\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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd42d1f53ba06230ea8d70a5e08862283a8e509434ec75b3d5c90350f149797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 2): Packages/OsaurusCore/Models/BackgroundTaskModels.swift:62-75 | Packages/OsaurusCore/Views/Settings/OrchestratorSupportSections.swift:385-392 \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 \u0060Packages/OsaurusCore/Models/BackgroundTaskModels.swift:62\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":"Packages/OsaurusCore/Models/BackgroundTaskModels.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dd2b5cffd5fb473ee997ad01696560b08a5d3ad8a7b6b1cb084651b4133250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:322-335 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:373-386 \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 \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:322\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"26aee97c499e9c0d1cbd3331804123c377d42558d5cded58b3449f133fcc70fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/SharedArtifact.swift:903-916 | Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.swift:313-326 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Models/Chat/SharedArtifact.swift:918\u0060 calls \u0060sanitizeArtifactFilename\u0060, \u0060extractPathComponent\u0060 and \u0060Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.swift:328\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":"Packages/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"d019a8575989bc553b56fff453519c730e2ce8529d986ef4e8a71ff2d88cd73a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/ModelMetadataParser.swift:296-309 | Packages/OsaurusCore/Models/Configuration/ModelMetadataParser.swift:310-323 \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":"Packages/OsaurusCore/Models/Configuration/ModelMetadataParser.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c56e41c85bdb1d2f2be2fe184368a48e20a3d5fe5ba4e1cc987e4f359959bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:8650-8662 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12631-12644 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:8650\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8650}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d70c8568b3c1591b6a9e9a75388ee3c923a0e5e712fdf43f7dae4a7b2a829a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:9054-9067 | Packages/OsaurusCore/Networking/HTTPHandler.swift:9567-9580 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:9054\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9054}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f73b5724a9357f450136f3151089cb4c16dbdcf462fa16993d1ccbb6fa9775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:9662-9675 | Packages/OsaurusCore/Networking/HTTPHandler.swift:9695-9708 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:9662\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9662}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9da43afddf727030d5931528dfc1c4b287954ddd983b8c42be045b24592ddb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:10309-10322 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12975-12988 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10309\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10309}}}],"partialFingerprints":{"codehealthFindingId/v1":"4995635e58d2f5b2a0cf429f798c3e47688b681287868628d1dcd3bf6721b663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:12652-12663 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12681-12694 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12652\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12652}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a9873174424b54f4563bea3403407149b795788451eb344700fe690794d99f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:13066-13079 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13095-13108 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13066\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13066}}}],"partialFingerprints":{"codehealthFindingId/v1":"866ad07c40c937afac12484f69569397b97b612ab2c15f04a50734f02dfd8e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ComposeRequest.swift:56-68 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:108-121 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"Packages/OsaurusCore/Services/Chat/ComposeRequest.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c99107c2874e0d38e53d6c221b7752000d054acc5704e98da235c1b3de7de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:703-716 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:2439-2452 \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, \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:718\u0060 calls \u0060set\u0060, \u0060String\u0060 and \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:2453\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"079044849b1f6d51ab8f0df6de5d0155e18f12ee1029fc57ad5265df89ff9649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:177-190 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalTranscript.swift:94-107 \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 \u0060Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:177\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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c18ed5d47a8f6e7568968c6467e055bce4774db803860e65986b6fee744db46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:486-499 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:581-594 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:486\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fa8e75f3805463523a04a310019d01d87f305a9749b8803e38ec82825ab5bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201314 lines \u00D7 3): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:523-534 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:846-849 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:620-633 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:523\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd3ecb126c67bbed930995586d3f041f0b20720940968a3278c44cc973ca521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:263-276 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:230-243 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:263\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060pins\u0060 to \u0060IMessageHelperPins\u0060 in one and \u0060WhatsAppHelperPins\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":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8eb0ad2156b51b378f228f415eba54d0ab12fe819d62195a297c5671b6ef38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:221-237 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:212-228 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c8023120526fc75d0d2c7bfaae12f7304f3c0db59c465f62681c45dbf802f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime.swift:1538-1551 | Packages/OsaurusCore/Services/ModelRuntime.swift:1594-1607 \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 \u0060Packages/OsaurusCore/Services/ModelRuntime.swift:1538\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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b87d75a234ef0c35da01da614c3e19a9f98ae9c9f3d4e3a25e0e8d49a171e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime.swift:2405-2418 | Packages/OsaurusCore/Services/ModelRuntime.swift:2554-2567 \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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21d29f99d2b08caa718bedbdb7135021c1003220f9727701f6daa91437dad80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:365-378 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1663-1676 \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 \u0060Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:365\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:379\u0060 calls \u0060cancel\u0060 and \u0060Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1677\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":"Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d00804184e6ff87bfc5ef4a06b12332384163cf5d05fc0db605418101baa95b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Storage/PluginDatabase.swift:292-305 | Packages/OsaurusCore/Storage/PluginDatabase.swift:319-332 \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 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":"Packages/OsaurusCore/Storage/PluginDatabase.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6c0fe5984b025393faa74e728ea8b1df461637b2a11a2eebb768d02985f8c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Packages/OsaurusCore/Subagent/SubagentSession.swift:578-589 | Packages/OsaurusCore/Subagent/SubagentSession.swift:638-651 \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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"795fb5e7063494120ae879aaf34307c1f1e0d51a2075dbf6d2f05cc7b91e32be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.swift:39-52 | Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.swift:101-114 \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 \u0060Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.swift:39\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":"Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b8a6c58a925182adac241fe6e51e5a76f0e87a2f9ea6c3d9d6bf547b92cd7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:388-401 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:485-498 \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 \u0060Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:388\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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"d043f672975f8db2be14bbd7f8622ae07c0986d6020a372a2db7bee63fc2f20b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): Packages/OsaurusCore/Tools/KnowledgeTools.swift:364-374 | Packages/OsaurusCore/Tools/KnowledgeTools.swift:776-789 \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 \u0060Packages/OsaurusCore/Tools/KnowledgeTools.swift:364\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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3711a99a9154213587004d333636ca57dbdc1ffa4af68481464084495f985f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 2): Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:112-125 | Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:457-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 \u0060Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:112\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":"Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f739a326b62383a64f8b6887677159f3e95ee6a7554054f9328cdf0cb5d1a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Packages/OsaurusCore/Tools/WebSearchTools.swift:322-333 | Packages/OsaurusCore/Tools/WebSearchTools.swift:530-543 \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 \u0060Packages/OsaurusCore/Tools/WebSearchTools.swift:530\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":"Packages/OsaurusCore/Tools/WebSearchTools.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ff34d50ac9a1c2d2340fd321e9af3ddd485551043d7a2a3ad112eb11ad772b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentsView.swift:5640-5653 | Packages/OsaurusCore/Views/Settings/OrchestratorSupportSections.swift:215-228 \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 \u0060Packages/OsaurusCore/Views/Agent/AgentsView.swift:5640\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5640}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aa9fd790331d3b7e9b35c18c2ea97030da4c1ca7d213b2746ab5ff30b96ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:60-73 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift:330-343 \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":"Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"24abbc4e896b81511ea640776bac85e0b841fcfc5604b729cbdb246c59ae81ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift:396-403 | Packages/OsaurusCore/Views/Workflow/Library/RenameInstalledWorkflowSheet.swift:62-75 \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 \u0060Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift:396\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":"Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b360535c7312ed391587ebd69224799fc496df782ee0cbe03a282bab19195f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:682-695 | Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:1027-1040 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:682\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":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7bec67161a05e3518781c3623de45549506f7b83ef4efe91797bd9f92988cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:142-155 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:138-151 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d3e2264bf21dc0ab2e8922f32c83380ccef1908d75bc861607fba33dcc1ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift:68-80 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:82-95 \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":"Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e7f6db21e180c17863d6777b0f21aba467919a1ff55c2fb0752c36cffeb47a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift:281-294 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:433-446 \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":"Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e75af22b50e5796dce42ac479d3f7df085a4fecc9d6a9ee7d0dbd3f2afa981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Views/Common/AnimatedProgressComponents.swift:243-258 | Packages/OsaurusCore/Views/Toast/ToastView.swift:194-209 \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":"Packages/OsaurusCore/Views/Common/AnimatedProgressComponents.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc348ae5f849ffeebb26e6e36b55c9e15ded1076e7bc817137585d285121f4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:280-293 | Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:1495-1508 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbbb6e9d664a60a37739dcad057ab185e77effceb4de69e5750e242f521dcc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201314 lines \u00D7 2): Packages/OsaurusCore/Views/Identity/LoginConsentView.swift:58-64 | Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift:168-181 \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 \u0060Packages/OsaurusCore/Views/Identity/LoginConsentView.swift:58\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":"Packages/OsaurusCore/Views/Identity/LoginConsentView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"911e19f5217263787c5e5ba6cf4bedc88abc37f5c5386d82fe59e568d06c371a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:1434-1447 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:1466-1479 \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 \u0060Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:1434\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060icon\u0060 to \u0060\u0022magnifyingglass\u0022\u0060 in one and \u0060\u0022doc.text.magnifyingglass\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:1432\u0060 calls \u0060DetailRow\u0060, \u0060Text\u0060, \u0060L\u0060 and \u0060Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:1465\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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38fb1200df704699cd8aedd859f8db51766ffc26d3be48b2ed6224326c1426c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift:85-98 | Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:88-101 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 72 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":"Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b696d03bddda6203dc73ab73ed0ca049ea51d430459f172395e13b4ba9eff6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1203-1216 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1260-1273 \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, \u0060Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1259\u0060 calls \u0060VStack\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1202\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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6608850738fbd3bfcde242bfccec8e3936d20687dcbe5a378646d0e010330946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:547-560 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1148-1161 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:547\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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4b00c7e4e75ff9199148aed99121f034606e5c8fa977870eb5261ac4ccdfa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:266-279 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:284-297 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:266\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67ea4bbde5785c404a610a2f32a9cdc8afa387a7e8796433bcb9077d3a95564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:455-468 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:533-546 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:455\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"9606d0f292ec3e2b9e42a48750d12cdc1826a21647f2ae37581cd80dcb5a600a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:168-181 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:175-188 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:168\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, \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:189\u0060 calls \u0060stopPairing\u0060 and \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:182\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bea67ca23103ffd6f407f98bb0ce4e7b1b626c3e53f816d856597bd85aac25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:662-675 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:761-774 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:662\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95d5fbe24b22e4db29bf2fe7dce7b78f46f2be5b615c74f91c54a3feaaf0545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:710-723 | Packages/OsaurusCore/Views/Template/ShareWorkflowSheet.swift:465-478 \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 \u0060Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:710\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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"670472f00de22cb98293af07240ba1b3bcc7bf70cf3bbec130c6456834ec300a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift:67-80 | Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift:453-466 \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 \u0060Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift:67\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":"Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b3f06b798d6a82baabc9d3c8964c42534f3a03fde312cdc8c6da654956d725"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:811-824 | Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:836-849 \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 \u0060Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:811\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":"Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b411cc17536661f4e138f7bb9ea029cd92f5f04c2c1ced0d9f331fc64d85cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:875-890 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:831-846 \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, \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:870\u0060 calls \u0060compactMap\u0060 and \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:830\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3689b56cb2eb65f57ba8ffaf29eca98f8db34ba7ef99576897f6b13df314ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 13): Packages/OsaurusCore/Networking/HTTPHandler.swift:5660-5672 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6165-6177 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6252-6264 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6331-6343 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6472-6484 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6589-6601 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6956-6968 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7097-7109 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7433-7445 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7675-7687 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7854-7866 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8310-8322 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8503-8515 \u2014 all 13 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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5660\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5660}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35815a278420e21381e8b65a833cbb964ea51a69a27ffbf133b67d19823f9d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201313 lines \u00D7 7): Packages/OsaurusCore/Networking/HTTPHandler.swift:10257-10269 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10425-10437 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13584-13590 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14563-14569 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16959-16971 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17067-17079 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17402-17414 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10257\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10257}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c645c08af0b3163d186623821edc4bdefe0e0cc08c9cc4bc2491d0a10248e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:10425-10435 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14222-14233 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16957-16969 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17065-17077 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14222\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10425}}}],"partialFingerprints":{"codehealthFindingId/v1":"597219a545d44e7afeb9a4ebc891fd5b24d25b35a7eba37a1478b291b03ccdb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:13306-13318 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17206-17218 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17288-17300 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17627-17639 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13306\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13306}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2176ba69a5023684d873bff6e11cd8c526f1fdb5145eca6503eb826e822124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:17208-17220 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17290-17302 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17629-17641 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18381-18394 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:17208\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61453da37dda16b94a9b8e58e29181f20abf483c4a63b83c4330323f33be68b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1595-1607 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2002-2014 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2891-2901 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2912-2922 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:1595\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"4692e11aab4bd5a30b41f3140ee36dad7bee889b76478f82a4af7fa1b1e38171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1322-1334 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1360-1372 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1431-1443 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1471-1483 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1322\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":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c6f371d727e1624192f05dbc2b1752f8acce436c69e6fc5d673965510546f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:131-143 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:185-197 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:394-406 \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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c39e51c2697f0349857bbcd1ca215b703fe314bb737760ab0a2965cbf4defa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:5678-5690 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6490-6501 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6607-6619 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5678\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5678}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a63ac765e51c4664f953a1852ce5c0c064a688ed62241ecd1742a73c24eadc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:7403-7410 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7476-7485 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7894-7906 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7403\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df76a727d30bc9057b514eaf92833dd5be3ed6475bdf4860400c35cb0f45b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:339-351 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:369-379 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:382-392 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:339\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c25164a43a599d184d250b80f6f8d0425d39afceb905f97a50f352b50cc64e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift:79-88 | Packages/OsaurusCore/Services/MCP/MCPElicitationPromptService.swift:228-237 | Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:896-908 \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 \u0060Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift:79\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":"Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"752cde6eee99fdfc0ce1bd2ba02fb0d541a579cb74a3431e1d511ef60cd3a445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): Packages/OsaurusCore/Services/Channels/ChannelSecurityDiagnostics.swift:99-109 | Packages/OsaurusCore/Services/SupportDiagnosticsBundle.swift:468-478 | Packages/OsaurusCore/Services/Voice/MarkdownStripper.swift:47-59 \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 \u0060Packages/OsaurusCore/Services/Channels/ChannelSecurityDiagnostics.swift:99\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Channels/ChannelSecurityDiagnostics.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7f29ff8563e02a76d882e0cfc984ec953f95044a7a65893390c5a9b54be208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:335-347 | Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:382-391 | Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:449-458 \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 \u0060Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:335\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":"Packages/OsaurusCore/Services/Memory/MemorySearchService.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb6e0ea21f96f8649f68dbbcf42f413f8b8a0e4bc8e9f1213c46e08f99a97db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201313 lines \u00D7 3): Packages/OsaurusCore/Views/Identity/LoginConsentView.swift:58-63 | Packages/OsaurusCore/Views/Plugin/MCPElicitationView.swift:61-66 | Packages/OsaurusCore/Views/Provider/ProviderCredentialPromptSheet.swift:168-180 \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 \u0060Packages/OsaurusCore/Views/Identity/LoginConsentView.swift:58\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, \u0060Packages/OsaurusCore/Views/Plugin/MCPElicitationView.swift:60\u0060 calls \u0060settingsChrome\u0060 and \u0060Packages/OsaurusCore/Views/Identity/LoginConsentView.swift:57\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":"Packages/OsaurusCore/Views/Identity/LoginConsentView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"806f1583ccb1fe6d5b9c4a0c8c4b74fa3a40144037bc1dfaab8caa2116d1ddf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:67-76 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:766-778 | Packages/OsaurusCore/Views/Settings/AgentChannelSettingsComponents.swift:295-306 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:67\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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb56d56b3f39cf5eb7b8e28dc71fdd0c65ba97c13da3eb9b69bef266665d2d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/CommandLineToolSection.swift:92-101 | Packages/OsaurusCore/Views/Settings/CommandLineToolSection.swift:106-114 | Packages/OsaurusCore/Views/Settings/CommandLineToolSection.swift:118-130 \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. 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":"Packages/OsaurusCore/Views/Settings/CommandLineToolSection.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b99b67e38be558f2155559adabbf1588db5e72fdf6f54b081d254fbaadb8631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift:29-41 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift:61-70 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift:29\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"299faa779ef307fd289223ecc1cfab171afd23ed52a56cec2981efc3074867c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:1859-1871 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:1929-1941 \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 \u0060Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:1859\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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d71940357e017e2f267380977ad5734167aa1c7978fc8388687ade8e9f56fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Managers/InsightsService.swift:812-824 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:643-655 \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 \u0060Packages/OsaurusCore/Managers/InsightsService.swift:812\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":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e09477fc277594fe14a08d934b6b0e421471a40eb97b9ca81183439344bffc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Models/AgentCollaboration/AgentCollaborationProtocol.swift:104-116 | Packages/OsaurusCore/Models/AgentCollaboration/AgentCollaborationProtocol.swift:119-131 \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":"Packages/OsaurusCore/Models/AgentCollaboration/AgentCollaborationProtocol.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced9741dab30db9541bb17e1cf56290052d5fd97edb4c70789afc32209e893bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:239-251 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:480-492 \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 \u0060Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:239\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":"Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"960f5cfb81b0d1f0c2a80816874f1070b0d5c894061ed6ea317213f645d10672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift:78-90 | Packages/OsaurusCore/Models/Project/ProjectStore.swift:41-52 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift\u0060 and \u0060Packages/OsaurusCore/Models/Project/ProjectStore.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 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":"Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5895910c0856af43dd0edd310a4adee79ab604f324b95a81bd8dc47990c574d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:5759-5771 | Packages/OsaurusCore/Networking/HTTPHandler.swift:5853-5865 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5759\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5759}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f6d7e926a6b3853b2ed18195b71ddc805990e413342bfd1ff1889188eca387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:7076-7088 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8088-8100 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7076\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7076}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d06593b9824edfb48c50b642595ac95723c1824496b90439e6455617711bc7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:7200-7212 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7649-7661 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7200\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dabfae89314105b9d23950ddfba078742f6fbacfefa2be22a115e172a85ebf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:11822-11834 | Packages/OsaurusCore/Networking/HTTPHandler.swift:11888-11900 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:11822\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, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:11885\u0060 calls \u0060server\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:11821\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":11822}}}],"partialFingerprints":{"codehealthFindingId/v1":"816d12b14c65711593331ccdd7f30f3985d49a8b1af94d06c9b8a70c1f05e084"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:13334-13346 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18404-18416 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13334\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13334}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e01db106bd6a6cbd0de6ad3139fb13c7a1eee8cb99e496f96e6264c21c1f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:16184-16196 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17501-17513 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16184\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71868e842554cf039f6ba3474f217714aec58fb82f63485ba8a1896f9254e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:16587-16599 | Packages/OsaurusCore/Services/Chat/ChatEngine.swift:554-566 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16587}}}],"partialFingerprints":{"codehealthFindingId/v1":"8840e26f5b1a803a9fa29d582571b143b0beb273fc34ffe821f0d4b07fe5cdde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:786-798 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:844-856 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:786\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"2689aef762004eec6997f39cb91ebc1bed6cca09bd85713387da5ebbe378d8b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift:353-365 | Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift:338-349 \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 \u0060Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift:353\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":"Packages/OsaurusCore/Services/Auth/OwnerDeviceAccessHost.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eafaab1db207809867e1c8711662e26510c8f99bd110ca2b06b1c385b54794a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3550-3562 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:133-143 \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 \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3550\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3550}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa778ee9707367f7a77b6541269bc7e34b68c9aa55170a7f30b15045897357b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3957-3969 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:4145-4157 \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 \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3957\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3957}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f6d5b2fb55bf7be8ba4e9b18df55da31284ff28a954353d999e6af62f53a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift:1104-1116 | Packages/OsaurusCore/Utils/StringCleaning.swift:184-196 \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 \u0060Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift:1104\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":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1af5a6c857e228cfaa6023de6e203c3dfb52957d5b4a50b8bc7df95676d3db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/GitHubSkillService.swift:1226-1238 | Packages/OsaurusCore/Services/GitHubSkillService.swift:2021-2033 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c74ad2bd6f15f3f74d05456800786cc49bb43cd43978fc2270689be7e82bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:583-595 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:683-695 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:583\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"797db375162add1eb0b9040edbe783b918bfcc06e5f55b3030d60a9f96948caf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:198-210 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:191-203 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"4080a5a7d63515891e76cc156c167964c8555eac1e82391eedf21fd18feb9bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:388-400 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:470-482 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2121c7b3b2d48c6ce1cd1b56fc64a0d8f63226b14c8c51312b27f3a053dedd1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/Knowledge/KnowledgeSearchService.swift:84-96 | Packages/OsaurusCore/Services/Memory/MemorySearchService.swift:193-205 \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 \u0060Packages/OsaurusCore/Services/Knowledge/KnowledgeSearchService.swift:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeSearchService.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcef3867b767193cc5873fc0503b2e40b9793595094b80e584736922bfc3ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/Memory/MemoryService.swift:949-961 | Packages/OsaurusCore/Services/Memory/MemoryService.swift:965-977 \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 \u0060Packages/OsaurusCore/Services/Memory/MemoryService.swift:949\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":"Packages/OsaurusCore/Services/Memory/MemoryService.swift"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba611dce392c84f8289d4b8b8d112b92fecd3d9eae28df49ec82ded53f021c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift:773-785 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:2162-2174 \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":"Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"003b742f3ed0ddd2a2ec46404446e4690b1536e0066b3386c0a020d77f3af3b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1011-1023 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1154-1166 \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 \u0060Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1011\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbd0c59c72b618bd295261ebc1e29d9a97223f277ce3b1d9c1b282db8e25b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:470-482 | Packages/OsaurusCore/Storage/ToolDatabase.swift:389-399 \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 \u0060Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:470\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":"Packages/OsaurusCore/Storage/RouterBillingDatabase.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d8fb87550bc9944f7e694a11b87f7ade98d35bbf8a299fb003f674bb4ecb6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3850-3864 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3951-3963 \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 \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3850\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3850}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb8c95221445341dd720703f3ec946af53007e3fe2aaa19e9c46ebc56df9c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseImport.swift:197-209 | Packages/OsaurusCore/Tools/Database/DatabaseImport.swift:308-320 \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 \u0060Packages/OsaurusCore/Tools/Database/DatabaseImport.swift:197\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":"Packages/OsaurusCore/Tools/Database/DatabaseImport.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3e052071802f8e19869c4c99f4a22b955d79bd747f88bed84dd2a48457b8c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Tools/MCPProviderTool.swift:200-212 | Packages/OsaurusCore/Tools/ToolRegistry.swift:587-599 \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":"Packages/OsaurusCore/Tools/MCPProviderTool.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfd0976a0c595409c1096c366e983ef1f6c190e6c5c58017eaf4e1b5f8498e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Tools/ToolRegistry.swift:2751-2763 | Packages/OsaurusCore/Tools/ToolRegistry.swift:2778-2790 \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 \u0060Packages/OsaurusCore/Tools/ToolRegistry.swift:2751\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, \u0060Packages/OsaurusCore/Tools/ToolRegistry.swift:2777\u0060 calls \u0060insert\u0060 and \u0060Packages/OsaurusCore/Tools/ToolRegistry.swift:2750\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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":2751}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aae194e143b96e3cc6798e12bb1771c91737c77592480e5097ae503f348861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2705-2717 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2835-2843 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2705\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2705}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bf98879d6895fd5a07c3e100cfd848c524478878922c7e3543cecfe3edf3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4503-4514 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4706-4718 \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 \u0060Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4503\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4503}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e724cdf1d3e63ece29c2eaacfd4febe36bae72bad08740117cc39b578e1ae37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:580-592 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:1200-1210 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:580\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 after the matched lines, \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:1216\u0060 calls \u0060NSPoint\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:598\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6e3d985b18a2ab8227ec03ff7373815564b261fb4d5c74b2d1b7d2aaab0b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2521-2533 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3797-3809 \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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5c9e919dd39aa4001ce8abc73d5ee6ccaf4fa7da852769b74be1558facfa41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1625-1637 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1728-1740 \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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"708d23d00c765e75517b56a6376353f30db13bc3472d8a72a67cee9a68f38562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:121-133 | Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:166-178 \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 \u0060Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:121\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":"Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43ba6f4e79c67f772a8e7b798f303456a9d6abd0bd7ce425a2f119ef901fc3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Packages/OsaurusCore/Views/Model/ModelPickerView.swift:1071-1083 | Packages/OsaurusCore/Views/Model/ModelPickerView.swift:1112-1125 \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 \u0060Packages/OsaurusCore/Views/Model/ModelPickerView.swift:1071\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.catalogLayoutMetric(\u0022component.library.26.elements.layout.modelPickerView.content.horizontalGap\u0022, inheriting: ModelPickerInspectionStyle.metric(\u0022gap\u0022, theme.space.s6, theme))\u0060 in one and \u0060theme.catalogLayoutMetric(\u0022component.library.26.elements.layout.modelPickerView.content.horizontalGap2\u0022, inheriting: ModelPickerInspectionStyle.metric(\u0022gap\u0022, theme.space.s6, theme))\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Views/Model/ModelPickerView.swift:1069\u0060 calls \u0060effectiveToggleValue\u0060 and \u0060Packages/OsaurusCore/Views/Model/ModelPickerView.swift:1111\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":"Packages/OsaurusCore/Views/Model/ModelPickerView.swift"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"0924d4ed5f2e8a5847641184b80e8fd5db977cea0c193e7e84026ad54189bf11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:87-99 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2289-2301 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"714c6f1f73c6a6c9fb14468fb99bf58cbb0c0dc525ca7e21814d90532b15d3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:181-193 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:269-281 \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, \u0060Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:177\u0060 calls \u0060frame\u0060 and \u0060Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:265\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":"Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33b1ad263e0a938c04f5bcb09fca20530dbfddd9ae54e8e39bc3b078faf9e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:413-425 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:391-403 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:413\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, \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:404\u0060 calls \u0060fixedSize\u0060 and \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:426\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e609d5b06df52c7024e103bd154534cc5d0da2f58fe453ad02ff52b62a7eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:631-643 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:752-764 \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 \u0060Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:631\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":"Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a4e26c753eb8ee481b8ba9a573b18328623865b298c3a10507ecead22a1dae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ProvidersView.swift:779-791 | Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift:525-537 \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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1049e24b77796697bf8bfcca8a2e1dc508d489c4bb6df326f6979ac646da1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2065-2076 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2097-2109 \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 \u0060Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2065\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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"614f497dfbac9f6172708ac9438698871c6b3aa8a6c94f01ef5574e64b836cf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:647-659 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:746-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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:647\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"23171de7b0568aa46126e37403bc6f67b2847255d4b91aac93886b748943275f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:785-797 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1591-1603 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:785\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7e00b52c2bc17f2a8cd4eb7e5da83598805659096eafb8b8f7678d5073cf3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ServerView.swift:1596-1608 | Packages/OsaurusCore/Views/Settings/ServerView.swift:1735-1747 \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 \u0060Packages/OsaurusCore/Views/Settings/ServerView.swift:1596\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":"Packages/OsaurusCore/Views/Settings/ServerView.swift"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f7980b1d15bc1f93139ee36e9f7135d417f059cca8736fcbb0fbce072ff4cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowStyle.swift:12-33 | Packages/OsaurusCore/Views/Workflow/WorkflowSummary.swift:123-144 \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":"Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowStyle.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6986055193632d64f57dff73e40e7c97f56333772dfc6c489570dd830c882856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:431-443 | Packages/OsaurusCore/Views/Workflow/WorkflowRunHistoryList.swift:590-602 \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 \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:431\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f3212833f420f3d2b6ce0f19841f519e57ba0077e083cfe7d9f4a82835dd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/SavedAnswersSection.swift:58-70 | Packages/OsaurusCore/Views/Workflow/WorkflowStoredDataSection.swift:49-61 \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 \u0060Packages/OsaurusCore/Views/Workflow/SavedAnswersSection.swift:58\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":"Packages/OsaurusCore/Views/Workflow/SavedAnswersSection.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3a79edb5636b0206804f3eaf9e899e250df76a748a15720d8e51827c5e7cf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1622-1634 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1933-1945 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1622\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"30afacf4b6459c15ddbcc8e0cbdb4f6a7ce6af79268170fb9791bfea59ad1c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift:249-261 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift:169-181 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift:249\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"42311ef7cc7a8f91bdc258f685c6fca508cf026b5c03e3b7a46f35e363a66dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerJudgeCalibration.swift:120-135 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift:211-223 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerJudgeCalibration.swift:120\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerJudgeCalibration.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b434be161f18cfa802b7ee042de4ee40a32163c9c81119d71ef8904eae57acc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusPlugins/StatsPack/Sources/OsaurusStatsPack/JSONLAdapter.swift:21-33 | Packages/OsaurusPlugins/StatsPack/Sources/OsaurusStatsPack/SQLiteReadOnlyAdapter.swift:21-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusPlugins/StatsPack/Sources/OsaurusStatsPack/JSONLAdapter.swift:21\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":"Packages/OsaurusPlugins/StatsPack/Sources/OsaurusStatsPack/JSONLAdapter.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a048e2c9a8d47a27dfa7ad264ec864aafcca55ad6beda2e47bfb94248b32a372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): Packages/OsaurusCore/Networking/HTTPHandler.swift:4704-4715 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14836-14847 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15298-15309 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15864-15875 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16161-16172 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17111-17122 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17426-17437 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17820-17831 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18466-18477 \u2014 all 9 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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:4704\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4704}}}],"partialFingerprints":{"codehealthFindingId/v1":"1080c4547b9081dc985091f0f57ca709aef42567b266bb7e5a058bb7f9949b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): Packages/OsaurusCore/Networking/HTTPHandler.swift:5678-5689 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6490-6501 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6607-6618 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6974-6985 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7115-7126 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7693-7704 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7872-7883 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5678\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5678}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ad33a06037361845b06bad5b77a1ef028ab01736f56f61ebc97c6da6735143"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:754-765 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:1171-1182 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:1289-1300 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:1450-1461 \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 \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:754\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10f732809af64b35b1a44e345e99a0f992391c9f25cb30a2d470337680906e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:538-548 | Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:555-565 | Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:605-616 \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 \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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ee7e979b496f2200df84b61e7d2c09b6bfb32fce4a93fbee4f6aa153944ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:4819-4829 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4916-4926 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4983-4994 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:4819\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4819}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b69f1f6d7fa554b1ef8a30c956bd1123fc60706cc12b34e2eee52975ec3133c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:12183-12193 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12202-12212 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12272-12283 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12183\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12183}}}],"partialFingerprints":{"codehealthFindingId/v1":"6612d1eeac3773b37b97657b0afbe7866c61b0f1420ee802929c0047265b9772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:14008-14019 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14108-14119 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14539-14550 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14008\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14008}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f995957a64d3e7681bab12b0df90a2068b30a1446aa8b49cf9eb8bbb2b44c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:16913-16923 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16984-16994 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17330-17341 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16913\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16913}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe45f7b23d4c207e6ea8b7089d1f6be93f68cce03b0ad50922c0a10b939caf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1008-1019 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1151-1162 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:275-286 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1008\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, \u0060Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:289\u0060 calls \u0060pruneToRetentionLimit\u0060 and \u0060Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1022\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa59106607bf93af737ba0453f84a6cc7463042d8a4267a69eb0b7d30e5862f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 3): Packages/OsaurusCore/Views/Credits/CreditsView.swift:780-791 | Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:563-570 | Packages/OsaurusCore/Views/Workspaces/WorkspacePoolActivityView.swift:372-379 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92f197a89737f1513d097382d41a9b305590ff837fe18e1277554306db7d7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:301-312 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:379-390 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:453-464 \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 \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:301\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, \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:466\u0060 calls \u0060StatusChip\u0060, \u0060L\u0060 and \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:313\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":"Packages/OsaurusCore/Views/Memory/MemoryComponents.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3d91822950a234ced6ae7f30ec0f5d99295913aab67ba0d1f51f94470b6a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:735-746 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:635-646 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:756-767 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:735\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, \u0060Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:634\u0060 calls \u0060padding\u0060 and \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:734\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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9b244a4b6b177e23c58d1c978d0137f62837800c39d99317cdb644dc0a976b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:182-193 | Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:216-227 | Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:246-260 \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 \u0060Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:182\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":"Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"87844568018ea4a9f1fe6d231a78f81b473f9cf6af4f1caab004a5ff7d2d7eb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:975-986 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:988-999 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:1001-1012 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3c51fc1cc4e38ba24ea4b6ab389c691db50fd6cfcca4249959c75fc627de0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1784-1795 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift:118-129 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:573-584 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1784\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0ea9e84f6b81c0383a59899e0bc06c9d9c1e4c1f11df497fbb1ab75d2f2bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift:1795-1805 | Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift:1884-1895 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ccced727885b2a2e28581f429e4b73cef184ce4128c6a58af2659305db38c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Folder/FolderTools.swift:4471-4482 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:60-71 \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 \u0060Packages/OsaurusCore/Folder/FolderTools.swift:4471\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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4471}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68cb283058040351095b579f382ffc66a6a305623d5975fbec9ee628c7536b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:236-247 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:523-534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Models/API/AnthropicAPI.swift:236\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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"506f43e670789ed7ac3cd9541800714e8a7d9a6a30bb6937a24828ee9c939516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:953-964 | Packages/OsaurusCore/Models/Configuration/ModelInfo.swift:580-591 \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 \u0060Packages/OsaurusCore/Models/API/AnthropicAPI.swift:953\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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85cca65d546c4c49c88157c80320e0cf277f704b1c079f083595eb611c52f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:204-215 | Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:283-294 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae6987013c473f539504fcc25e5f4123514adb3731c8e989abb908b0fb5b0af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Models/Theme/ThemeTokens.swift:59-70 | Packages/OsaurusCore/Models/Theme/ThemeTokens.swift:73-84 \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":"Packages/OsaurusCore/Models/Theme/ThemeTokens.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc19d4cc3cf4031f374c79549f9b293918e1a1bc02e8b0c29efe0d852af9a3ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:2329-2340 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2660-2666 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:2329\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4aa80fcde9685efad6fb984cacdb14b9f6affe4dd956090bb7a0389bf39bf9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:5875-5886 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6787-6798 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5875\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5875}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d90c02cb1481b49e24ea02de29956fd997341c7d30d2adc3cf32e0cb7465bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:6281-6292 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8350-8361 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:6281\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6281}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c7fcf8c8adccbceeaf1764805ce93ef86e4a5ec7b2e087f50231da01f0819f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:212-223 | Packages/OsaurusCore/Tools/ToolEnvelope.swift:671-682 \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 \u0060Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:212\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":"Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"856d9ccfcf71a2f4b31daa0bf21cdb6bf04c9e2aebb9092ec735da61946750b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:244-255 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:612-621 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:244\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fde3fdae2bbea5d70ae3c6965aedb17f2630c3cadbc7d513dbf462542a6968"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/AgentCollaboration/AgentCollaborationService.swift:92-103 | Packages/OsaurusCore/Services/AgentCollaboration/AgentCollaborationService.swift:113-124 \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 \u0060Packages/OsaurusCore/Services/AgentCollaboration/AgentCollaborationService.swift:92\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":"Packages/OsaurusCore/Services/AgentCollaboration/AgentCollaborationService.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"532c909574798d7b087e50548e951db8dbaf01464b0f2ba0c92b434456ebfee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:521-532 | Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:574-585 \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 \u0060Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:521\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7045262d072566676ef0068339187e4d1ab5a7209cc0bc1c9e548befa5aa03c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ChatEngine.swift:1929-1940 | Packages/OsaurusCore/Services/Chat/ChatEngine.swift:2111-2122 \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 \u0060Packages/OsaurusCore/Services/Chat/ChatEngine.swift:1929\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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"467e02ffc944971c9608877e825aa71c2e952bcf1a4c36842d3c422e48ccc9f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/ChunkedFileDownloader.swift:677-688 | Packages/OsaurusCore/Services/ModelDownloadService.swift:2069-2080 \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 \u0060Packages/OsaurusCore/Services/ChunkedFileDownloader.swift:677\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":"Packages/OsaurusCore/Services/ChunkedFileDownloader.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6ab59aa696957b32404b9e1ba79521b09abe29864cc50624d8ed2ec8a5f95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:1443-1454 | Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift:661-671 \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 \u0060Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift:1443\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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a41e02eaa45d2144a929ba09ccbda369a062696f9440467869e45722c082776"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Packages/OsaurusCore/Services/GitHubSkillService.swift:174-183 | Packages/OsaurusCore/Services/GitHubSkillService.swift:999-1010 \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 \u0060Packages/OsaurusCore/Services/GitHubSkillService.swift:174\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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c67996d1062e8536fcc4c264ba4280fbaa25dd691c6df44ede32ad407f9550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Packages/OsaurusCore/Services/Harness/PiRPCAdapter.swift:253-262 | Packages/OsaurusCore/Services/Inference/ClaudeCodeStreamDecoder.swift:143-154 \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":"Packages/OsaurusCore/Services/Harness/PiRPCAdapter.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf397f59fbd711143fe504be39b1367af7624b67ae0b50e7be6b60fbbaa2e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:421-432 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:315-326 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"563d0352520c565d1095740106605fc5be30322e4b93a474eba6625706a647d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:321-332 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:402-413 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:321\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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c92909cac3fb8cf16c503db477fe721bcb8eb41de3ab9e1671214bab0f464f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:190-201 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:117-128 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8e0583fd0ca1b6168fb60110ea94c036bc09f999806cf3cf1ccb1e78b5181a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/Inference/CoreModelService.swift:317-328 | Packages/OsaurusCore/Services/Inference/CoreModelService.swift:362-373 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Inference/CoreModelService.swift:317\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, \u0060Packages/OsaurusCore/Services/Inference/CoreModelService.swift:374\u0060 calls \u0060findInstalledModel\u0060 and \u0060Packages/OsaurusCore/Services/Inference/CoreModelService.swift:329\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":"Packages/OsaurusCore/Services/Inference/CoreModelService.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99ec1c6fddde316f4bd04d8fbca61d1d2fa470fb3c519fc2afbaa6e79343d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/Inference/MLXService.swift:582-593 | Packages/OsaurusCore/Services/MCP/MCPAuthFailureProbe.swift:81-92 \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":"Packages/OsaurusCore/Services/Inference/MLXService.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"716fd7f9d6b0de659c013df77df67643e05e036f9e8a96442d6e86446f040174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift:188-199 | Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift:213-221 \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 \u0060Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Knowledge/KnowledgeIndexService.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2e38cc506d179d65f49f64bb9293cc5d6e78cafd4e636289e88df5329dea4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:198-209 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:228-239 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:188\u0060 calls \u0060envAccount\u0060 and \u0060Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:218\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":"Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a8cfcc949d564473c038fa72e9edd1283262de4eb72c8f885dee887c382cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime/ModelCapabilityLedger.swift:136-147 | Packages/OsaurusCore/Services/ModelRuntime/ModelPrefillTuningStore.swift:69-79 \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 \u0060Packages/OsaurusCore/Services/ModelRuntime/ModelCapabilityLedger.swift:136\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 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":"Packages/OsaurusCore/Services/ModelRuntime/ModelCapabilityLedger.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e33f6df41c3406fad6c11e9cc4ad2af660ecf2033e7b5f3f214de98edbb10e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift:213-224 | Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.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 \u0060Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift:213\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060provider\u0060 to \u0060RemoteProvider\u0060 in one and \u0060MCPProvider\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":"Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb387222efb3ed37332596916e8f55f2994ecfb4d27a563dac2118286889d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201312 lines \u00D7 3): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:1786-1788 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:1799-1810 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:1822-1833 \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 \u0060Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:1799\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"710e47a2ede799924edd1b77d00285368f1308ee2a7498a930fcf2053a1f5480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:908-919 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:926-937 \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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b95f9155c3b42ffae25000abbea5b25141d5cc19bbe3a79c661c687a505d61f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:2044-2055 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2543-2554 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":2044}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0de785943c67b552d1aff1d31c61c7af16d76fa90e5d29d623fc954abc3531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3300-3311 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3327-3338 \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 \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3300\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3300}}}],"partialFingerprints":{"codehealthFindingId/v1":"efeffc8843971614b29730922502ff6764fb1df363e6979286cd5309ef6f4c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:649-660 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:749-760 \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 \u0060Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:649\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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23ad81d6787275341232e45a933fda7b61584ff1e93ec697b380ab6a7e8e332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:1067-1078 | Packages/OsaurusCore/Views/Sharing/SharedWithYouSection.swift:124-135 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0740f45fe190863474ac3e9851a1d8b849f95dc046b6e9b5cac06c722ca1545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatView.swift:9033-9045 | Packages/OsaurusCore/Views/Chat/ChatView.swift:9067-9078 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatView.swift:9033\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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":9033}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81bbb261b7f1c80e645af319a307474463842ef1e530cec812092f37976210d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4532-4543 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4761-4772 \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 \u0060Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4532\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4532}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd30d564145f6d8b87834df713240412e38b9a676fd0229a04d8fcf99afc3360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/HostedApprovalCard.swift:58-69 | Packages/OsaurusCore/Views/Chat/HostedSecretCard.swift:82-93 \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 \u0060Packages/OsaurusCore/Views/Chat/HostedApprovalCard.swift:58\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":"Packages/OsaurusCore/Views/Chat/HostedApprovalCard.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad5e34f987a90f6e32d973b96099855eba4febc020fd68b6e8b07c525f387b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift:1057-1068 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:4184-4195 \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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f36cac71c000613d97da5df13f9db92bb3d51237d3da650d74112f607b7a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Packages/OsaurusCore/Views/DesignSystem/SettingsAbilityRow.swift:39-49 | Packages/OsaurusCore/Views/DesignSystem/SettingsAbilityRow.swift:155-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/DesignSystem/SettingsAbilityRow.swift:39\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":"Packages/OsaurusCore/Views/DesignSystem/SettingsAbilityRow.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23554e951fa0dcf0d267508c0809b803a750afa44b075d569a930f8399798d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:572-583 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1245-1256 \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 \u0060Packages/OsaurusCore/Views/Event/EventFormComponents.swift:572\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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8ef0710c8543b6c828cb92f9c51960610a188ddfbe1718726343ab1cd75f6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:157-168 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:169-180 \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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7dd867156cd96c301cac51da364d132efe2a5b4fa98fb189ce56fe69b74f94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:990-1001 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1081-1092 \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 \u0060Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:990\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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4935e431de9f4cc7ec0011c7b67ee4d4b6b1c1eb6ee6333f84e7cf3ac300f12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:681-692 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2260-2270 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:681\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61fbcffd996126b0b2bf21945bcb7ba6002e068e8623924dc52b64477beead2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Sandbox/ProvisioningJourneyView.swift:296-307 | Packages/OsaurusCore/Views/Settings/ConfigurationView.swift:582-593 \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 \u0060Packages/OsaurusCore/Views/Sandbox/ProvisioningJourneyView.swift:296\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":"Packages/OsaurusCore/Views/Sandbox/ProvisioningJourneyView.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fc09ecd0d939bc1e71a94cdb7ac4da2ea780e2ce5e31f7af986a75caac3700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelAuditRows.swift:53-64 | Packages/OsaurusCore/Views/Settings/AgentChannelAuditRows.swift:126-137 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelAuditRows.swift:53\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":"Packages/OsaurusCore/Views/Settings/AgentChannelAuditRows.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"240460212d33ee8358da945a1db5e5017ced7aabe52e6dc594008e7e7893347f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:452-463 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1313-1324 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"817cc0c96df128e957b7935ea26e7bdedca6a1800f351958f873dd25ba66dd81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:682-693 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1781-1792 \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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"9492617b10f73984cfd68393bdc8e29d414bcd81527eac21f9dee62afcc13895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:224-235 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:309-320 \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, \u0060Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:220\u0060 calls \u0060frame\u0060 and \u0060Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:305\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":"Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2d947f65b9c35dbe46242cdfbeaea11c841359ef8014a52db2de4a86821b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:632-643 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:840-851 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:632\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"826c4fe51ff61879824858ca4cba1e14dfd1962312f09cb3e6ad053cf57e0d78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:270-281 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:877-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:875\u0060 calls \u0060SettingsFieldRow\u0060, \u0060VStack\u0060 and \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:269\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34fb536ada582bd14b7adf58b8cc121ec22954a7fc6eb138dadc59618d28f12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:284-295 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:268-278 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:284\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd08870b3fb3160747a3785585ec1e296be1353dcd34677bcf45bf781850ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:496-507 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1733-1744 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:496\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb365df3313b6c9d717acb2d907af4b001e66a44224e5ee910cb8f45d6fcdb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ServerView.swift:1486-1497 | Packages/OsaurusCore/Views/Settings/ServerView.swift:1610-1620 \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 \u0060Packages/OsaurusCore/Views/Settings/ServerView.swift:1486\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":"Packages/OsaurusCore/Views/Settings/ServerView.swift"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"910534e90a75af0d386266765e5dde59d206a7b3849534ddbe6e4a89cac23422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): Packages/OsaurusCore/Views/Voice/TranscriptionSettingsTab.swift:340-351 | Packages/OsaurusCore/Views/Voice/VADModeSettingsTab.swift:301-309 \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 \u0060Packages/OsaurusCore/Views/Voice/TranscriptionSettingsTab.swift:340\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060title\u0060 to \u0060\u0022Stop Behavior \u0026 Cleanup\u0022\u0060 in one and \u0060\u0022Behavior\u0022\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":"Packages/OsaurusCore/Views/Voice/TranscriptionSettingsTab.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fe9fbf86c89a98136c30cfa3a3ef11ec57871340480775defd1b2fa8a66696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:525-535 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:228-239 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:525\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2468872ba80c26b135d87e195d4886407406e6aa042cc8fb5369344f59931b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): Packages/OsaurusCore/Networking/HTTPHandler.swift:4709-4719 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10516-10526 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12547-12557 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13050-13060 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13209-13219 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14841-14851 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15303-15313 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15869-15879 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16166-16176 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17116-17126 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17431-17441 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17825-17835 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18471-18481 \u2014 all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10533\u0060 calls \u0060injectingEmptyModelIfMissing\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:4721\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4709}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8e36b62a806d440fb2f14a28dae65cae761cf70ab4aef549e03337d4c665ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 11): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3499-3505 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3595-3603 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3641-3647 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3662-3668 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3675-3681 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3694-3700 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1685-1691 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2112-2122 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2146-2152 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1683-1690 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:125-131 \u2014 there are 11 copies across 4 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3499\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, \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3671\u0060 calls \u0060array\u0060 and \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3508\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3499}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa08caef7eebb4876618feae07733c6964be22472bed9d18b33f1c9f827dd532"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 7): Packages/OsaurusCore/Networking/HTTPHandler.swift:4818-4827 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4915-4924 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4982-4991 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18163-18173 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18213-18223 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18918-18928 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18968-18978 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:4818\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4818}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7e3134e9f6af5ff50ea19e494547cde29d9a88701e4fc0b82c5a88af384e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): Packages/OsaurusCore/Networking/HTTPHandler.swift:1579-1589 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1873-1883 | Packages/OsaurusCore/Networking/HTTPHandler.swift:1946-1956 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2020-2030 | Packages/OsaurusCore/Networking/HTTPHandler.swift:2316-2326 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16731-16741 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:1579\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"011e19b3b6d15c87b6f9372d7ee62b2ad3c8eb349a2b258f5c2a059d7d4e826d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): Packages/OsaurusCore/Networking/HTTPHandler.swift:17206-17216 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17288-17298 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17580-17590 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17627-17637 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17749-17759 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17785-17795 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17206}}}],"partialFingerprints":{"codehealthFindingId/v1":"4933e0894bd3e96bf4b92d370b45873e360fd168a88f32bcd0684f1bca4efd54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:453-463 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:605-615 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1011-1021 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:531-541 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:616-626 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1108-1118 \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 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:453\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"c092a2b75cb6c87e86318e9436fe5068fcf937c680746aecf51c0343fc96f7b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Packages/OsaurusCore/Networking/HTTPHandler.swift:14861-14871 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14885-14895 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14909-14919 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15331-15341 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15358-15368 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14861\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":14861}}}],"partialFingerprints":{"codehealthFindingId/v1":"de37f2008731ef22959e8bb29054e8e629d0b5e18108a2a874852d18b1ae6cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift:236-246 | Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift:254-264 | Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift:273-283 | Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift:554-564 | Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift:572-582 \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 \u0060Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift:236\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060provider\u0060 to \u0060RemoteProvider\u0060 in one and \u0060MCPProvider\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":"Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cde00e0bfc7c6e1a38cfd999ea4b457dd78b554b2a4c7c985e2292b76701ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:5944-5954 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6066-6076 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8400-8410 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8774-8784 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5944\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5944}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa82ea5e31410fa08b91225b86fab0a53ac74ba9caaf948f06efe023517764b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:10284-10294 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12880-12890 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12958-12968 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13036-13046 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10284\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10284}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b0b54f7d26bc20daa57afc0773c10daf9acc636d820f3c0e723d4486391f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift:183-193 | Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift:266-276 | Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.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 \u0060Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift:183\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, \u0060Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift:279\u0060 calls \u0060date\u0060 and \u0060Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift:194\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":"Packages/OsaurusCore/AppleApps/Calendar/CalendarTools.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3431bbe21a02a3f790ee9e86dbba0c47c31dda61a54bf568141315496ac5ce0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:648-658 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:737-746 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:855-864 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:648\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"273b0f5c3849d265ae98eaaeb5cbe0a8dbdd8529492e2105b72c9ad335ace847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift:166-176 | Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift:206-216 | Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift:259-268 \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 \u0060Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift:166\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":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e58e09ea45c2e9e536162e2ff3259b14e8e2b3533a52a69808d7db59606a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:5726-5736 | Packages/OsaurusCore/Networking/HTTPHandler.swift:5917-5927 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6559-6569 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5726\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5726}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6072aa064ea1cdd0a79f80e5f2272e7295336e92eb016d6214ad12f5f778873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:6282-6292 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6359-6369 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8351-8361 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:6282\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82952005501b0a3da9e9272dcea9e2212d1c09ff5a4ecbb6208c626a7b48285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:13944-13954 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14028-14038 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14131-14140 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13944\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, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:14130\u0060 calls \u0060VideoJobResponseDTO\u0060, \u0060String\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13944\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13944}}}],"partialFingerprints":{"codehealthFindingId/v1":"a396e6519552f587123cbda1de3bbfee844f5954bf00f4c53e78aff4f950cb1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:15467-15477 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15938-15947 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16253-16262 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15467}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddfb588dccbb3e31bf3b5b8783e81ae7e5f47c07ae68bb676e66059e32b45c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:554-564 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:869-879 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:653-663 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"627a4da10f40f0559081209e021d3fb45df0a6eaf14a91ad50c564742f794871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:2233-2242 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1249-1259 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1335-1345 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1249\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":"Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift"},"region":{"startLine":2233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7421009cc44187cb553be151fb7ba8ec0d6d14421ad710b8414863dc2de1f0ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Storage/MemoryDatabase.swift:2307-2317 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2403-2413 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2431-2441 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:2307\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060limit\u0060 to \u0060Int = 200\u0060 in one and \u0060Int = 500\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e03b1742a2e7dba791b637da368752d7ee178acff44e2fed251526c061ee54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3219-3229 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:45-55 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:156-166 \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. 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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3219}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff5c45ccd88a225a563a82d815654d249486a9ce0f8d6a7cb575d49765ea853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:284-294 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:674-684 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:1394-1404 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:284\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f629b08226baf0fa91b90e447b4259a7da5b816400751bda37916419a09409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:314-324 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:392-402 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:469-479 \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 \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:314\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, \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:466\u0060 calls \u0060StatusChip\u0060, \u0060L\u0060 and \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:312\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":"Packages/OsaurusCore/Views/Memory/MemoryComponents.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53b19a78a292c4a9ce470ace4658b925cecc819291f5523cbae4b9486cec5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:548-558 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1117-1126 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1149-1159 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:548\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e1fa335a147a555bda30fc4efd3b1162b2d93a96932164554c198ad0ad88ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:334-344 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:387-397 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:546-556 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:334\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s8\u0060 in one and \u0060theme.space.s2\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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"476f05160ee2286a867310546b0d097330d04550c09483d2cc68ddebeca17b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:324-334 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:374-384 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:404-414 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:324\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, \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:320\u0060 calls \u0060fixedSize\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:400\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4693913aaab6333b4cceccd93f2d53eba2d495967dc9d77e06ff9b33cfe73c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:560-570 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:370-380 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:780-790 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:560\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"525b36318d17ef1ec548edcba8c2c5461428cb1b63763362b445328be9907138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift:114-124 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:569-579 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:695-705 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift:114\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerComputerUseLoop.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b90e0d1ea6eba217680c291cf12f6ec284d002fa246a8255fb72a32bc19d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift:80-90 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseTraceLog.swift:72-81 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift\u0060 and \u0060Packages/OsaurusCore/ComputerUse/Loop/ComputerUseTraceLog.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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 \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift:80\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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8818df63e27c03053894237ad4e59bc6984176311c46c110e178510a07b3c60c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift:120-144 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseTraceLog.swift:36-60 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift\u0060 and \u0060Packages/OsaurusCore/ComputerUse/Loop/ComputerUseTraceLog.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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 \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift:120\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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0035361db99d5524b9d3c1a09ab7b093c1e753738cebeebe76496f2c7ad81a8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift:485-495 | Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift:667-677 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e27d0b3697ba24d1ad6e49d41f8ff67f11b27d085af92f590e891574a9dcdec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:867-877 | Packages/OsaurusCore/Browser/Runtime/BrowserSession.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. 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":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d506493218a1feeac9121734f11a702969b7c2ab48680d03f5a62d72189b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift:1519-1529 | Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift:1532-1542 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift:1519\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abc7ba7f71f873c48fa2e954b8be4317d3a069e9794111bfdf896a58e209042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift:392-402 | Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift:451-461 \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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7a0d9109609a859bed2d0a1993c7906bd5af17775140cd26917e8b6240e50b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Packages/OsaurusCore/Folder/FolderTools.swift:6274-6284 | Packages/OsaurusCore/Folder/FolderTools.swift:6376-6383 \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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":6274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3f349a2993f93a60bafcc3005f82996ea1a44c92ede0034dc9452f7196b667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Managers/MCPProviderManager.swift:710-720 | Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1080-1090 \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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d2a3655b6205609747674c80e7790bfa4bcd59ff2f987c86f9a782d190d88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1843-1853 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7574-7582 \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 \u0060Packages/OsaurusCore/Managers/RemoteProviderManager.swift:1843\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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf42047815db638bc8e0b1ae8df0535a2d22601d8e41fc9335718ccfc2c7826"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Managers/TTSService.swift:500-510 | Packages/OsaurusCore/Managers/TTSService.swift:619-629 \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 \u0060Packages/OsaurusCore/Managers/TTSService.swift:500\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":"Packages/OsaurusCore/Managers/TTSService.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"755ec00534c7cbb763d6cf2ef35093f02cf9fa8b19e25b3d23e9ed5a351f6ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:1625-1635 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16760-16770 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:1625\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"6099ff7c54be5d135bf6cf7ae583f0ddaebb1805e39035c95842df8c8c967548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:3520-3530 | Packages/OsaurusCore/Networking/HTTPHandler.swift:5871-5881 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:3520\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"64243f20523491b9495bbcbef790a8523ab8f519a3837d4764ac51b77af46476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:6783-6793 | Packages/OsaurusCore/Networking/HTTPHandler.swift:9173-9183 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:6783\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6783}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3d61aa2345563c981fa1e2e30d5149c195e494d2802e813fa2d718c1343955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:7561-7571 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12340-12350 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7561\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7561}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5200ff045b5e8e61ff169649b7ca5f11497564b890537ffa25b77099db328b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:10229-10239 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10390-10400 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46e6c7a297a1edc0cd1feae7b7ffd56502f7b8ac08a8f007ff8f2df8258e7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:12129-12139 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12164-12174 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12129\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12129}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6598fb1477ebe24c63ad2005a10d03b1ae0ff53780d0c72bb4a85d6d499c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift:755-765 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift:767-775 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abf255bd63d02af88c07d1d3f3a6885571e6873e15261e5722ae1f304987d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:437-447 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:508-518 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:437\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7122d23a690e0e6ba162d6d3f2fa879564a0cfefc39cc1f78f77029dbf01ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:69-79 | Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:168-178 \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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"85179853a686f4b8ee05297edce83f5dd50e5d02430368e542883ba32cb3abb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift:65-74 | Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:861-871 \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 \u0060Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:861\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, \u0060Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:858\u0060 calls \u0060NSAppearance\u0060 and \u0060Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift:64\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":"Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a7238f86b0909efcac85afbeac5243e1aec2a6659b4eb614517c106ac178b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Packages/OsaurusCore/Services/Context/ResponsesEvaluationStep.swift:41-51 | Packages/OsaurusCore/Services/Plugin/PluginResponsesCompatibility.swift:17-24 \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 \u0060Packages/OsaurusCore/Services/Context/ResponsesEvaluationStep.swift:41\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":"Packages/OsaurusCore/Services/Context/ResponsesEvaluationStep.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc37b0286c7a042142103874aae1cd8ed813da7286839c5035c06d266b4b8f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:867-877 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1237-1247 \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 \u0060Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:867\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"609eba83663a39b73949919726c53ad37c007be306a0d69f7898a936387704ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift:72-82 | Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:61-71 \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":"Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96e2541468a50af34488b5e86885a50d59f6b7d829d94d80557a322990bc2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift:880-890 | Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift:356-366 \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":"Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b25320ae0d004e8a22acea4854f80c6cc29e170ae3fcd2e28ddf0c9a64d5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1357-1367 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1417-1427 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1357\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"579014f32d88b6560451cab3f896e6184f3f1fa2a03eb0c0d2217508f012b42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:376-386 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:222-232 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c73bfb1999e0c21cea572bdc2e60557cbf3dd288a63d949434b4912dc0bb6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Packages/OsaurusCore/Services/MCP/MCPServerHub.swift:157-167 | Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift:226-235 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/MCP/MCPServerHub.swift\u0060 and \u0060Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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 \u0060Packages/OsaurusCore/Services/MCP/MCPServerHub.swift:157\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":"Packages/OsaurusCore/Services/MCP/MCPServerHub.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d4d5f165f892bbfa976ef901fcacccaffb45b115176d80cb2bd5975c3458ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/Method/MethodService.swift:132-142 | Packages/OsaurusCore/Services/Method/MethodService.swift:152-162 \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 \u0060Packages/OsaurusCore/Services/Method/MethodService.swift:132\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Services/Method/MethodService.swift:131\u0060 calls \u0060replacingOccurrences\u0060 and \u0060Packages/OsaurusCore/Services/Method/MethodService.swift:151\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":"Packages/OsaurusCore/Services/Method/MethodService.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85ed355a2eae1aeb6d04741f6fccef4550edb4db2b6472cfc9291a06d83afca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift:484-494 | Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift:498-508 \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 \u0060Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift:484\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":"Packages/OsaurusCore/Services/Router/RouterAccountUsageCenter.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b6b0cd47f7205b49d3489fc17604d3b5a9f5f1897dd4de10504d560ebec0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Packages/OsaurusCore/Services/Sandbox/SandboxPackageManifest.swift:134-141 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:469-479 \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. 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":"Packages/OsaurusCore/Services/Sandbox/SandboxPackageManifest.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8b437166b07db3bfd5e8c58c17dd867e01b62ecff6dfd4536d429beb4b0053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201311 lines \u00D7 2): Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:584-589 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:608-618 \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 \u0060Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:584\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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"2504aa47ef5ee8af2b81e7b92e5a8f3dc0864cabf91e93418c16a424823ef427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:668-676 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:730-740 \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 \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:730\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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66336e2319f7c02a0ccef2a910f960203b78759cbc9fca834640bb32e5880aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift:241-249 | Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1075-1085 \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 \u0060Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift:241\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":"Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d12c42e14e8464c35e96a929c959c174af7c3445e2d6cde71e404f228e0d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3266-3276 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3328-3338 \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 \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3266\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":3266}}}],"partialFingerprints":{"codehealthFindingId/v1":"daba9d1072e956f4be3784160cc7193d3b4dbc5f193ca99559c80965a9827e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentsView.swift:2660-2673 | Packages/OsaurusCore/Views/Agent/BuiltInAgentAvatarPicker.swift:178-188 \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 \u0060Packages/OsaurusCore/Views/Agent/AgentsView.swift:2660\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":2660}}}],"partialFingerprints":{"codehealthFindingId/v1":"124bbdf5caa75ac2faa722ee41c165a93d9c4584c6a9d5e1861420869089eed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentsView.swift:5618-5628 | Packages/OsaurusCore/Views/Settings/OrchestratorSupportSections.swift:198-207 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5618}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca3e56ec70521c65f011e124459ac12ca6f787459d9e766105eabf11ec96f54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseSharedUI.swift:227-237 | Packages/OsaurusCore/Views/Event/EventDetailView.swift:169-176 \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 \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseSharedUI.swift:227\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseSharedUI.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b782fe6074855656d8d163607f363212543f4dfbf75ed6d4971ff9b17b85aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5371-5381 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5386-5394 \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, \u0060Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5384\u0060 calls \u0060hasItemConformingToTypeIdentifier\u0060 and \u0060Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5369\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5371}}}],"partialFingerprints":{"codehealthFindingId/v1":"319284817725e07bdcda6f990b93642d30f9a8fe2d1b835967a57776e993476a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5896-5906 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5934-5944 \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 \u0060Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:5896\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":5896}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a512d1afc17298d00ba2d23f02e2c927e8dd2f1dcda1611da30c7280d41d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/HostedSecretCard.swift:58-68 | Packages/OsaurusCore/Views/Chat/SecretPromptOverlay.swift:152-162 \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 \u0060Packages/OsaurusCore/Views/Chat/HostedSecretCard.swift:58\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":"Packages/OsaurusCore/Views/Chat/HostedSecretCard.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1672086c94bbecde1eca06135970166c46cef6071a5b427fb7d157e22272bf2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201311 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:238-248 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:228-238 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1401-1404 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:238\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:249\u0060 calls \u0060tearDownChildren\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:239\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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce3a83c3fbf8a4a429e6a54f6a98d2a9041372c09f997d769c0ef04584f95f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift:1341-1351 | Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift:453-463 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bcefc510a31119435d91028ce036754dcc7bab464197a338b61d2fb9c4bd30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:1545-1554 | Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:1833-1843 \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 \u0060Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:1833\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":"Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4ef1f6be13a93fc4c93d1234c2adf0b66a30d8ebc525ccbb11320de105e936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Memory/MemoryView.swift:497-507 | Packages/OsaurusCore/Views/Memory/MemoryView.swift:528-538 \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":"Packages/OsaurusCore/Views/Memory/MemoryView.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33ddda283f9d234bdeefe0bb6792be734197e018e33b8a64ab0a6d62875e78a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:426-436 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:644-654 \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 \u0060Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:426\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":"Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca60f0ea0303134c09cf5c217a9677099f27f756cf66389347d371c895edfb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:983-993 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:1059-1069 \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 \u0060Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:983\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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f04ad99082621c0fe18548aa67d92ee20d022b08809494ec8a204733fdccad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:556-566 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:685-695 \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, \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:696\u0060 calls \u0060install\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:567\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"4451bd2cbcebd12a940dc9b5dc5e2417869a6e74274a31015c04a4e1c8dd1418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:984-994 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1892-1902 \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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e10dbfeb4fb6f8069833ef6f1f2078f721987c39ef16170869be009d6c50786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:874-884 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:536-546 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:874\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":"Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"576c799cb076185e8a3dee7f860bb9dc8209826c7d5a8474275793f92efbfa88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Packages/OsaurusCore/Views/Voice/TranscriptionSettingsTab.swift:361-370 | Packages/OsaurusCore/Views/Voice/VADModeSettingsTab.swift:358-368 \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 \u0060Packages/OsaurusCore/Views/Voice/TranscriptionSettingsTab.swift:361\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":"Packages/OsaurusCore/Views/Voice/TranscriptionSettingsTab.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fa0c9b365c6a2f02ee9b31ca31cb23db095942f0c7daa1edbe860e0f34db66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:256-266 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:221-230 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:256\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b150ae01f9797dab55a81f9b44fc6b7ed24bc22bf18bb952701d6019ea48b8a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): Packages/OsaurusCore/Networking/HTTPHandler.swift:10161-10170 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10287-10296 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12883-12892 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12961-12970 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13039-13048 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10161\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3557cb79d8d4cf68fc2347bc70c8297b74f7b43801e8e941c1a3431d3289f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:615-623 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:648-657 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:737-745 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:855-863 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:615\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9dc7e18ff66fda8a62cda9d17b639d603fd0d8e12e1143dc03e5565633176d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift:35-44 | Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:753-762 | Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:813-822 | Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:916-925 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift:35\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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3478efc2d3235d1d6b161007ed8171398dc23e104e72ac3b6c1b2e65d76a7c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3547-3556 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3637-3645 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3659-3666 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3690-3698 \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 \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3547\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65aebd643ea0b65024d1470e214599e0f548a184cbb907c140c2371023c81c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Packages/OsaurusCore/Services/SystemPermissionService.swift:912-921 | Packages/OsaurusCore/Services/SystemPermissionService.swift:946-955 | Packages/OsaurusCore/Services/SystemPermissionService.swift:978-987 | Packages/OsaurusCore/Services/SystemPermissionService.swift:1033-1042 \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 \u0060Packages/OsaurusCore/Services/SystemPermissionService.swift:912\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":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"749e918a88920d632039dc5ea5e1b1da6a771f9f90e136c70369f7b3b10a05df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Packages/OsaurusCore/Views/Agent/AgentsView.swift:169-178 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:166-175 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2537-2546 | Packages/OsaurusCore/Views/Workspaces/WorkspacesView.swift:94-103 \u2014 there are 4 copies across 3 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Agent/AgentsView.swift:169\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e3a8c37284ff3026e33d71d9fd583e72f9355ed066d3aebd81fcd0f5fae0db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:675-684 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:633-642 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:754-763 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:892-901 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:675\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"912adf70c9162ae4a50122c86fcae6b761b08a4818fca40ddb0c543633fa9032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:12895-12904 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12972-12981 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13063-13072 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12895\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12895}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b16e24d26b4845c8374c2b78d282871a8e89f294e1ddd9ab850ed2bbed62d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:13727-13736 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14446-14455 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14509-14518 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13727\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060path\u0060 to \u0060\u0022/images/generations\u0022\u0060 in one and \u0060\u0022/images/edits\u0022\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13727}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b31b4f0cbb633da016845003569e187e04eac28cd0ade111894d25ea35cc18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3550-3559 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1876-1883 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:133-140 \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 \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3550\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3550}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f4f7bce2cd69c15977121661d3a05d8d1077cd7cacb0466320ac822f28f407"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1358-1367 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1418-1427 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1529-1537 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1358\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5b3a19989c8bf720f65baeab8c2d105be18d439e64bde920fb7b82253d516e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Packages/OsaurusCore/Services/ModelRuntime.swift:1536-1544 | Packages/OsaurusCore/Services/ModelRuntime.swift:1592-1600 | Packages/OsaurusCore/Services/ModelRuntime.swift:3108-3117 \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. 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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"546e6ffe58bc1da276568a5b287861a5bad457212ea9be65e7c27b9ae5a76ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1565-1574 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1980-1989 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2465-2474 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:1565\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e019f19aa9a0ee27509bb80480372980902fe3281be337a5d7d5678d0f4f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Packages/OsaurusCore/Views/Agent/AgentsView.swift:5614-5623 | Packages/OsaurusCore/Views/Project/ProjectsView.swift:400-408 | Packages/OsaurusCore/Views/Settings/OrchestratorSupportSections.swift:194-202 \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. 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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5614}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fe7d6d370bd0226892490cb77ac90b97c6f876a9c169fce9c207bd80869fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:695-701 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:377-383 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:2246-2255 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:2246\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, \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:692\u0060 calls \u0060constraint\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:374\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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"864d5ee63448ba4e9d325efbe1a35c4fa0ced3210802534ccfe3bbed2cfc83ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:120-129 | Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:165-174 | Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:198-207 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:120\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, \u0060Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:130\u0060 calls \u0060fixedSize\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:208\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":"Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63d33d52b0177db3a15e1769a7d29ab4b0a0a8d73b28f98461378fdb635d6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:310-319 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:388-397 | Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift:623-632 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:310\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":"Packages/OsaurusCore/Views/Memory/MemoryComponents.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cb0377a8c4710815fab1382aa568c0ce905bbd5df12ceb1631522f7314079c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift:72-81 | Packages/OsaurusCore/Views/Plugin/ToolSecretsSheet.swift:102-111 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:415-424 \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 \u0060Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift:72\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e432da3915c146ca2abf4c7755dcbae7305c42a41c78063b2031ac2ecdf59a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:555-564 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:684-693 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2263-2270 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:555\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 after the matched lines, \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:696\u0060 calls \u0060install\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:567\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d845d662a7de585c68a7c267e257a79a70a47b0e22c8b6e79e735643629ab9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift:722-731 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift:765-774 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:789-798 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34b372c7baa519009e100a1c347e7d81d0f08c01e4897fca85ac7cebac54e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestExtract.swift:32-41 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestValidate.swift:25-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestExtract.swift:32\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, \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestExtract.swift:30\u0060 calls \u0060extractManifest\u0060 and \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestValidate.swift:23\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Manifest/ManifestExtract.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1827299b4a72b6db2a522210217409fdfd6ff9c4df20c2cbb98a77e525c2c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift:340-349 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift:432-441 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift:340\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsInstall.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec56d5cf37b8c11cc8d88853c7abfa4bf33a2f63049233a388f54338e13dca6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Reminders/RemindersTools.swift:275-284 | Packages/OsaurusCore/AppleApps/Reminders/RemindersTools.swift:301-310 \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 \u0060Packages/OsaurusCore/AppleApps/Reminders/RemindersTools.swift:275\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":"Packages/OsaurusCore/AppleApps/Reminders/RemindersTools.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d418ce859e6431c84e499cedaf1fbba3703f3a0c202c2742a2634263150647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2495-2504 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift:1786-1795 \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 \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.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 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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":2495}}}],"partialFingerprints":{"codehealthFindingId/v1":"acce2b8c7084ee3624d36087a1fab9b70bd66753ce905df4892ad1a27a530933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:86-95 | Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:97-106 \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 \u0060Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:96\u0060 calls \u0060stringArray\u0060 and \u0060Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:85\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":"Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a0760d2a73034b3abbf7dd2c1523f0e55d743fa1b5f6706c48608ab13eeb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift:1108-1117 | Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift:1122-1131 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift:1108\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigManifest.swift"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d600c2793cbc7a8f9d1fb3d799186ec76cb114c6f3301cc68bfcd48eaaf738c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2013-2022 | Packages/OsaurusRepository/OsaurusBundle.swift:594-603 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2013\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2117e111cf550823593f496ebe5200d5bb178f57507270751cbf3f36da7984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Managers/InsightsService.swift:799-808 | Packages/OsaurusCore/Managers/InsightsService.swift:1177-1186 \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":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16cd1cc2411f83655ffb129e1f2604fe8fbe7c3f081793097d1e79494142da4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Managers/Model/SpeechModelManager.swift:270-281 | Packages/OsaurusCore/Services/AgentDelegation/ChatResidencyHandoff.swift:276-285 \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 \u0060Packages/OsaurusCore/Managers/Model/SpeechModelManager.swift:270\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":"Packages/OsaurusCore/Managers/Model/SpeechModelManager.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e37b43edd17bcfc0d77b5f5092398ac099aae009f62ff5a035505070388815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/Agent.swift:1075-1084 | Packages/OsaurusCore/Services/Chat/AgentConfigSnapshot.swift:242-251 \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":"Packages/OsaurusCore/Models/Agent/Agent.swift"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff84cb33b5796dfcfc6723f715fc27582948425d46d36489de37f17f3facb51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/ContentBlock.swift:1347-1356 | Packages/OsaurusCore/Tools/RenderChartTool.swift:882-890 \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. 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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67f34521d07e6f56573a0544ff9e7e2362f8c4b943defd7af3694fbbad1c881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:615-624 | Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:654-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 \u0060Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift:615\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":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b34a3a0131f1c0c496b3f183cfd4fdfc3d803defbd88649cc5c526f1d23dce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:211-220 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:166-175 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 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":"Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"250dc88375a9de4a249dc7286fa026ba2460f5ee6ce498761ecb6e17d3068c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 3): Packages/OsaurusCore/Models/Project/Project.swift:61-64 | Packages/OsaurusCore/Models/Schedule/Schedule.swift:594-603 | Packages/OsaurusCore/Models/Watcher/Watcher.swift:186-195 \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 \u0060Packages/OsaurusCore/Models/Project/Project.swift:61\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, \u0060Packages/OsaurusCore/Models/Schedule/Schedule.swift:593\u0060 calls \u0060container\u0060, \u0060decode\u0060 and \u0060Packages/OsaurusCore/Models/Project/Project.swift:61\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":"Packages/OsaurusCore/Models/Project/Project.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c1c1b558240b336579d4d418403217285de8d956d158021d92cafc373dfd49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:8576-8585 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8798-8807 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:8576\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8576}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6dd431d325488a3c75a45f6ccfb459844a265647f6e30b9e690173741cb3740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:13993-14002 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14078-14086 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13993\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13993}}}],"partialFingerprints":{"codehealthFindingId/v1":"74dd996ea092e4ac548b9cf69f74ccf15c29684502e4871ac04f1817eb31d842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:15588-15595 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15694-15703 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15588\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15588}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc43129c571e6e4a6bade574952f9d07175fc15d6929e01c9d1965c330dfb82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:15710-15713 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18147-18156 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18902-18911 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:18147\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15710}}}],"partialFingerprints":{"codehealthFindingId/v1":"318c03a25208e6919143bcde21658afc28d3e3a805f44ff0b5f56bf664ec5f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Networking/RelayTunnelManager.swift:704-713 | Packages/OsaurusCore/Networking/RelayTunnelManager.swift:1359-1368 \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 \u0060Packages/OsaurusCore/Networking/RelayTunnelManager.swift:704\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":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c7f52f3ba6f6b6447794d130f3b70482e47c121224f6135edbcc4c11350e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift:1236-1244 | Packages/OsaurusCore/PrivacyFilter/Core/StreamingUnscrubber.swift:261-270 \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 \u0060Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift:1236\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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a2c9f04abc98d5d52367d63186ba99a7cb2bf5883125e280e05979b69e35b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift:713-722 | Packages/OsaurusCore/Services/Inference/CoreModelService.swift:890-898 \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 \u0060Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift:713\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":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccb2018883ecdae0f665e6ec6611851ea5204260e3951a997cb2747d0b5f990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3555-3564 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1857-1866 \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 \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3555\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1bc58122108b1e20d893b5a97a631e4d6fb1c952426e88913ba529be21e587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift:51-60 | Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:40-49 \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 \u0060Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift:51\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":"Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f9b6306424c0c5f748e243f23ba3ebb3b68c88188a306446705b4816783e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/PDFAdapter.swift:500-509 | Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:975-984 \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 \u0060Packages/OsaurusCore/Services/Documents/PDFAdapter.swift:500\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":"Packages/OsaurusCore/Services/Documents/PDFAdapter.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e490074221495779fb2d25f1c871b69bfd8cc6b96ca3b98b2a95b91a7ffba67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift:65-77 | Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift:108-120 \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 \u0060Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift:65\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":"Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3f9d4a6f4328c9c3aaa417265b2ee42863fd811e4f3b7fdd1086ab51fb266a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:91-100 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:71-80 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:91\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c49b60ffb63dacbbe73fecb8a0390da5783badc3d8d1fc204602bc9f05ce7b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:291-300 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:188-197 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:291\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:290\u0060 calls \u0060sameTeamTrust\u0060, \u0060verified\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:187\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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b950309e8715afaf921021aa906f9551deb9d4cdb9226a6f5a5acc65c80324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/MobileConnect/MobilePairingService.swift:601-610 | Packages/OsaurusCore/Services/Sync/SyncPhoneDevices.swift:120-129 \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 \u0060Packages/OsaurusCore/Services/MobileConnect/MobilePairingService.swift:601\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":"Packages/OsaurusCore/Services/MobileConnect/MobilePairingService.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb7f6e559ea9a0ffe2153ebae60857eff10468ece558c06bdd9aa1182d01639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:731-740 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:781-790 \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 \u0060Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:731\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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb652370cee02e2cd573f9e61d254b4fd2a2919d592d3704ab884b33c858451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1766-1775 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1806-1815 \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 \u0060Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1766\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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e32cc8ee6bda397d256814e61687dc3c5a20db5b20655f93133084bee8a165d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/Services/ProcessMemoryProbe.swift:26-34 | Packages/OsaurusCore/Services/SystemMonitorService.swift:274-283 \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":"Packages/OsaurusCore/Services/ProcessMemoryProbe.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d07dec8be2161c4c7b9f0ccefcf9e122f79a62723c4eb3b3419bb1c216b3a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:5451-5460 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:5697-5704 \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 \u0060Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:5451\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":5451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33dbee426a742d370226f72cf2a364610609db9df7e679cb0370ce358267d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Router/AnnouncementsService.swift:164-173 | Packages/OsaurusCore/Services/Router/WelcomeCreditService.swift:238-247 \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 \u0060Packages/OsaurusCore/Services/Router/AnnouncementsService.swift:164\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":"Packages/OsaurusCore/Services/Router/AnnouncementsService.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"56da81534e8201b0005c871291a9e4f87a3849314cbc9877542a853adca9e504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift:1289-1298 | Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift:1300-1311 \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 \u0060Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift:1289\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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d7799c2e3a55cb90a2cdec448417f3676fe969d4e5274ee1e695983c4326d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Workflow/WorkflowFolderGrantCoordinator.swift:100-109 | Packages/OsaurusCore/Services/Workflow/WorkflowFolderGrantCoordinator.swift:125-134 \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 \u0060Packages/OsaurusCore/Services/Workflow/WorkflowFolderGrantCoordinator.swift:100\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":"Packages/OsaurusCore/Services/Workflow/WorkflowFolderGrantCoordinator.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"02848d09aa70a730597f9eb99bf58d89e896bb401cda44f7d839b1ed7ab5bcca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Storage/AgentDatabase.swift:1150-1159 | Packages/OsaurusCore/Storage/AgentDatabase.swift:1250-1259 \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 \u0060Packages/OsaurusCore/Storage/AgentDatabase.swift:1150\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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac28271e740f73b2fe55e831d49f94af2861c87c4ad3d03083084958d07893a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1113-1122 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1224-1233 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060status\u0060 to \u0060KnowledgeTicketStatus\u0060 in one and \u0060KnowledgeProposalStatus\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cb6fc16b1e95b91dfabda609a8233e2b0105d5b31184c2484820997213c140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:2504-2513 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2666-2675 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":2504}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ca12f64520e039fc3b49384053b83976c54bb98a363ca3b718efb13cc36c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Storage/MethodDatabase.swift:223-232 | Packages/OsaurusCore/Storage/MethodDatabase.swift:242-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also 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":"Packages/OsaurusCore/Storage/MethodDatabase.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1c870bea7bab9247f55abd462c42a59d1e0019f5a094bfa1aff02add22147e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Packages/OsaurusCore/Storage/TaskDatabase.swift:474-483 | Packages/OsaurusCore/Storage/TaskDatabase.swift:485-492 \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":"Packages/OsaurusCore/Storage/TaskDatabase.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"c738aab051bf6f14aecc9f2b63944ffc4032b6058c4f8362a13de6f462681cb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1711-1720 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2171-2180 \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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1711}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f23bc3be071622c56d4aad72810d8e960a385efd612e0cc3568c5fd10a47968"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/Tools/ConfigurationTools.swift:825-834 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1363-1371 \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 \u0060Packages/OsaurusCore/Tools/ConfigurationTools.swift:825\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":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2efe18a079c1203fb60fced193da758a210c404264b3f7afd9f5a337d99b3da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Tools/SandboxPluginRegisterTool.swift:36-45 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:27-36 \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 \u0060Packages/OsaurusCore/Tools/SandboxPluginRegisterTool.swift:36\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":"Packages/OsaurusCore/Tools/SandboxPluginRegisterTool.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11f06845c45c3c1167758365ea0f3efa49dead412f385dc0cac696e983d5d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/Tools/SchemaValidator.swift:145-154 | Packages/OsaurusCore/Tools/SchemaValidator.swift:302-310 \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 \u0060Packages/OsaurusCore/Tools/SchemaValidator.swift:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Packages/OsaurusCore/Tools/SchemaValidator.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9676a5b53f51d5a53b34eb6efede5d30b8e6d8357a309d229d524d06a68d2081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:248-257 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:245-254 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:248\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":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55bdaa52f0544142e7ab400469265f8bf3d2767b37386ec17716999e6b50c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4488-4497 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4690-4699 \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 \u0060Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4488\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4488}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5600f185d2c83198a61d3a82d5a8da68b25349889b11c72c9fc37ce56466ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift:477-487 | Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift:542-552 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift:477\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":"Packages/OsaurusCore/Views/Chat/NativeArtifactCardView.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16c3ee95920c10899b65256601a605aeb777f607fcfbaa5cbd1ce64ed7696fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:2572-2581 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:2592-2601 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:2572\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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":2572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0139c9bf4eed4d0147b897f1522fd0f7dc789f5e8c418cbc1611a09441e8b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift:399-407 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowConnectionsSheet.swift:148-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift:399\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":"Packages/OsaurusCore/Views/Credentials/VaultAccountsView.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa2490e32a7a2f87bef590a8e8b4e466aaeb7ffe17906831eeafb2b469e2303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:249-265 | Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:1477-1493 \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 \u0060Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:249\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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa02e2f9f7b9eff7b2be20a0f1026917ef250ee515227115dcd185564a13715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:377-386 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:440-449 \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 \u0060Packages/OsaurusCore/Views/Event/EventFormComponents.swift:377\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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"22549d6d3ba203c030f52c3402d86d7abffb76b113a431566ff6553beff6ae9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Model/HuggingFaceImportSheet.swift:82-91 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:413-422 \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 \u0060Packages/OsaurusCore/Views/Model/HuggingFaceImportSheet.swift:82\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":"Packages/OsaurusCore/Views/Model/HuggingFaceImportSheet.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d9010a7cd40eb799d693c5e6e832d9711b0c37721c68b55ea393802030a6ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:137-146 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:189-198 \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":"Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"682d27c016abb7e7ccd077fcfadb91ebece96f515680e428ee58c299c72aa5a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1134-1143 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1241-1250 \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 \u0060Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:1134\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s8\u0060 in one and \u0060theme.space.s6\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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b124bef4aa320cd433fa53e82cba97a5abe86202d4fd9f7dfa29b542bad761c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:786-795 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2450-2457 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:786\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"25225082493c1c6e506db229ce35b08e7f79e095102675658728fa3874bc9d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1546-1554 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1685-1694 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1546\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"98132997935d4dcf091d386c3d15abbc637f3ff4e89f4d4a0d236f206f1e6de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift:563-572 | Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift:575-584 \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 \u0060Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift:563\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":"Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea88c68b20910ceaac4de7c10c9bc8626b688b5dbac890a7084336392be68a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift:586-595 | Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift:598-607 \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 \u0060Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift:586\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":"Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"322bd63b89e423ec1cda3db00b995a3e303ebb1ace115b4bbcb33d6ba4ba4f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:163-172 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:182-191 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:163\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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f85fad4c111ff9863d8eb0eebe93f1b14b0309ca422555e76d15a40d012fd45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:734-743 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1894-1903 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:734\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, \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:744\u0060 calls \u0060frame\u0060 and \u0060Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1904\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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f133e784e6efc7b2a0fd736680aba3d70c6c7195c26683e7e51173c7a1fb3f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1848-1857 | Packages/OsaurusCore/Views/Tool/ToolAdvancedDiagnosticsSection.swift:208-214 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1848\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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c4b649c8db16b5bf05173a956185e6d29f8a771058be38d18916112804ee16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1890-1899 | Packages/OsaurusCore/Views/Settings/ServerSettings/AuthenticationSection.swift:83-92 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:1890\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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":1890}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb199386ec1359fc94b0797b1ce5b421a79b24a9e1dd73e3773737718aea571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:145-154 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:201-210 \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 \u0060Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:145\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, \u0060Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:141\u0060 calls \u0060frame\u0060 and \u0060Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:197\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":"Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"de07ae53f97f6340ac45b732709cfd7f4d3306da1f2bb7384804e959edd9241b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:394-403 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:380-388 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:394\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"174219221571018390b4f5e5640ee4523d8b407b813d943f1c7fa38d61b02c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:251-260 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1535-1544 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:251\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a62aa43ebc5868dc8b4d41ff68e9b210dee9638f8662d135dc233ba60b79aab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:342-351 | Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:400-409 \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 \u0060Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:342\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s6\u0060 in one and \u0060theme.space.s4\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":"Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"440c0a18b8dc304174f8eb35ba39489a6a6ca616f31009940726e5c2b6c8f39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift:565-574 | Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift:653-662 \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 \u0060Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift:565\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, \u0060Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift:651\u0060 calls \u0060Image\u0060, \u0060glyphSize\u0060, \u0060foregroundColor\u0060 and \u0060Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift:564\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":"Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f5b63aefeceb8522986c5308b11743c457b7491d0407e0b41e593b78306522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Library/WorkflowsWorkspacesTab.swift:151-160 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowsWorkspacesTab.swift:212-221 \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 \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowsWorkspacesTab.swift:151\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, \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowsWorkspacesTab.swift:149\u0060 calls \u0060installAction\u0060 and \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowsWorkspacesTab.swift:210\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowsWorkspacesTab.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b50ed171ce1544a4333b7fbe6889cceeedbc4af36ce107c7dbdbec2cfaa89d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:311-320 | Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:543-552 \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 \u0060Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:311\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, \u0060Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:322\u0060 calls \u0060SheetHintRow\u0060 and \u0060Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift:554\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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c85e57350bd4104fe5ca7989832e6a2c1a7dc1e6606461447e18dd2467119ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:88-97 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:182-190 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:88\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3274bebbb67301baa5823f7b50e889d4827d853ba93f3314a5248e261ad2b6d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift:132-141 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift:257-266 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0205a5689c603b03ffd9071b67178951b8d3fcb8ebf63992717a848d83edd8dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift:99-108 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift:290-299 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift:99\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22d252c231fc92471e5cfb1ea5f425de8cf9d00c6dd2584d68c266d85eebdf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift:99-108 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift:100-109 \u2014 before extracting anything, compare \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift\u0060 and \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift:99\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b0189c0ab587cb9ec2f7e0785b3fd789e4850def8990018b38f47c14ea58aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:76-84 | Packages/OsaurusCore/Browser/BrowserConfigurationStore.swift:71-79 | Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift:107-115 | Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift:472-480 | Packages/OsaurusCore/Models/Configuration/RelayConfiguration.swift:65-73 | Packages/OsaurusCore/Models/Configuration/SearchProviderConfiguration.swift:474-482 | Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift:107-115 | Packages/OsaurusCore/Models/Voice/SpeechConfiguration.swift:256-264 | Packages/OsaurusCore/Models/Voice/TTSConfiguration.swift:177-185 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift\u0060 and \u0060Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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 \u0060Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:76\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 after the matched lines, \u0060Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift:482\u0060 calls \u0060configurationFileURL\u0060, \u0060resolvePath\u0060, \u0060mcpProviderConfigFile\u0060 and \u0060Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift:116\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":"Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e826a9664d029a6b9597a11e673be4b4cda49e48b307083fda2f06dbfe372e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 6): Packages/OsaurusCore/Networking/HTTPHandler.swift:17201-17209 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17398-17405 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17575-17583 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17622-17630 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17744-17752 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17780-17788 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:17201\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7915bf847a4fdca13e36f29f9ba8979f22ca15f7640d5b321d4047b404502e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift:150-158 | Packages/OsaurusCore/ComputerUse/Loop/ComputerUseTraceLog.swift:142-150 | Packages/OsaurusCore/Managers/TTSService.swift:786-794 | Packages/OsaurusCore/Services/ModelRuntime/PrefillDebugLog.swift:101-109 | Packages/OsaurusCore/Utils/KnowledgeLogger.swift:69-77 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift\u0060 and \u0060Packages/OsaurusCore/ComputerUse/Loop/ComputerUseTraceLog.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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 \u0060Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift:150\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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptTraceLog.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4365f6e00ac13f07b2ba357a822f3b9b089388ba1fbb913db35fb4c9fa89c417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:181-189 | Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:214-222 | Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:241-249 | Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:276-284 \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 \u0060Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:181\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, \u0060Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:191\u0060 calls \u0060boolean\u0060 and \u0060Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:224\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":"Packages/OsaurusCore/AppleApps/Mail/MailTools.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"91531cc1f9b2040a452954d6894a990cf86b139f063643aa7d73497c2bcfc186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:184-193 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:725-734 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1026-1035 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1370-1379 \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 \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:184\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, \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:182\u0060 calls \u0060add\u0060 and \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:723\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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"2066c200b70d6d3fa409ea6a9847da6044eb97ab4ceb6aeb7dd888170deaf780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:479-487 | Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift:497-505 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowStyle.swift:15-23 | Packages/OsaurusCore/Views/Workflow/WorkflowSummary.swift:126-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:479\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":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"572551b4148a2e3096725320c9fad286e6e23ca6e8f0c334a210174882f9effa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:10159-10167 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16912-16920 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16983-16991 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17329-17337 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:10159\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":10159}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e20052bc73a6a7af12eee4074ef99ec00c4b540a2d4ff66738a033ff4651bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): Packages/OsaurusCore/Services/Email/EmailChannelService.swift:346-355 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:534-544 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:849-859 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:633-643 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Email/EmailChannelService.swift:346\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Email/EmailChannelService.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b57c250411746c43dc31de90184573c5d7d8e54ca9dd449406e3ceaa18fda7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20139 lines \u00D7 4): Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift:175-183 | Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:459-463 | Packages/OsaurusCore/Services/Provider/ProviderReplayDiagnostics.swift:205-213 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:320-324 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.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":"Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f653386d3bfec9f2a25cf26e6f22a3ca48f6431f99775af273af3a506beb6406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Packages/OsaurusCore/Views/Agent/AgentsView.swift:5613-5621 | Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:556-564 | Packages/OsaurusCore/Views/Project/ProjectsView.swift:399-407 | Packages/OsaurusCore/Views/Settings/OrchestratorSupportSections.swift:193-201 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Agent/AgentsView.swift:5613\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5613}}}],"partialFingerprints":{"codehealthFindingId/v1":"121f654ea5add24bd88b7845fd477cb5a71a47c167c0d04210d224e862043955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:693-701 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1359-1367 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1182-1190 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1463-1471 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"36236d85ac1dab8de5b4c649665ce3bc7997c8151b50b13f59c67a0d51f1e655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/ComputerUse/Driver/MockMacDriver.swift:135-145 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/FixtureCUDriver.swift:87-97 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ScriptedCUDriver.swift:214-224 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/MockMacDriver.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"45da557546e6ebe966e93684c68be189ae38a00dbb5b9a3b4e3257d1a5fae3c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:15661-15669 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18095-18104 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18876-18885 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15661}}}],"partialFingerprints":{"codehealthFindingId/v1":"f912a4554d37422c140e5e86bd34b5bffeb79f351057431314a63f7ff0ac48b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:418-426 | Packages/OsaurusCore/Services/ChunkedFileDownloader.swift:681-689 | Packages/OsaurusCore/Services/ModelDownloadService.swift:2073-2081 \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 \u0060Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:418\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":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89ab57a1836eb4285f12119e3cb299d3149b659a784f8b0ef0329cc5a8897f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:651-659 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2063-2071 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2095-2103 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift:651\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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyView.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09a42f5e48c01c19330d45a9f0691348e133c9c0b6eb2189d57449dd2eeb465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift:66-74 | Packages/OsaurusCore/Services/Provider/ProviderCredentialPromptService.swift:304-313 | Packages/OsaurusCore/Services/ToolPermissionPromptService.swift:862-871 \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 \u0060Packages/OsaurusCore/Services/Provider/ProviderCredentialPromptService.swift:304\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":"Packages/OsaurusCore/Services/Auth/ConsentPanelPresenter.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1c8bbb55fda033799692c35448b4e7e8b64829f3b79f2b7b1bea75e0ab4fcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:403-411 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:746-754 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:506-514 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:403\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"076a4a49654f9455e07927231e8218b9db50912e082bc52729941ea5dd23a735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:473-481 | Packages/OsaurusCore/Services/Provider/ProviderReplayDiagnostics.swift:239-246 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:334-342 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:473\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060maxLength\u0060 to \u0060Int = 240\u0060 in one and \u0060Int = 700\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":"Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad78dab5dd4466370c6d551bd161a19f3376e7d1e496274ad40f78776f75b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:2062-2069 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1205-1213 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1291-1299 \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. 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":"Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift"},"region":{"startLine":2062}}}],"partialFingerprints":{"codehealthFindingId/v1":"3600f9c3463056bfa7eb6bd2b9a88ab2b3db1b82236fb05d6436ed9028efeda4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1221-1229 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1255-1263 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1278-1286 \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 \u0060Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1221\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":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2736f0e2c6d70489dd42d27103c8f5641b1237eacfcfae432dc26cdb6d35e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:583-591 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:1185-1193 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:1203-1209 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:1216\u0060 calls \u0060NSPoint\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:598\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b8672f386f72e3da2c8ba9660fe22c9150a06c962736eb7cc071c48c7bd73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Views/Event/EventsView.swift:67-75 | Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:190-198 | Packages/OsaurusCore/Views/Skill/SkillsView.swift:159-167 \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 \u0060Packages/OsaurusCore/Views/Event/EventsView.swift:67\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":"Packages/OsaurusCore/Views/Event/EventsView.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d29f730936cfa744ceed9d94931128d456dbb5c8ac40387f21dab008f12c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:628-636 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:836-844 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:506-514 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:628\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9eb42948c743c29669b4b0830e47803af9f6cc82ca632d483fd0554092fb79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2067-2075 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2082-2090 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2099-2107 \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 \u0060Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2067\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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":2067}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2754551dd82b1dc53d1a58ee938f4ea8b2d7c9b65d513c072bbf45adc2c9d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift:115-123 | Packages/OsaurusCore/Views/Workflow/WorkflowRunTabView.swift:25-33 | Packages/OsaurusCore/Views/Workflow/WorkflowRunTabView.swift:37-45 \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. 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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowLibraryKit.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9b254f0d616d2955fa625671cdf6411de55ab25df37d6efb0b0f2da3c8118c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:90-97 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:183-190 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:277-285 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:277\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60dc72083fe4b7ba2d15fc6bd8dd0e1522b4d71b7765f03fdd2764ee9e1f241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:330-338 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:263-271 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:626-634 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:330\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c297105c0d75a556f97dccd51940f9acd5b0b4936e4aa162ffe9d9bdb0cde803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2006-2014 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAppleScript.swift:269-277 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerScreenContext.swift:189-197 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12b0fd99961723f568488080e471fda155934a58a35d68b16e2912c52e07114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Run.swift:39-46 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift:116-124 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Run.swift:39\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Run.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a56c4c228ec8d7e87ff8df3aae10678790ce1f97fa32a46ba7dbf8dcadbff8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/AppDelegate.swift:2142-2149 | Packages/OsaurusCore/AppDelegate.swift:2187-2195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/AppDelegate.swift:2142\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":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"296a92c70aea8dec79d020aa359d9971b911c1c1e0f61a45fc59f4a0ba832e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:430-441 | Packages/OsaurusCore/AppleApps/Reminders/RemindersService.swift:347-358 \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 \u0060Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:430\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":"Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ceec1edca8695fb9f84045242293fbdb2fe0d6e07856a4d065a1c72a7aac58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:258-266 | Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:287-295 \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 \u0060Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:258\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, \u0060Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:268\u0060 calls \u0060boolean\u0060 and \u0060Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift:297\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":"Packages/OsaurusCore/AppleApps/Maps/MapsTools.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb54be717bf34c4f0c5028c8b39caa703ee5f8a19b381a5841e094d3d089c806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift:2456-2464 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:18-29 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift:2456\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":2456}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd3aaafc7d9c41ba6f4a6a848379ebbe45fbeb1c30b33572db2abbcc4964859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1056-1063 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1088-1096 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1056\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e26743198e77984086b51a5726e2298a9d4fce7adb0530fdda2c8900628446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Folder/FileWriteDocumentRouting.swift:497-505 | Packages/OsaurusCore/Services/Documents/OOXML/XLSXFormula.swift:53-61 \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":"Packages/OsaurusCore/Folder/FileWriteDocumentRouting.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3dc8e92d7123f28d09d8d0f31c0d2181f59fd2c7da5633024dd9e685e8fc01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Folder/FolderTools.swift:4476-4484 | Packages/OsaurusCore/Folder/FolderTools.swift:4601-4609 \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 \u0060Packages/OsaurusCore/Folder/FolderTools.swift:4476\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4476}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46e129665e5f5480ac87f3d3273aed137a3792e5a4e2989d092b162e9a10284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Managers/SkillImportPolicy.swift:154-162 | Packages/OsaurusCore/Managers/SkillManager.swift:730-738 \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":"Packages/OsaurusCore/Managers/SkillImportPolicy.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be4e8db1881ff1db24285f0489028adef335bd0aba753285af5e9c921e60542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Models/AgentChannel/AgentChannelCustomJSONModels.swift:29-37 | Packages/OsaurusCore/Services/Attention/Participant.swift:90-98 \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 \u0060Packages/OsaurusCore/Models/AgentChannel/AgentChannelCustomJSONModels.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelCustomJSONModels.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dc6821937533caf4edcf9fb66d6e8fa0fcab09cf8c6ba7b140754c201f7fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:832-842 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:985-995 \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 \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:832\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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90ddfcdc97969d9f3c6cdc23bebea7ee2ed9304f130d89226499a354f1cd66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift:156-168 | Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift:191-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 \u0060Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift:156\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":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"8571f29484f471eea29f76d5483845e0a1cf030d536a01a6c1af5f909be1f02d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/ModelInfo.swift:520-528 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17131-17138 \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":"Packages/OsaurusCore/Models/Configuration/ModelInfo.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"1996c67b5efb8148ca301a75bf62753a2bb96fa473e1ce850d8e53a713ed82b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:63-71 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:426-434 \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 \u0060Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb69dac83ef873d1237e78f80fd26cb4d97b926d4a0130dc04c02520072ccaa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:308-316 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:264-272 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 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":"Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6a09369d683e07757a6d1ea9641f35b44547f37b6029956a3e69b5de25c5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Models/Schedule/Schedule.swift:148-156 | Packages/OsaurusCore/Models/Schedule/Schedule.swift:176-184 \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 \u0060Packages/OsaurusCore/Models/Schedule/Schedule.swift:148\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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8334226c5ba5d82b9333129e7bce92b3c2b1dd1504a673e057f2df42a23917d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Models/Schedule/Schedule.swift:544-552 | Packages/OsaurusCore/Models/Watcher/Watcher.swift:135-143 \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 \u0060Packages/OsaurusCore/Models/Schedule/Schedule.swift:544\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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d58f98454f10eefb1306d87f56c5a1762b119f62958d17f8005f4776d846a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Models/Schedule/Schedule.swift:620-628 | Packages/OsaurusCore/Models/Watcher/Watcher.swift:218-226 \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 \u0060Packages/OsaurusCore/Models/Schedule/Schedule.swift:620\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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"213e14b25ce440e1e2e3371b48ef50fb80df3f8896e04ba899f03b4727d8fca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:632-640 | Packages/OsaurusCore/Services/Channels/ChannelReplyTokenService.swift:193-201 \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":"Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"717fcaf766b4df6d1e0cdd59745d2b4612e943727cbe3532cb1470729a783f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:867-875 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12844-12851 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:867\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"1feecb5c2edf2ae1151099a88ca07a9da3b580527bcfa57e014e5faa0c7a7dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:7541-7549 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12497-12505 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7541\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7541}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d61782a6a0c22c8d51664d194c7abd281cf793b1472f96a20513506056a24e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:8688-8696 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8707-8715 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8688}}}],"partialFingerprints":{"codehealthFindingId/v1":"439a8b2f4900789b7e5ad6032020e4d3f6ba66d86088367d765dcde278e2ece0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:12708-12716 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13093-13101 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12708\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, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13092\u0060 calls \u0060runRequestTask\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12706\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12708}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c27a546d453e54f8ff02174e3e51f5e8fbbe262891bc4899fea355a3df0ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift:524-532 | Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift:535-543 \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":"Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"4954a85ba5bf73cdede8fa1f8eaccab6d98b85499e9206936a423e31151754f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift:701-709 | Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift:721-729 \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 \u0060Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift:701\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":"Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"335e26f5fe5441d2a8b69703a347962e00261e3be9b62f5f43b52b2859068ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:405-413 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:427-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:405\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d7d3efd3a14e02152ec21e22e561bc4e1452dc3e3abe85cb28e76fc6fef0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift:858-866 | Packages/OsaurusCore/Services/Workflow/AgentNodeExecutor.swift:438-445 \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 \u0060Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift:858\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":"Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf4377c83096728035d590a4ce885904bf36594aadfa14b63edb50dc88b00a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/BundledModelSeeder.swift:345-353 | Packages/OsaurusCore/Services/Sync/SyncConfiguration.swift:79-87 \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 \u0060Packages/OsaurusCore/Services/BundledModelSeeder.swift:345\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":"Packages/OsaurusCore/Services/BundledModelSeeder.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26529b3b13c1da96393508685d632f75e212ccf7ae78b15ea8a24f38b7f8924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/CompactionDeadline.swift:105-112 | Packages/OsaurusCore/Services/Chat/CompactionDeadline.swift:160-168 \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 \u0060Packages/OsaurusCore/Services/Chat/CompactionDeadline.swift:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Packages/OsaurusCore/Services/Chat/CompactionDeadline.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c12be79f76d04a884ae95f3c2eb3d8189a727b1e8c7f7a7664c1f2abb611c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:644-652 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:572-580 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"880869dfe0485d007115e52c951c02cf7cc1b72769224603f4c0a9ba8ca09b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1333-1341 | Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1360-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 \u0060Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1333\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 after the matched lines, \u0060Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1367\u0060 calls \u0060localName\u0060, \u0060attribute\u0060 and \u0060Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1341\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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b4a6fa94911f02501156826c4e7d913b493950d3e3024cf3a322d343de4a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1558-1567 | Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift:1056-1064 \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 \u0060Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:1558\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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f5bbcdfe2f3b7cd37d8eaf0479bb8f8cc0328228d8d20481acf502281715da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift:589-601 | Packages/OsaurusCore/Services/Documents/XLSXEmitter.swift:326-338 \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 \u0060Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift:589\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":"Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"9714ac290b106f762273fb9860117d7dcfec9fc51067526b50855bea4b4a698b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/GitHubAuth.swift:54-62 | Packages/OsaurusCore/Services/HuggingFaceAuth.swift:65-73 \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 \u0060Packages/OsaurusCore/Services/GitHubAuth.swift:54\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":"Packages/OsaurusCore/Services/GitHubAuth.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"86645b0ff57a405d931488ad7866303edfcfcadbd552ec3eb2375f1d28c329d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:457-465 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:552-560 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:457\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cf9fbd5ce49b95c96d434327a2c712be1169b6373dccbae9713363d3db46d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:282-291 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:249-258 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:282\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3db7576e41af97d1ba7627d5eb306cf176b7655817a0f77d969484a5df0f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Inference/CoreModelService.swift:158-166 | Packages/OsaurusCore/Services/Inference/CoreModelService.swift:202-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Inference/CoreModelService.swift:202\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":"Packages/OsaurusCore/Services/Inference/CoreModelService.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95896eae58e1f203361504cae42b6a27294909afb63295f3c68aab5913b74fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/MCP/MCPServerHub.swift:27-35 | Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift:27-35 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/MCP/MCPServerHub.swift\u0060 and \u0060Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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":"Packages/OsaurusCore/Services/MCP/MCPServerHub.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"94812935087e695ce2f6d638bf863c4c900cd034040b4c85683ea9a61ff988c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime.swift:3577-3584 | Packages/OsaurusCore/Services/ModelRuntime.swift:8094-8102 \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 \u0060Packages/OsaurusCore/Services/ModelRuntime.swift:3577\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":3577}}}],"partialFingerprints":{"codehealthFindingId/v1":"891dca2ba08aeac649e6ed26fc709b869bc12d1714ec9684d3b33a9b59840f80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1545-1553 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1876-1884 \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 \u0060Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:1545\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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4fa3e28cfe9edf85f0344b9797f309a5a25e49eb6cbfc6e1cf4f3d61e1eacc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:523-531 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:538-546 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00500d722ab6496a10a3d5f9f2d617dd3d542181913e5a6da777d054cf7425d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Router/WorkspaceAgentLiveness.swift:266-274 | Packages/OsaurusCore/Services/Router/WorkspaceAgentLiveness.swift:279-287 \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":"Packages/OsaurusCore/Services/Router/WorkspaceAgentLiveness.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdf2b1d4e19b1fb083f6d1aecd8ca7670d41e4eb4ad587e648c6164ca6eaba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift:393-400 | Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift:468-476 \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 \u0060Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift:393\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 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. 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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"770c876e7b123405ef095feb9c30488b6ef593296cc36369adebeddf77db0032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:193-202 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:366-374 \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 \u0060Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:193\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":"Packages/OsaurusCore/Services/Skill/SkillSearchService.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ecd710267191caa2599dcb2c939167308aaa097cc034ba1e01d7c684da7f34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:727-735 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:774-782 \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 \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:727\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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cd2e8d3e5d89cf4af845a5ba8ccfb4d2ea3db04ec0025f11ff94f1e927a303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1398-1405 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1055-1063 \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 \u0060Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1398\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"627cd7a2a0652a5903c16c0ddbe38eecc95bb34c59448896e7fcc12f69129371"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:427-435 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:446-454 \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 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":"Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2db52d5e9e99bbdfabcd679674e3fca3458473fbb61131e77905e9b2f9b2717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 4): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:553-556 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:890-893 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:939-944 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2220-2228 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:939\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, \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:946\u0060 calls \u0060sqlite3_bind_int\u0060, \u0060Int32\u0060 and \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:895\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"b052ad5fb974cebc3039777c2564d079487e12c5f8a88cde144a4a7d2ebc6be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1277-1285 | Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1380-1388 \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 \u0060Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1277\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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f22e1b1f45baf266386d91a6ef857ac9feb4a87aceaff285d5049b614628b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:350-358 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:88-96 \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":"Packages/OsaurusCore/Tools/Database/DatabaseExport.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbda78f08bc24cd6bc0c44a3d5926c02231696b0a096e4eb29f5ae66ea1e4239"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentReorderSheet.swift:40-48 | Packages/OsaurusCore/Views/Settings/RemoteProviderReorderSheet.swift:40-48 \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 \u0060Packages/OsaurusCore/Views/Agent/AgentReorderSheet.swift:40\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":"Packages/OsaurusCore/Views/Agent/AgentReorderSheet.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa094589f794908543310b6549fa7bba98c335c4f1ad06425a9ec77d96a644b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentsView.swift:1047-1055 | Packages/OsaurusCore/Views/Agent/AgentsView.swift:2130-2138 \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 \u0060Packages/OsaurusCore/Views/Agent/AgentsView.swift:1047\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"264fc9f531e1ef5df00df5417eec3dda495e2b4d33d5122f09a0caa001b7dc04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/CapabilitiesTableRepresentable.swift:110-118 | Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift:141-149 \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 \u0060Packages/OsaurusCore/Views/Agent/CapabilitiesTableRepresentable.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/CapabilitiesTableRepresentable.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04317f07dd3953bebdce50673d6e3becd7fd6732ad2c63bf98a820773e88cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:95-103 | Packages/OsaurusCore/Views/Workflow/Architect/ArchitectChatEmptyState.swift:42-50 \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 \u0060Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift:95\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":"Packages/OsaurusCore/Views/Agent/Creation/AgentCreatorIntro.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"182d4604d9f0af541f5080a6a604773412e4ee912110aec96116e204422c20b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:65-73 | Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:81-87 \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 \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:65\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, \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:90\u0060 calls \u0060Spacer\u0060 and \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:76\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03a04f2caf3a7108ec9f7557300228ad72b9c3171d3a12f11e7aa8df8e80c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:749-757 | Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:777-785 \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 \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:749\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa4dcd00a67b8c8f9188de8598949433b029efede6a189a6161487386cd04fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Templates/AgentTemplatesView.swift:148-156 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowsView.swift:132-140 \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 \u0060Packages/OsaurusCore/Views/Agent/Templates/AgentTemplatesView.swift:148\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":"Packages/OsaurusCore/Views/Agent/Templates/AgentTemplatesView.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"76489beab1908f430c80a406cdddf23f1e1becc4b72b032fd165d4eecc3fe946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:296-305 | Packages/OsaurusCore/Views/Workflow/WorkflowRunHistoryList.swift:492-500 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:296\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":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"150f07f96b774dbda7230af177358723eb9e4c2c4b210ee083aa52516855a839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20139 lines \u00D7 4): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2098-2106 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2388-2390 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2692-2694 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3024-3032 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2098\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060NavigatorRowMetrics.iconGap\u0060 in one and \u0060theme.catalogLayoutMetric(\u0022component.library.41.elements.layout.remoteAgentSidebarRow.body.horizontalGap\u0022, inheriting: NativeComponentInspectionStyle.metric(41, \u0022gap\u0022, theme.space.s10, theme))\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3032\u0060 calls \u0060animation\u0060, \u0060springAnimation\u0060 and \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2390\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2098}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15aa92330f14c30487d3e986f6e70e1a663ec51a76acd9e2e43f7976ca1d56d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2393-2401 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2697-2705 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2393\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2393}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3af9dc6104bffc0c3a483461d81b8a91d153ecdf975101b9a16e03fa545c66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift:223-230 | Packages/OsaurusCore/Views/Chat/ConfigApprovalModal.swift:230-238 \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 \u0060Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift:223\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":"Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b95f053bd2ea4481a707b82dadd5535007b45d71ab5390084b0a69672843c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:572-580 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:274-287 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:572\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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e4182648bd5a73155e437ab5cf2a55a16d5355d3932213245d6120f44bcdba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3108-3116 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3127-3135 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3108\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, \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3136\u0060 calls \u0060constraint\u0060, \u0060imageHeight\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3117\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":3108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1d1e6a1b685323dff0ba14257750d161ce5c210928ced3890f50f0a6c55b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3311-3319 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3351-3359 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3311\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":3311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc26d34103a4ed3f06d845960c745c137db69708351e64725d30eb995c2a2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1590-1598 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1684-1692 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1590\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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00fb0ffebe13c5cb48dd8194a038fc62c7b3b84067ca153dd43674fca548996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Views/Credits/CreditsView.swift:901-908 | Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:623-631 \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 \u0060Packages/OsaurusCore/Views/Credits/CreditsView.swift:901\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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab2d684521de7b9b2021fdbf4ed99171d39e4838757028df65363b4321127df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/DesignSystem/SettingsSection.swift:225-233 | Packages/OsaurusCore/Views/DesignSystem/SettingsSection.swift:278-286 \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 \u0060Packages/OsaurusCore/Views/DesignSystem/SettingsSection.swift:225\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":"Packages/OsaurusCore/Views/DesignSystem/SettingsSection.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78d08ece2923287ae96c14fd6509a53f5be230e6d2acba57b469e227525f0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Model/Catalog/AppleScriptCatalogSource.swift:111-119 | Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift:531-539 \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":"Packages/OsaurusCore/Views/Model/Catalog/AppleScriptCatalogSource.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"be46dc77c2460969df670e9077ada08e617431c19ae2ca970d49219d92ed60cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusCore/Views/Onboarding/DesignSystem/OnboardingComponents.swift:561-568 | Packages/OsaurusCore/Views/Onboarding/OnboardingConfigureAIView.swift:1367-1375 \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 \u0060Packages/OsaurusCore/Views/Onboarding/DesignSystem/OnboardingComponents.swift:561\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":"Packages/OsaurusCore/Views/Onboarding/DesignSystem/OnboardingComponents.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda5fc36c5a90c83fcedb90c469ca48328906e16afa094866d3fa9aa4513a90c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:973-981 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:1049-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 \u0060Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:973\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s4\u0060 in one and \u0060theme.space.s6\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":"Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aecb3de336311f360bb7d3a5dc13ffd1c2d7060b4826b52fd71df2a528d9715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:194-202 | Packages/OsaurusCore/Views/Settings/ConfigurationView.swift:322-330 \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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad5a7a57653cbdb4561fe5f39e11c88dde5f8d9f9cbc69a6cfa0c9665f46bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:677-685 | Packages/OsaurusCore/Views/Tool/ToolPermissionBanner.swift:78-86 \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 \u0060Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:677\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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bbf899fc0e22419cb0095fa85c6003946ba748f73b21956f455d9dfa8c06bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:765-773 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2461-2469 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"7460fbdc55e3b1b9f526869e2b92cd4e6dc6c4056775fdd933193dedf39d4d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1518-1535 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1666-1683 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1518\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, \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1517\u0060 calls \u0060hasPrefix\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1665\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"229c930cabe17750207bfb25e92679c53d38a51f4468147990343aeb4408dabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift:95-103 | Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift:62-70 \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 \u0060Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift:95\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":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bf860579a8cbcabfdb0fc7d3d79e6d49553aa0ec4e1491e105399d67601bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:84-92 | Packages/OsaurusCore/Views/Voice/VoiceView.swift:102-110 \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 \u0060Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:84\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":"Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46f375212e636bec93641d24f1f9da7894a551cbe8d1a3c50a76b5a72c2d26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:195-203 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:213-221 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:195\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d4e811f2c679600158501b44b5176631f5140cb5f475c46c2d4c49da979242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:672-680 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1856-1864 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:672\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, \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:681\u0060 calls \u0060settingsChrome\u0060 and \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1865\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bf8187376f888d1d165accb273b39f9955a418961318015a81873899169341"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1750-1765 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1767-1782 \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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"c924958e68a550f93468de7972ae6431d29633912a80f1ce62838137d5132421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift:389-397 | Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift:419-427 \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 \u0060Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift:389\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":"Packages/OsaurusCore/Views/Voice/VoiceInputOverlay.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02e2da7d62c35306d0da94f34604271444d064478d7e852897be5f140a2a89a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift:143-151 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:229-237 \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 \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift:143\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8e7d0f5f6f05d0e095f6671c23598f2dd5edcbc7f405ee4674ff9114606b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:228-236 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:350-358 \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 \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:228\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3df5aa7fe5406a1608d15c3d562be09be4e930c61f6fd196b2d35616b3ede37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:95-103 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:191-199 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:95\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65c1968a711a76d370fe03e7e1efd9b2a9acc42ad40487e0280e68cd3260028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift:147-155 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerPromptSurface.swift:71-79 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift:147\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4ecf86869290b4a27e6a18324722b93af8c9ab2c725987f563cdc892320641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift:514-522 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift:533-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift:514\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"640bcde0ecf9a0af79d9de2a9e5135e0a37600c9c09bad8664f0aaea18345833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:202-210 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift:100-109 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift:100\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7403ebb5963625c706949f33d5a261279c86b31f31bfe5c94dba7a7bbcf60f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:202-210 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift:290-299 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift:290\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"28204f4a40c28ef18f5e471f87aafce55b8b4efc109dc7e24cdf43469473539b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift:119-127 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift:180-188 \u2014 before extracting anything, compare \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift\u0060 and \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerReasoningChannel.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift:119\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMemory.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9970583bde7a673d184ceac254bcc5b48efea0e6ac7168d61b4f63188dc73329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:57-64 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift:75-83 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"516122083d5865840ee7d60f53a04773043baedf9aa60c7c38aa35cd11958c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 15): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3499-3503 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3550-3557 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3595-3600 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3641-3645 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3662-3666 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3675-3679 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3694-3698 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1685-1689 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1887-1893 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2112-2119 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2146-2150 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2687-2692 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3186-3190 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1683-1688 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:125-129 \u2014 there are 15 copies across 4 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 15 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3192\u0060 calls \u0060number\u0060 and \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3505\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3499}}}],"partialFingerprints":{"codehealthFindingId/v1":"8923e151c5637d27ec00308927e4f2789576cd427b827abdff30ba4eb260f5c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 8): Packages/OsaurusCore/Networking/HTTPHandler.swift:5671-5676 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6483-6488 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6967-6972 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7108-7113 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7387-7394 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7444-7449 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7686-7691 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7865-7870 \u2014 all 8 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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5671\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5671}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca493860480c8a352513abebf6a90d2aa1cced2a9dd87eca706c91fa2b6b11ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 7): Packages/OsaurusCore/Networking/HTTPHandler.swift:5637-5643 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6938-6945 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7075-7081 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7837-7843 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8030-8036 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8087-8093 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8291-8297 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5637\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5637}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfcd20d2b1c529a334befca834b68bfc15697c5b73e790d64c47b13c77ea600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): Packages/OsaurusCore/Networking/HTTPHandler.swift:17204-17211 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17286-17293 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17400-17407 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17578-17585 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17625-17632 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17747-17754 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17783-17790 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:17204\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b8f4be05681bbbd2496d3ecc42360c3da4c9ff33fddd4fd94e5ced68a961e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:75-82 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:241-248 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:318-325 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:381-388 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:482-489 \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 \u0060Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:75\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, \u0060Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:379\u0060 calls \u0060SearchRequestParam\u0060 and \u0060Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:239\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":"Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8e2f204925acb90b56ad7f7d59306305456996fcc7d0151892294953943855"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:503-510 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:629-636 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:877-884 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1740-1747 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1811-1818 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:886\u0060 calls \u0060SettingsFieldRow\u0060, \u0060SettingsTextField\u0060, \u0060L\u0060 and \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:638\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f4687b9defaa0dda54772d8394852a22c9142ff884977c1632a6771add1292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Packages/OsaurusCore/Services/Email/EmailChannelService.swift:229-236 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:401-408 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:744-751 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:504-511 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Email/EmailChannelService.swift:229\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Email/EmailChannelService.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c4a02f5777c5303543a342004759f41770ddc18d78910185ae41df8951515c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1337-1343 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1377-1384 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1446-1452 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1487-1493 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1337\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":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d2010595dfc450eea988202dce70594f6df44a42a9e81844a84d3dc0e3f816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:671-678 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:770-777 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:928-935 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1855-1862 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:671\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, \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:680\u0060 calls \u0060padding\u0060, \u0060settingsChrome\u0060 and \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:779\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bc67f08217d08230d832fab78f43ae445c96419d0c005e0500368ec091bf13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/List.swift:22-28 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Run.swift:38-44 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift:115-122 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/List.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f9342ab49acaf7833fa0d90e7e21d30f14dc1fe1543c4948f10b8339f9608c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:103-110 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:157-164 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:367-374 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Models/API/AnthropicAPI.swift:103\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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2986a20335e83dcca1dc8f080a25aa2360d9fb34afb500995fc78e17ca9019f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:282-289 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:292-299 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:302-309 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:282\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87d45874bae413faa7be9f6fa00d98a449e79e9b08699681828daa8c3229e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Packages/OsaurusCore/Views/Agent/AgentsView.swift:5367-5373 | Packages/OsaurusCore/Views/Identity/AgentKeyManagement.swift:172-178 | Packages/OsaurusCore/Views/Voice/VoiceSetupTab.swift:389-396 \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 \u0060Packages/OsaurusCore/Views/Agent/AgentsView.swift:5367\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5367}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f4b7aa317a241fe2b90957902511d061f4bfc45001d29cc2e3150d7ab5c3f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/ChatImportReviewView.swift:48-55 | Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift:223-230 | Packages/OsaurusCore/Views/Chat/ConfigApprovalModal.swift:230-237 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/ChatImportReviewView.swift:48\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":"Packages/OsaurusCore/Views/Chat/ChatImportReviewView.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c55360bcef3fbbac23499553e07e42059fcb7c8cc16e28207ad94941ecc5e74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/ConversationEventRow.swift:36-43 | Packages/OsaurusCore/Views/Chat/HostedSecretCard.swift:61-68 | Packages/OsaurusCore/Views/Chat/SecretPromptOverlay.swift:155-162 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/ConversationEventRow.swift:36\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":"Packages/OsaurusCore/Views/Chat/ConversationEventRow.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b878d49207e23c9e5b006dcba6b57ad5c299eacdcd8aab73d04847c3901b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:655-662 | Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift:233-240 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:341-348 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:655\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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"26dd9c85fd5f02c85f2a22c0f47acfc91e0bc7718e5019bda5ed75fc245dc6b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:150-157 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:206-213 | Packages/OsaurusCore/Views/Settings/StorageSettingsView.swift:351-358 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/BrowserSettingsView.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":"Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8718234fa3dc88e31b8ec78d20bc4fc954bec669d416d52d9ad539274345232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:306-313 | Packages/OsaurusCore/Services/HuggingFaceService.swift:773-780 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3343c7a053c776c62223d2001712827dc62bb8cf81b4af7a94dfa34c4e4df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20138 lines \u00D7 3): Packages/OsaurusCore/AppleApps/Mail/MailService.swift:361-368 | Packages/OsaurusCore/AppleApps/Music/MusicService.swift:76-77 | Packages/OsaurusCore/AppleApps/Notes/NotesService.swift:64-71 \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 \u0060Packages/OsaurusCore/AppleApps/Mail/MailService.swift:361\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":"Packages/OsaurusCore/AppleApps/Mail/MailService.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d7c9ecee3ad21fd7ebae61685372f6a80e35b645f50217b5ec5cd60997addd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift:376-384 | Packages/OsaurusCore/Models/Chat/FileDiff.swift:491-499 \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 \u0060Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift:376\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":"Packages/OsaurusCore/AppleScript/Exec/MockAppleScriptWorld.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7971ef82ff591b3deb7cff06cc6bcadc8ff27c923e8c39864d78677d61861aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Driver/NativeMacDriver.swift:235-242 | Packages/OsaurusCore/ComputerUse/Driver/NativeMacDriver.swift:253-260 \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":"Packages/OsaurusCore/ComputerUse/Driver/NativeMacDriver.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55d4dc9eeeaa47a70cf77c7a529c1cc60ed29fbbefad845107f641b019e555e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 3): Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift:192-199 | Packages/OsaurusCore/Configuration/Declarative/OsaurusImportTool.swift:44-47 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1155-1160 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.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. 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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e84afa5e9b8ea80e6fbbcffde33b75a19c04d87d9803d48efabd7bb30c2a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift:1130-1137 | Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift:1200-1208 \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":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6500874b15eabe5c112136d9c2a3d6d2501a02f122875185a77364009757e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift:1357-1364 | Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift:1448-1455 \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 \u0060Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift:1357\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c16336fd0383880df4302e74c4a748aca7d4931cf07ac92d4ff0232271c1bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Managers/MCPProviderManager.swift:2016-2023 | Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift:589-597 \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 \u0060Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift:589\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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d08ebdb3fb0f7a91591d7487151ea0633d3226bcf7f3e051dc865ac15dc162b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/DefaultAgentConfigurationStore.swift:114-121 | Packages/OsaurusCore/Models/Configuration/AppConfiguration.swift:230-237 \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 \u0060Packages/OsaurusCore/Models/Agent/DefaultAgentConfigurationStore.swift:114\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":"Packages/OsaurusCore/Models/Agent/DefaultAgentConfigurationStore.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"589d27e76ad462dfbcc553b5394919673e41075e436de63cff062f2ebf7dd4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:411-425 | Packages/OsaurusCore/Services/Attention/Participant.swift:234-241 \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 \u0060Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:411\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"35649eb6b76f2370b2230f6ccc305801846d67d7714c0d26592247f4ab517c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:65-72 | Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:309-316 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift:65\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":"Packages/OsaurusCore/Models/Configuration/SearchProviderCatalog.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"48967af28eff1756c139b558afb5a5533a90cd299b12821174fe115fa2ebebde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:1823-1830 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16708-16715 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:1823\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b563a84f31b16dad32613624a5f93dc9ac3f810314e166b5f30a61f23addb75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:4968-4976 | Packages/OsaurusCore/Networking/HTTPLoopHelpers.swift:167-175 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:4968\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":4968}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3d471d7907da453707f411e6c28b9b05d9de1fbe29bcc8932a6317914bf414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:18027-18034 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18113-18120 \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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":18027}}}],"partialFingerprints":{"codehealthFindingId/v1":"0faac5d0c539488884819d2141e517928f3b8c4ec3216ed40a9fbc2480f49373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift:322-329 | Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:571-578 \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 \u0060Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyPresetRulesSection.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf2492d0c1f30f0930b246344a45279014d84e520f09b204981b8cf30445596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:262-269 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:272-279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:262\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e063e0eb514cc966e405587958b23518ec040a8829812f4ebbeaff112769754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:345-352 | Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:355-362 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"629d0708a47fe4b58ac41ca66d72db7fa2c8b07b4c0a8d105cfc54854b8db2cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:407-414 | Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:453-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:407\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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"79acd0610e86a22e8098236a7eeb882a0f8828deac15033f644c0a0aaf284ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:796-805 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:883-890 \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 \u0060Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:796\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b9b429d13575b1c3e41e811d2fabce86ff5e8c383a9e0d65512b403b4ce7f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:851-858 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:883-890 \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 \u0060Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:851\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a611d1f0d53db3fe3287760b53d56cb2a4a1b046798d3c3e01ccca6a598bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/BusinessDocumentStudioService.swift:876-883 | Packages/OsaurusCore/Services/Documents/PDFPPTXWorkflowService.swift:251-264 \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 \u0060Packages/OsaurusCore/Services/Documents/PDFPPTXWorkflowService.swift:251\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Documents/BusinessDocumentStudioService.swift"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbaf7983fed0393634cf89b815ca4b05e9cd26c2653486ddff688d63dfcb137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/PDFPPTXWorkflowService.swift:114-121 | Packages/OsaurusCore/Services/Documents/PDFPPTXWorkflowService.swift:186-193 \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":"Packages/OsaurusCore/Services/Documents/PDFPPTXWorkflowService.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a03d8f0eb89ecf0945a245a6946ed66fa22ccd1dc6d0bb2e12e68a2c584b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:326-333 | Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift:343-350 \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":"Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dda5368fb116678867116ae0d17b9b03bbe706661e804e91c2e2be0943dd0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Email/SMTPClient.swift:279-286 | Packages/OsaurusCore/Services/Event/Email/IMAPClient.swift:580-587 \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 \u0060Packages/OsaurusCore/Services/Email/SMTPClient.swift:279\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":"Packages/OsaurusCore/Services/Email/SMTPClient.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3a223d31603a7767aa801dedff2f0f44d02d7cc735904f9a4751c2a8339863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Event/Stream/SSEEventSource.swift:92-99 | Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift:183-190 \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 \u0060Packages/OsaurusCore/Services/Event/Stream/SSEEventSource.swift:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Event/Stream/SSEEventSource.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed6ca3925d43932b7b4c37e17d18c8ce91a86c8ca99c953a87451c638d8d5f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Event/WebhookProviderProfile.swift:476-483 | Packages/OsaurusCore/Services/MobileConnect/PairingCode.swift:77-84 \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":"Packages/OsaurusCore/Services/Event/WebhookProviderProfile.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67b9d87ef97af4b186610b32716b9d63c8f498a2990e7ef44fd6069e79a756b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/GitHubSkillService.swift:460-467 | Packages/OsaurusCore/Services/Skill/ClaudePluginManifestStore.swift:142-149 \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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cca29c0f394a82c15f83be115cd054d7c266952951c1c223f4d812b5a2c3d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/HuggingFaceService.swift:400-409 | Packages/OsaurusCore/Services/HuggingFaceService.swift:424-433 \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 \u0060Packages/OsaurusCore/Services/HuggingFaceService.swift:400\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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"6159360ead9c70e528e90b40868b2ab3ef2a35e53352a78ca3be26d66522c20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Packages/OsaurusCore/Services/HuggingFaceService.swift:452-458 | Packages/OsaurusCore/Services/HuggingFaceService.swift:777-784 \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 \u0060Packages/OsaurusCore/Services/HuggingFaceService.swift:452\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Services/HuggingFaceService.swift:776\u0060 calls \u0060URLQueryItem\u0060 and \u0060Packages/OsaurusCore/Services/HuggingFaceService.swift:451\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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"74935bc615568dab3e34b4ea29c8ec667eb9a90b39cfe67add0fc7f515d9b19a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Inference/CoreModelService.swift:905-912 | Packages/OsaurusCore/Services/Voice/TranscriptionCleanupService.swift:154-161 \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":"Packages/OsaurusCore/Services/Inference/CoreModelService.swift"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f16eb0b9b993291bac1c0c852c245c5a3d96dfded9a6fb6948c25971d9d7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Keychain/Keychain.swift:295-302 | Packages/OsaurusCore/Services/Keychain/Keychain.swift:311-318 \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 \u0060Packages/OsaurusCore/Services/Keychain/Keychain.swift:295\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":"Packages/OsaurusCore/Services/Keychain/Keychain.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1d9af34061903a0df1b0617eed833edd097516a9d1b0066863e910131e9447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:442-453 | Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:494-501 \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 \u0060Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift:442\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":"Packages/OsaurusCore/Services/Memory/MemoryManagementConsoleService.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c20d7d213df114c6e8d9870e7732a3a5fce2ddbc87af69db5cd6fe0f3f7adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:729-744 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:455-470 \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":"Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4510b97faca0d59ce7310e6eb45f2afae7ff403edc7d821ec1114728fc1a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7564-7571 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7630-7637 \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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":7564}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe54a840ccfe315feefa606126114415f6f938b66a34f50928c7a2a4e280c9d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Router/OsaurusIDSessionStore.swift:103-110 | Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.swift:266-273 \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":"Packages/OsaurusCore/Services/Router/OsaurusIDSessionStore.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2951e74104f0deb7f50bcadfd660969d597d50fe2c9fd8c411d378a6aac76d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:138-145 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:156-163 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff66bd6944d4590b9cb61a23e4fe7024a37904ce5ef6c0aa8753cc1d9021a401"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/SupportDiagnosticsBundle.swift:177-184 | Packages/OsaurusCore/Services/SupportDiagnosticsBundle.swift:225-232 \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":"Packages/OsaurusCore/Services/SupportDiagnosticsBundle.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d644fc2dfbf452ca289fad1397b4f5d34b2ec452b3cd270d78d549f54bc4d281"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift:876-883 | Packages/OsaurusCore/Services/Sync/SyncServedChats.swift:643-650 \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 \u0060Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift:876\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":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"64596821e057ef8e04cda58d56209333c8c59df5d2074a776bc101c6dbc24ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Storage/AgentDatabase.swift:1225-1232 | Packages/OsaurusCore/Storage/AgentDatabase.swift:2305-2312 \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 \u0060Packages/OsaurusCore/Storage/AgentDatabase.swift:1225\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":"Packages/OsaurusCore/Storage/AgentDatabase.swift"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"468467b076af6b7760623f6997d1c36598869c195f25308bb54db72504d42d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Storage/ToolDatabase.swift:310-317 | Packages/OsaurusCore/Storage/ToolDatabase.swift:327-334 \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 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":"Packages/OsaurusCore/Storage/ToolDatabase.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc093bda0cfbc0c2a20b9284785f1c8f101a865a42227dbf481418d683220b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Tools/ConfigurationTools.swift:1303-1310 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1328-1335 \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":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a636c68a775faf902b783edaaffc8ceb0a190171e12319c36e20430db83b5516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:234-241 | Packages/OsaurusCore/Tools/KnowledgeTools.swift:726-733 \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 \u0060Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:234\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":"Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e292a3c8f89c8ac66fe105653e567dcf6914ce00b466e6e2a1a2c69bc67e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Tools/ToolRegistry.swift:2742-2749 | Packages/OsaurusCore/Tools/ToolRegistry.swift:2769-2776 \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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":2742}}}],"partialFingerprints":{"codehealthFindingId/v1":"83800c20285641aaba18aea490772e5af5d99e68118115c22a1dad895088271e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentsView.swift:6372-6379 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1653-1660 \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 \u0060Packages/OsaurusCore/Views/Agent/AgentsView.swift:6372\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":6372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e695e49dca94228c0c540bdb9369c02ca6c9acf36a528eda9a9ae960bcafe31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:56-63 | Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:72-79 \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 \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:56\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec64ddc6f4ddfc636ce1f7b5e4c7ef2c45efbf94945089c70127fa02d04ea69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift:167-174 | Packages/OsaurusCore/Views/Template/TemplateImportReviewView.swift:307-314 \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 \u0060Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift:167\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":"Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6270911a48ca90248b01281d9c0a09b4d389b3fa6f1349a743cfa55a3aca96d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2440-2447 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2762-2769 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2440\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2440}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca24f5109e5dd5f29ae4afc6caa190b509cb3b699fdfefbe0d8ce2e052de457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4475-4482 | Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4677-4684 \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 \u0060Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift:4475\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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":4475}}}],"partialFingerprints":{"codehealthFindingId/v1":"b074182487812f98dc021f06fa58942b47b623a43bfbf36a5e5077cdd014ee7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2492-2499 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3605-3612 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2492\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2492}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d6069f48ddaf6040c40d96fdaa86c98cd0870e83a8c8b3e3b3e53e81c287f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Common/SimpleComponents.swift:93-100 | Packages/OsaurusCore/Views/Common/SimpleComponents.swift:139-146 \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 \u0060Packages/OsaurusCore/Views/Common/SimpleComponents.swift:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Common/SimpleComponents.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"788c5bac536a6b3459806a635119befa642bbb777651beaa1c1616e6c124cbb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Credits/CreditsView.swift:622-629 | Packages/OsaurusCore/Views/Credits/CreditsView.swift:658-665 \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 \u0060Packages/OsaurusCore/Views/Credits/CreditsView.swift:622\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, \u0060Packages/OsaurusCore/Views/Credits/CreditsView.swift:655\u0060 calls \u0060StatusChip\u0060, \u0060L\u0060, \u0060webUsageTint\u0060 and \u0060Packages/OsaurusCore/Views/Credits/CreditsView.swift:621\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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c28f42e56d773df7ac210ec8391a3ff20c5ca5c86291047bc37a7a1a4305e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:928-935 | Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:617-624 \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 \u0060Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:928\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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"5798a072530d0cf5b078c9809a0f6106f0bd2a6fb5caf6530c20f3eb96b2bcef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:229-236 | Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:287-294 \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 \u0060Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:229\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"850c6edf11152cb8fb8018ec188fea2382976abec991e80707a92d3a359e7b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:267-274 | Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift:325-332 \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":"Packages/OsaurusCore/Views/Model/ModelCacheInspectorView.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8a2cbd3633c64856ce5dfe3aaf5dfdcf86b27bc62546bf8cf7216582a54af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:389-396 | Packages/OsaurusCore/Views/Workspaces/WorkspacePoolActivityView.swift:174-181 \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 \u0060Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:389\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s8\u0060 in one and \u0060theme.space.s12\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":"Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7490827f2083cba8b24df6eb17af9cf5e5e0f7e67a49da7141998830865f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:351-358 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:420-427 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:351\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0190b131dc2a1653721baaac0185ce28a059fe05dccfb94e7f161e77f0346479"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Toast/ThemedToastView.swift:61-68 | Packages/OsaurusCore/Views/Toast/ToastView.swift:49-56 \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 \u0060Packages/OsaurusCore/Views/Toast/ThemedToastView.swift:61\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":"Packages/OsaurusCore/Views/Toast/ThemedToastView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d20cdf02787c1b61824200f12586161d3f9ccdb0dc80f00ad5170859f67f099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift:244-251 | Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift:470-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift:244\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":"Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f528819cfd87fc3fa02ccc77485ef90606d87b211478d61194e7a1fbed0e4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift:157-164 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:243-250 \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 \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift:157\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be77f8f3ed199c2b433b1aa4312a3821a6da4e24e1be4be6903771f20f2c394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift:211-218 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift:313-321 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ee4df233e6b0cecca3200f3bf2a9053f7bb8127ac2e3029a66985027dc6ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:332-339 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:585-592 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:332\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f76b67963e8c719a0bb25102fc9e1334e6011dc253c3044f1281029a0bc9fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:164-171 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:175-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0918a7ea9540e13c396a486ef7e85fc381b1f36c1fcb1764649fa3712d9688c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:275-282 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:285-292 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:275\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"306529e0c0a875e7c45d5608c25733e72bcc9e6fd9b179ae5b33f5a380406270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:405-412 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:679-686 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:405\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"0559ae18ad8df0a30ad6df82cb388c99398d7845b6e7a08ecd89889bfe66c839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 15): Packages/OsaurusCore/Networking/HTTPHandler.swift:5666-5672 | Packages/OsaurusCore/Networking/HTTPHandler.swift:5765-5771 | Packages/OsaurusCore/Networking/HTTPHandler.swift:5859-5865 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6171-6177 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6258-6264 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6337-6343 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6478-6484 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6595-6601 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6962-6968 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7103-7109 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7439-7445 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7681-7687 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7860-7866 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8316-8322 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8509-8515 \u2014 all 15 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:6266\u0060 calls \u0060split\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5773\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5666}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fe8a7e6fd37491d016ede571fe8b22ffbf6423394ab551c34c2884be9df2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3496-3503 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3561-3570 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3597-3605 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3643-3649 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3664-3670 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3673-3679 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1682-1689 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1884-1893 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2096-2105 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2109-2118 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2144-2150 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3184-3190 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1681-1687 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:127-133 \u2014 there are 14 copies across 4 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 14 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3496\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, \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3671\u0060 calls \u0060array\u0060 and \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3504\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3496}}}],"partialFingerprints":{"codehealthFindingId/v1":"245b19d3a84b039cf326b1492feaf904ff02425fbe142a0018b3c3fb670553c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): Packages/OsaurusCore/Models/Agent/Skill.swift:117-124 | Packages/OsaurusCore/Models/Agent/Skill.swift:161-168 | Packages/OsaurusCore/Models/Agent/Skill.swift:207-214 | Packages/OsaurusCore/Models/Agent/Skill.swift:246-253 | Packages/OsaurusCore/Models/Agent/Skill.swift:284-291 | Packages/OsaurusCore/Models/Agent/Skill.swift:328-335 | Packages/OsaurusCore/Models/Agent/Skill.swift:373-380 | Packages/OsaurusCore/Models/Agent/Skill.swift:417-424 | Packages/OsaurusCore/Models/Agent/Skill.swift:455-461 \u2014 all 9 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 \u0060Packages/OsaurusCore/Models/Agent/Skill.swift:117\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":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"034e2ab0a72ee402e6bcb6ae9a75f776b1f56cd46be73d763cb0f787e5affba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 9): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1673-1679 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1852-1858 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2087-2093 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3175-3181 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3556-3562 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1674-1677 | Packages/OsaurusCore/Tools/SandboxPluginRegisterTool.swift:33-39 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:24-30 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:119-125 \u2014 there are 9 copies across 4 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 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1673\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 after the matched lines, \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3182\u0060 calls \u0060array\u0060 and \u0060Packages/OsaurusCore/Tools/SandboxSecretTools.swift:126\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"e878bbc7e3471256dae20c6026bc3a805168fe37419ae071e78c851203b300c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Packages/OsaurusCore/Models/Chat/RequestLog.swift:192-198 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:213-219 | Packages/OsaurusCore/Models/Chat/SessionSource.swift:93-107 | Packages/OsaurusCore/Models/Chat/SessionSource.swift:134-140 | Packages/OsaurusCore/Models/Chat/SessionSource.swift:153-159 | Packages/OsaurusCore/Services/FeatureTelemetry.swift:1103-1109 \u2014 there are 6 copies across 3 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Models/Chat/RequestLog.swift:192\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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b454b25ea7b3df03613ddfc7bf8688eed93c6a05a6bf7f7cf9b84769974c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3485-3491 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3548-3556 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3593-3599 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3639-3645 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3660-3666 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3692-3698 \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 \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3485\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, \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3492\u0060 calls \u0060object\u0060, \u0060number\u0060, \u0060Double\u0060 and \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3600\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3485}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c88e8776b5dd1e0a999cea689297101f1699bf5be4bc95efb5667437043797d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:2213-2219 | Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:2237-2243 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1208-1214 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1254-1260 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1294-1300 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1340-1346 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:2213\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":"Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift"},"region":{"startLine":2213}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c67a78e5050d0b02108cc48ecbd12b0c4b57fe18c5d0dbeb5745f3f95b1e83b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 5): Packages/OsaurusCore/Networking/HTTPHandler.swift:8664-8669 | Packages/OsaurusCore/Networking/HTTPHandler.swift:10253-10259 | Packages/OsaurusCore/Networking/HTTPHandler.swift:13581-13586 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14748-14753 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14779-14784 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:8664\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":8664}}}],"partialFingerprints":{"codehealthFindingId/v1":"7094853ee8bf54e93cfba606e65bb32dc1675a2aebb9db2042bb28d967824d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1832-1838 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1876-1882 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2119-2125 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2313-2319 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1832\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"982c283365470de9b7a0d2f2545de8b5a1f84aec4c379d7ea49b38692df2ecd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:5693-5700 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6987-6993 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7128-7134 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7885-7891 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5693\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5693}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffc4bab2575db812992282b846b17d1cd9e6b694cca9ff9d014519d2b2e82ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:345-351 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:360-366 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:373-379 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:386-392 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:345\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"091155ff6dc011ff58545d2e99838af6ae7ad73784566d3314a5c791e8e44f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Packages/OsaurusCore/Services/Email/EmailChannelService.swift:722-728 | Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1361-1367 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1421-1427 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1531-1537 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Email/EmailChannelService.swift:722\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":"Packages/OsaurusCore/Services/Email/EmailChannelService.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d05e0428f50e8fb736efd0385474fa0a10e6ea6d52be68d26e7347ed2dd6c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift:301-307 | Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift:1101-1107 | Packages/OsaurusCore/Tools/Workflow/WorkflowDiscoverTool.swift:144-150 | Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift:78-84 \u2014 there are 4 copies across 3 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift:301\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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f73a39baf63e4ae925e6a541592799cac80b9224cbd068a03734265c85bfee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 4): Packages/OsaurusCore/Views/Identity/IdentityView.swift:664-670 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:303-307 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:381-385 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:455-459 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Identity/IdentityView.swift:664\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s16\u0060 in one and \u0060theme.space.s0\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":"Packages/OsaurusCore/Views/Identity/IdentityView.swift"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f01905dd60b2b8748e7ef43f993d1458bdbaaa5eb3da0084974bac6dea0a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:313-319 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:391-397 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:468-474 | Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift:626-632 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:466\u0060 calls \u0060StatusChip\u0060, \u0060L\u0060 and \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:312\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":"Packages/OsaurusCore/Views/Memory/MemoryComponents.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c3e8b74bd87966f3f0666a839810727da23b2d797b642360ff33f101d86f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Folder/FolderTools.swift:6273-6279 | Packages/OsaurusCore/Folder/FolderTools.swift:6375-6381 | Packages/OsaurusCore/Folder/FolderTools.swift:6446-6452 \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 \u0060Packages/OsaurusCore/Folder/FolderTools.swift:6273\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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f7ffada07843b9b94466800becc400fd9fc36273ebeaf5f9bfea8c879e277c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:839-846 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:856-863 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:992-999 \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 \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:839\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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"86dab8637e5e0f13e345bb1140d84793c556466f07e8be945438996bb53bd9d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1265-1271 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1321-1327 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1840-1846 \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 \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1265\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, \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1319\u0060 calls \u0060writeString\u0060 and \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1264\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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"6efdab8a8764884a27982a22431933b8fced56633cfd1b169200c9c52411b7f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:137-147 | Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:253-263 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:219-229 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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 \u0060Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060connectionId\u0060 to \u0060String = AgentChannelConnection.nativeDiscordConnectionId\u0060 in one and \u0060String = AgentChannelConnection.nativeSlackConnectionId\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":"Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"831c64edb89625eb00ab85e2cf1d4850bbf18817ced4840130cad0b4b68bcd5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:6092-6098 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7199-7205 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7648-7654 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:6092\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6092}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0331ac68d3940a205e31d05104515d4d6f04402f78f36ab5c4f51f4f6fec286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:7064-7070 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7188-7194 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8068-8074 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7064\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7064}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebf6d8a0bcf1a037a0b87aa7b7eb58e76fbc17ba0c70bed0f5dcbcca8f83ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1449-1455 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1464-1469 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1518-1524 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:1449\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c54a138be2ec89047f2a4fdf24648143affce3e2a5615c4f7dd1f847df5871a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Packages/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift:289-296 | Packages/OsaurusCore/Services/Chat/GroundedFileSideEffectCheck.swift:116-123 | Packages/OsaurusCore/Services/Chat/GroundedKnowledgeClaimCheck.swift:165-172 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift:289\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Packages/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"14277e2fb9ba8cb992332f282bc1328567ccf617fc7f79dfb052eba681cabac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:853-859 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:885-891 | Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:906-912 \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 \u0060Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:853\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a934516b92f207e34c1b99ab472eb10e548529be5afdeb46ff76ad4c6d09f94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Services/Event/Feed/RSSEventSource.swift:193-199 | Packages/OsaurusCore/Services/Event/RunFailedEventSource.swift:56-62 | Packages/OsaurusCore/Services/Event/Stream/SSEEventSource.swift:256-262 \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 \u0060Packages/OsaurusCore/Services/Event/Feed/RSSEventSource.swift:193\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":"Packages/OsaurusCore/Services/Event/Feed/RSSEventSource.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed67294f53be0b63dc90555d9d783b40cf0896bf9c9ae6febdf65b1b2f943a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Services/Keychain/EventSecretsKeychain.swift:36-42 | Packages/OsaurusCore/Services/Keychain/SourceCredentialVault.swift:30-36 | Packages/OsaurusCore/Services/Keychain/WorkflowSecretsKeychain.swift:108-114 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Keychain/EventSecretsKeychain.swift:36\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":"Packages/OsaurusCore/Services/Keychain/EventSecretsKeychain.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7331c502a342e8430a9e2ba88637dc33f208ab32be9fc8327d84498b513cba32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20137 lines \u00D7 6): Packages/OsaurusCore/Services/Chat/Routing/AgentWrapperCatalog.swift:92-93 | Packages/OsaurusCore/Services/Method/MethodSearchService.swift:265-271 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:361-367 | Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift:175-177 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:901-907 | Packages/OsaurusCore/Utils/TextSimilarity.swift:70-73 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift\u0060 and \u0060Packages/OsaurusCore/Services/Skill/SkillSearchService.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 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 \u0060Packages/OsaurusCore/Services/Chat/Routing/AgentWrapperCatalog.swift:92\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. 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":"Packages/OsaurusCore/Services/Chat/Routing/AgentWrapperCatalog.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5c68f4a714281449e76562b40daf2e161add1e7e5f0374c6daf3d13da53c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:730-736 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:763-768 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:780-786 \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 \u0060Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:730\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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0ebee1b19505cf1b0cc5796b00da92d2fc792bc8a86939eaef8b5290276eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1884-1890 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1900-1906 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:1921-1927 \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 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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e2f441011200a1a0cf4ce8e65abb63ff898e457a46708cd12b623d9e8b4bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1520-1533 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1668-1681 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1702-1715 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060systemName\u0060 to \u0060\u0022lock.shield.fill\u0022) .glyphSize(.xlarge) .foregroundColor(theme.status.warning.foreground) VStack(alignment: .leading\u0060 in one and \u0060\u0022key.fill\u0022) .glyphSize(.xlarge) .foregroundColor(theme.status.warning.foreground) VStack(alignment: .leading\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1700\u0060 calls \u0060VStack\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1666\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6aa2d02e17874db421118db9d6f8ec687cef9c4486c0c46b6547a0b50e770d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:188-194 | Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:238-244 | Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:255-261 \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 \u0060Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:234\u0060 calls \u0060frame\u0060 and \u0060Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:184\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":"Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"68920337280e0dfa32ebf41979b6996acccf7b2fe0c4a960f9f0a3549dce535d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:227-233 | Packages/OsaurusCore/Services/HuggingFaceService.swift:943-949 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:227\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"101602b170e51fe237c34749e3c7b1bf59d19ea38ccbf46a75f809d9d5ee762b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsList.swift:38-45 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsUninstall.swift:77-83 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsList.swift:38\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsList.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66b50e35173b2706d3849b3e05b8e7e4f1dc52d553f2fc9b8cf541d4d2239b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Support/AppleScriptBridge.swift:232-238 | Packages/OsaurusCore/Models/Configuration/CodexCLIConfiguration.swift:353-359 \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 \u0060Packages/OsaurusCore/AppleApps/Support/AppleScriptBridge.swift:232\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":"Packages/OsaurusCore/AppleApps/Support/AppleScriptBridge.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4cf6ebd0752ed5c5b9619e691f56b1d0996e2d4e0a2f5e06e8baeb2bba60b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Browser/Runtime/BrowserSessionCatalog.swift:185-191 | Packages/OsaurusCore/Models/Agent/AgentInviteStore.swift:238-244 \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 \u0060Packages/OsaurusCore/Browser/Runtime/BrowserSessionCatalog.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":"Packages/OsaurusCore/Browser/Runtime/BrowserSessionCatalog.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c4337c32e9e3386cfacc065a6ab931bc9c3b4d1ba9c41ae6f91bc9c4332c3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift:504-510 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/FixtureBrowserWorld.swift:261-267 \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 \u0060Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift:504\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":"Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"992df0a7663225b2e4185c6e4f8d40b8378f4a9c75b2063e27a69d29a1f3f446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/AgentToolSelectionResolver.swift:61-67 | Packages/OsaurusCore/Configuration/Declarative/AgentToolSelectionResolver.swift:133-139 \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":"Packages/OsaurusCore/Configuration/Declarative/AgentToolSelectionResolver.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e188d0d19dce89ab8cc30d032afc02b1c12c76043167658027634a9b6cce934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2268-2274 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2292-2298 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2268\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"96869c04742aec310c11295cddf6d34ab0131c1e57798d27cd90be54c3057922"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20137 lines \u00D7 3): Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift:345-351 | Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift:266-267 | Packages/OsaurusCore/Services/Documents/PDFEditor.swift:331-337 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift:345\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4f780a823b6f9fd6f13409e2a16e0af6b3ec9f54462e1a78eac90a1d1ad944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/DevelopmentDesign/DesignAgentSurfaceChecks.swift:89-95 | Packages/OsaurusCore/DevelopmentDesign/DesignCatalogLayoutChecks.swift:82-88 \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 \u0060Packages/OsaurusCore/DevelopmentDesign/DesignAgentSurfaceChecks.swift:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/DevelopmentDesign/DesignCatalogLayoutChecks.swift:81\u0060 calls \u0060reset\u0060, \u0060check\u0060 and \u0060Packages/OsaurusCore/DevelopmentDesign/DesignAgentSurfaceChecks.swift:88\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":"Packages/OsaurusCore/DevelopmentDesign/DesignAgentSurfaceChecks.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3942e04eaaf2e6d662c83423bf99507fca103c5c1cd24715aa25ac4666616b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:986-992 | Packages/OsaurusCore/Managers/WindowManager.swift:505-511 \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 \u0060Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:986\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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"760b99e1b96089f68a38e18362c3f4e5769fd59cb2ce85367c12340a1a5b0d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:246-252 | Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:285-291 \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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9e2d6d37ca2dc7a2d43b5e1169f7dfae14f6f4301998e2bcecd9fec6ad4603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:1343-1349 | Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:1356-1363 \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 \u0060Packages/OsaurusCore/Managers/Plugin/PluginManager.swift:1343\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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"713aa7941e6b7e9b99ebfd9923124bd362c831bed7fd9b8bc00349880006cdb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Managers/SkillManager.swift:1027-1033 | Packages/OsaurusCore/Managers/SkillManager.swift:1058-1064 \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 \u0060Packages/OsaurusCore/Managers/SkillManager.swift:1027\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, \u0060Packages/OsaurusCore/Managers/SkillManager.swift:1066\u0060 calls \u0060deletingLastPathComponent\u0060 and \u0060Packages/OsaurusCore/Managers/SkillManager.swift:1035\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":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"4307d5a64563a92be99e08c5d590ef5e149cc3f01437ff8c23b9d23a3972c1a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/Agent.swift:1726-1733 | Packages/OsaurusCore/Models/AgentDelegation/SubagentConfiguration.swift:1235-1242 \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":"Packages/OsaurusCore/Models/Agent/Agent.swift"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"297fc3974994ff15bc89ae8eabc0079cfccbb7a2b957a64e70a70a37440232ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/SharedArtifact.swift:784-790 | Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.swift:294-300 \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 \u0060Packages/OsaurusCore/Models/Chat/SharedArtifact.swift:784\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":"Packages/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"992a7dfabdc54263b69f65f11196ef898d694cfb04a8337ed5338193aca8cebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:13453-13462 | Packages/OsaurusCore/Services/Harness/HarnessTurnDriver.swift:95-101 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13453\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13453}}}],"partialFingerprints":{"codehealthFindingId/v1":"1704e74cbc97a66b6657e2510551573934387483d9d9e025c326283a57675eb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1310-1317 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1337-1344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1310\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d498763fbb5801841c133b737806db2d3f7c91b55359a0fdfefd67d1154995f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:78-84 | Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:136-142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift:78\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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8894a470a005e8381ee8f954c8dc08c7b0ab385247c9d43d74a932c9cbb3101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3528-3534 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3695-3701 \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 \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3528\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3528}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12eeb67081d70c2ff860c3b2e74eb11f76bd0d5adf8ce66620af758e83b83ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift:204-210 | Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift:259-265 \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 \u0060Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift:204\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ChatImport/SafeImportFetcher.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f02df6cb7e314c4554151020091e07e8afe50ec721f83e9a896b9fe24df9604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/BusinessDocumentStudioService.swift:648-653 | Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift:301-307 \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. 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":"Packages/OsaurusCore/Services/Documents/BusinessDocumentStudioService.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6249fce91e10456cb603d902ae5c7376d069f029f77e6456bc6159a415ec683"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/PDFReadingOrder.swift:458-466 | Packages/OsaurusCore/Services/Documents/PDFTableDetector.swift:376-384 \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":"Packages/OsaurusCore/Services/Documents/PDFReadingOrder.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3a4b7d259e4255c14ea8c98ff2fde267bd3382bb3ffbec57243b9ab99bcd38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/PDFTableDetector.swift:33-39 | Packages/OsaurusCore/Services/Documents/PDFTableDetector.swift:50-56 \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":"Packages/OsaurusCore/Services/Documents/PDFTableDetector.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e83767666f4a7432c94adfb2d8777f22cb98dde01a6a26cd9965d2a554a921d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1369-1375 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1546-1551 \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 \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1546\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3956a5d1ff99eab70f1fd32e9872314fa5a345aeeab087263a105964d986fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:503-509 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:597-603 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:503\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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5529d68b6589d97ebd4053f36f960e04e83c729e2f6169df3417ae90a533a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:49-55 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift:44-50 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift:49\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":"Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede2251a8b42196afd1de15014b07af302852d2b8a5d32a7fcdc38d00dc7fe85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/LocalReasoningCapability.swift:675-682 | Packages/OsaurusCore/Services/LocalReasoningCapability.swift:712-718 \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":"Packages/OsaurusCore/Services/LocalReasoningCapability.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"11dc10437adfeea6428446da245c6c96b5fab809804be890cfafd06a492609b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift:72-78 | Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift:153-159 \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 \u0060Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift:72\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":"Packages/OsaurusCore/Services/ModelRuntime/ModelResidencyManager.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"218d05331fad6ee91d92419fe8d6f8388e35b61190bfe0716fa25eab8f669b10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift:810-816 | Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift:818-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift:810\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":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"181e94fbf291d496f12d94c5b8d82acc57cea42d023ba9178ff1ff8e2fb9189a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 4): Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7205-7208 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7227-7230 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7327-7333 | Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7358-7364 \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 \u0060Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift:7327\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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":7205}}}],"partialFingerprints":{"codehealthFindingId/v1":"9825b28c652c025b0f146ed775af48c3188afc718337e6ebba5ada2e5d1f23e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:701-707 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:710-716 \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":"Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f97efefcbe8bf0f7f8c1fea3a108550f86308ee0f0c3e979104f0f626455ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift:279-286 | Packages/OsaurusCore/Services/Sync/SyncInboundApplier.swift:397-404 \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":"Packages/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32b6e81be3ea2b1ddc971b21386b6085b024910fba19703bcdc90c1374d19f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1429-1437 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2530-2538 \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 \u0060Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1429\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c867c55e9ebc5ef9923922c9bd54ccf80aa261e16915a35f4507518c263adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:988-994 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1061-1067 \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 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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d17343d8063ef2deab59ff06efc44ce529e393f9b2217ff8345dc26dda54f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1472-1478 | Packages/OsaurusCore/Storage/MethodDatabase.swift:359-365 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:1472\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29635f858855fb5c85cecc009789b0912825a8fd7f965e40c1cd09028d83566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:332-338 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:360-366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"Packages/OsaurusCore/Storage/RouterBillingDatabase.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa625bbcbafab1a15c0e900eef48f339e784b2e3e06ade6ddf345eb2550b7dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Storage/TaskDatabase.swift:654-660 | Packages/OsaurusCore/Storage/TaskDatabase.swift:675-681 \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 \u0060Packages/OsaurusCore/Storage/TaskDatabase.swift:654\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":"Packages/OsaurusCore/Storage/TaskDatabase.swift"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d1575229ee0989bacf2b993531110696cd83c5ef2732f7d6473db4826416b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1707-1713 | Packages/OsaurusCore/Tools/SearchMemoryTool.swift:80-91 \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 \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1707\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1707}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f14b4ca477a0ca9d53311d5f35e2e85ea0a971fe047295d69b49c413a3a5d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:250-256 | Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:301-307 \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 \u0060Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:250\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, \u0060Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:247\u0060 calls \u0060write\u0060, \u0060Data\u0060 and \u0060Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:299\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":"Packages/OsaurusCore/Tools/Database/DatabaseExport.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"275020c1769f0af4c56b2fa2462789df49984721376ef71b6357ba105216d72e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:360-367 | Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:621-628 \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 \u0060Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:360\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":"Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5ba62b07f19b6449e6e99d853e5b97cdd9bf594cb6b9162e1edf2fb526ee1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:164-170 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:229-235 \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 \u0060Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:164\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":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"6317ba5101b2ddaa785ab32a4cc96a26a8eb0e1da4c9a2d3f2761ebcf34ec8f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2140-2146 | Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3241-3248 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.catalogLayoutMetric(\u0022component.library.41.elements.layout.agentSidebarRow.body.horizontalGap\u0022, inheriting: NativeComponentInspectionStyle.metric(41, \u0022gap\u0022, theme.space.s4, theme))\u0060 in one and \u0060theme.space.s0\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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":2140}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e460a04987209525d7d4751f4b8a63b16d6c77b5cf99bd84723f5a2038dd1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:117-122 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:126-132 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe7e46b3cba16410142ae1fe5855ece95d2f7b02709c975774af5fdc9eac0c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Credits/CreditsView.swift:601-607 | Packages/OsaurusCore/Views/Credits/CreditsView.swift:674-680 \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 \u0060Packages/OsaurusCore/Views/Credits/CreditsView.swift:601\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, \u0060Packages/OsaurusCore/Views/Credits/CreditsView.swift:598\u0060 calls \u0060Spacer\u0060, \u0060Text\u0060, \u0060signedCostLabel\u0060 and \u0060Packages/OsaurusCore/Views/Credits/CreditsView.swift:673\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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce925f5693d5652f7043340b7d94598152677f4444f5b470b70cd48770b28a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Credits/CreditsView.swift:740-747 | Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:427-434 \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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"da458a8b2785acdb86983f909cc744de1df05022d4c1932cf66a3904bed1e2e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Credits/CreditsView.swift:755-761 | Packages/OsaurusCore/Views/Credits/CreditsView.swift:768-774 \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 \u0060Packages/OsaurusCore/Views/Credits/CreditsView.swift:755\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":"Packages/OsaurusCore/Views/Credits/CreditsView.swift"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"3469e2c93f7b7cb8846e8fd86e6175aef33de446c3f5de553bba707a4f4a7e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:801-811 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1298-1308 \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 \u0060Packages/OsaurusCore/Views/Event/EventFormComponents.swift:801\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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfe68d1b48255805d24020d4cd5c927677f55cee3e5ae37eda25d383babdc48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Event/EventsView.swift:260-266 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:332-339 \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 \u0060Packages/OsaurusCore/Views/Event/EventsView.swift:260\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":"Packages/OsaurusCore/Views/Event/EventsView.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ad51649ad83ba66183da26878686e3f4088c34f4d9cd105918a6f482f6fda9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:351-357 | Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:428-433 \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 \u0060Packages/OsaurusCore/Views/Memory/MemoryComponents.swift:351\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":"Packages/OsaurusCore/Views/Memory/MemoryComponents.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"905c69243f9d1a4f18d4db0446356bd5fcaed81a46d5d3d64a5c1974e887bd62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Memory/MemoryView.swift:237-243 | Packages/OsaurusCore/Views/Skill/SkillsView.swift:155-161 \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 \u0060Packages/OsaurusCore/Views/Memory/MemoryView.swift:237\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":"Packages/OsaurusCore/Views/Memory/MemoryView.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e4d7c19706b377d00ff901f01c2a6ac6a11010a27dc75337861ddcd4565ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:370-376 | Packages/OsaurusCore/Views/Plugin/ClaudePluginDetailView.swift:404-410 \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 \u0060Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:370\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":"Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"05837edf7c04e4f2fe66f5ebb696aea1de866fd41675c199d419a6853d5baeca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1851-1857 | Packages/OsaurusCore/Views/Router/RouterAccountUsageCenterView.swift:532-538 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1851\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s4\u0060 in one and \u0060theme.space.s6\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"298955da70641a46196501eb8b625ce3f0d1e0ea01eee6aa6bcae6c636bee729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:1973-1981 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:2860-2868 \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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b15529764568f3509e12ab29c909d07fe04253f75c3cd6cdfbf5e1141b0b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift:538-544 | Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift:570-576 \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":"Packages/OsaurusCore/Views/Plugin/ToolPermissionView.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"f542aae1e50fe315edcc8ee69395b76e0f360d93289ae4edf2f56e3071abef30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:699-705 | Packages/OsaurusCore/Views/Settings/SearchView.swift:860-866 \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 \u0060Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:699\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":"Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"52666ba1a110cff1d370a7e557bf8c64a4c32d0e97915b26514f638b559f29d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ServerModelsTabContent.swift:274-280 | Packages/OsaurusCore/Views/Settings/ServerView.swift:606-611 \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 \u0060Packages/OsaurusCore/Views/Settings/ServerModelsTabContent.swift:274\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/ServerModelsTabContent.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b8624ab7f7fd3184c374ce876983e3d75e00c6ddb40a3b8c64625c561c79c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:174-180 | Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:208-214 \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 \u0060Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:206\u0060 calls \u0060HStack\u0060 and \u0060Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:172\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"121fe11800a7d290bd2a401394eb16fbeeef8aca7de1887977279deb64809d70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:545-551 | Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:751-756 \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 \u0060Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift:545\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":"Packages/OsaurusCore/Views/Template/PublishedWorkflowDashboard.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f63fa2569beb63eaaa188d7a1ea088215934ebe65bd5623336133863096adf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:694-700 | Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:967-974 \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 \u0060Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:694\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":"Packages/OsaurusCore/Views/Voice/VoiceComponents.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd6e6c9b6ee28ff52e383ce3e18042482c1556c4136f8fe7b27de4d76db3881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift:540-547 | Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift:289-296 \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":"Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"938e04a78999f07895f76fcd99b27669a59bf0539f928a71b654acd74f4ad866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:445-451 | Packages/OsaurusCore/Views/Workflow/WorkflowRunHistoryList.swift:603-609 \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 \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:445\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, \u0060Packages/OsaurusCore/Views/Workflow/WorkflowRunHistoryList.swift:610\u0060 calls \u0060accessibilityElement\u0060, \u0060accessibilityLabel\u0060, \u0060Text\u0060 and \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:452\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab79223dd19ffca43abd45fe402ad912a12a44dabba605de457e190160bce12b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:721-727 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalScoreboardCLI.swift:149-155 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb4ea7a3086a0aed4b0745362d40cb84a11413bfe4de3cb15942ff1eaa576e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1652-1658 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2008-2014 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:1652\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd42b81496503744d245a49926a631b278143f6b0f565d522cc9c81f62919ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3486-3491 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3498-3503 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3549-3556 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3563-3570 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3594-3599 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3640-3645 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3661-3666 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3674-3679 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3693-3698 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1684-1689 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1886-1893 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2098-2105 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2111-2118 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2145-2150 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2686-2691 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3185-3190 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1682-1687 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:124-129 \u2014 there are 18 copies across 4 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 18 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3486\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, \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3492\u0060 calls \u0060object\u0060, \u0060number\u0060, \u0060Double\u0060 and \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3600\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3486}}}],"partialFingerprints":{"codehealthFindingId/v1":"753933b747834c7c1afe06046dbd18ff7bd37720414e845c7dd478985ba066e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:30-35 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:26-31 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:27-32 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:40-45 | Packages/OsaurusCore/Storage/MethodDatabase.swift:24-29 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:30-35 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:33-38 | Packages/OsaurusCore/Storage/TaskDatabase.swift:32-37 | Packages/OsaurusCore/Storage/ToolDatabase.swift:24-29 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:27-32 \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 10 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:30\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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98a7ccbfc3413eb5bc99b15fdf117221c041ef0d1e0daa275b2fc8fe0ce0de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): Packages/OsaurusCore/Networking/HTTPHandler.swift:5671-5676 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6483-6488 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6777-6782 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6967-6972 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7108-7113 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7389-7394 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7444-7449 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7686-7691 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7865-7870 \u2014 all 9 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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5671\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5671}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cf7bbf7b5d8c7eca44ee048df444396bf9a1b45c89242eb056e8285dd87218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): Packages/OsaurusCore/Networking/HTTPHandler.swift:5301-5317 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7029-7045 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7156-7167 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7418-7423 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7512-7523 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7758-7769 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7918-7934 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5301\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5301}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bc52cbda8a4d2d0929a83ecc7276c2307e561cf80925a9aee8f62777ff6040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1513-1518 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1544-1549 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1928-1933 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1959-1964 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2308-2313 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2404-2409 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2432-2437 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:1513\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060limit\u0060 to \u0060Int = MemoryConfiguration.fallbackSearchLimit\u0060 in one and \u0060Int = 200\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:2403\u0060 calls \u0060sqlite3_bind_int\u0060, \u0060Int32\u0060 and \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:1512\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b629e504e9cecb5960f80f7e72e5e359343bc612dc4cfa5a2a35bea88e080f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3528-3534 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3646-3652 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3680-3686 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3695-3701 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2147-2152 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:1684-1690 \u2014 there are 6 copies across 3 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3528\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3528}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fa58acbe84de8614d33995e5fe582b2b596669aa522a8f30a6001f43d78072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:139-145 | Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:309-315 | Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:255-261 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:221-227 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:265-271 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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":"Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d4c32a560ae0e7f2b86416f9201353606ed443ce993889729572a2d2b04fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:174-179 | Packages/OsaurusCore/Views/Agent/Templates/AgentTemplateSheets.swift:64-69 | Packages/OsaurusCore/Views/Template/TemplateImportSheet.swift:84-89 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowBundleSetupView.swift:162-167 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowSetupWizardView.swift:248-253 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift:174\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":"Packages/OsaurusCore/Views/Agent/Setup/AgentSetupWizardView.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb92b3e8ec3148f500bf0c72086bb20ed6b1eb315a2e840b1c75677bbdcdabf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:305-310 | Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:450-455 | Packages/OsaurusCore/Services/HuggingFaceService.swift:374-379 | Packages/OsaurusCore/Services/HuggingFaceService.swift:772-777 \u2014 there are 4 copies across 3 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 4 sites; resolving a subset leaves the remainder to drift apart. 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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3d7c450a03833e7d4274becb228df0ae0152a1e687c60c2c08675095caf4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Packages/OsaurusCore/Models/Chat/RequestLog.swift:1229-1234 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:1240-1245 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:1258-1266 | Packages/OsaurusCore/Models/Chat/RequestLog.swift:1279-1287 \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 \u0060Packages/OsaurusCore/Models/Chat/RequestLog.swift:1229\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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c271509a7276affb5b508bd7e9023d1b01a1afab2e06ab2885be64c0e2be7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Packages/OsaurusCore/Networking/HTTPHandler.swift:15467-15472 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15938-15943 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16253-16258 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18618-18623 \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. 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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15467}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc427dd06a9c7387d4ce0d0499896403f68fc4df3fe19f358866ca36bffd2062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3572-3579 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3672-3677 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2107-2116 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3183-3188 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3572\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3572}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e5798ec9e939ddc11f2eafa39bfa8b3083ca88dc4c2671c98ec7dba0a8ad19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2817-2822 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2863-2868 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2932-2937 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2967-2972 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2871\u0060 calls \u0060contains\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2940\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2817}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5c0ca9cadd3d4ce3365088f97b558702f6d8d67d3e8610b2b884f9a314bc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:159-164 | Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:841-846 | Packages/OsaurusCore/Views/Settings/AgentChannelDestinationViews.swift:347-352 | Packages/OsaurusCore/Views/Settings/ChannelsOverviewTable.swift:76-81 \u2014 there are 4 copies across 3 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:159\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, \u0060Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:839\u0060 calls \u0060settingsLandingAnchor\u0060 and \u0060Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:157\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":"Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4f8d8b3cc53dd9811287708316844541fa2c8166a235dbbc4cd127a94e93e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:645-652 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:682-689 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1054-1061 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:1091-1098 \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 \u0060Packages/OsaurusCore/Views/Event/EventFormComponents.swift:645\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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ef434325942b6f5c853ff830c78fa29c2cb6450416db05d346a25f4501938a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:494-498 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:630-635 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:751-756 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:904-908 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:494\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":"Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"1841cb4fc5482a56edaf34cf885158c189e5e59a77e86a307b4aea85d0e403fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/AppleApps/Support/AppleScriptBridge.swift:233-238 | Packages/OsaurusCore/Networking/HTTPProtocolErrors.swift:213-218 | Packages/OsaurusCore/Tools/ToolEnvelope.swift:672-677 \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 \u0060Packages/OsaurusCore/AppleApps/Support/AppleScriptBridge.swift:233\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":"Packages/OsaurusCore/AppleApps/Support/AppleScriptBridge.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"548de57ac704a6861658ba67aa4725996dccda6aa727232b2a7325bbda66785c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:41-46 | Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:204-209 | Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:283-288 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdd7253a5dfe30bba6f5a5e1b05d59fa1b6138fede6c4eebbe32cae0729035a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Networking/HTTPHandler.swift:3551-3556 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4079-4085 | Packages/OsaurusCore/Networking/HTTPLoopHelpers.swift:181-186 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:3551\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3551}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c12a10c8330c4e2b31dcd2120502756963640baa4c06a4c86549f1757c1f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3609-3616 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1887-1894 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:3186-3191 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3609\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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":3609}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d92f073bfd8458128142543f6e6eb9050b4673fa22c23c517c32661c9241953"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:523-528 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:838-843 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:620-627 \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 \u0060Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:523\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc4fa2caa8d6d30f7632474f4c6f97a91b1d58a8eae8bba879b3cb9a5484ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift:43-50 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:313-318 | Packages/OsaurusCore/Tools/AgentLoopTools.swift:621-626 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift:43\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":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff03b23bd7213f246d8a3e05fe274d7aba63e90549e3654d95c9e5f5c8819ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:60-65 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:333-338 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:472-477 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"93922d3cb517a7d09396d945b7b991c83c8d7e9f8b8c4d37909ec4a44f648785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:629-634 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:637-642 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:664-669 \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. 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":"Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fb1544495d6ec61ccf53b287a5913ca059fab33c5aa3eb3bc4ac16ffa0478a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:735-740 | Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:757-762 | Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:826-831 \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 \u0060Packages/OsaurusCore/Services/Template/WorkflowShareService.swift:735\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":"Packages/OsaurusCore/Services/Template/WorkflowShareService.swift"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"56da37419862b9b891f128646fe7db45ebc0dbc6111b26b72df0cfa64287ea59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:1037-1042 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:1048-1053 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:1079-1084 \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":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d63a20dd0b4579f99ec25bd79bd05abe54294a6163c1dec7e4bc96f1615f8b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Storage/ActivityLogStore.swift:1107-1112 | Packages/OsaurusCore/Storage/ActivityLogStore.swift:1118-1123 | Packages/OsaurusCore/Storage/ActivityLogStore.swift:1138-1143 \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 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":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c8010a9b9ec64398601b5a1846d37363341689606b13ffae0d4986f62ed8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Storage/TaskDatabase.swift:640-645 | Packages/OsaurusCore/Storage/TaskDatabase.swift:653-658 | Packages/OsaurusCore/Storage/TaskDatabase.swift:674-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. 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":"Packages/OsaurusCore/Storage/TaskDatabase.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c07c93603d17f6c2aaf97634dceda581585fe44bacc2d9da951b79ea3660e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1693-1698 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2118-2125 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2687-2692 \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 \u0060Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1693\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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"596a691b9323cfed292a7d8837af1dbaf3ceaa1f65b3638b833f2123696922a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Tools/Database/SchedulerTools.swift:25-30 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:995-1002 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:896-903 \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":"Packages/OsaurusCore/Tools/Database/SchedulerTools.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c33b5dd851dbd06d0e61b9f7175d78cd501f041883f1faf868dc7af69e850c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:542-547 | Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:573-578 | Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:619-624 \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":"Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c46f5edbe371b8768f8311358d57eb69a1927a468d4d2b44165a4476a13116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2443-2448 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2493-2498 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3606-3611 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2443\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6be094e964b45c63d1456f76f56cee9cb5641e3f52abb4b92a9c1f9f0ee1166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Views/Event/EventEditorSheet.swift:232-238 | Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:430-436 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2142-2147 \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 \u0060Packages/OsaurusCore/Views/Event/EventEditorSheet.swift:232\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":"Packages/OsaurusCore/Views/Event/EventEditorSheet.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"056a2fc934747e06ad6fb53fb7a52064e012e24627743db0f18ed5a40c734e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:405-416 | Packages/OsaurusCore/Services/HuggingFaceService.swift:1062-1074 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:405\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a046f9701f11cd5c65cd878a5ea24d817b03792952198b72b25cee11a29d3f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:516-521 | Packages/OsaurusCore/AppleApps/Reminders/RemindersService.swift:395-400 \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":"Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf39dac0a726766e56a3c5f85908755ace6c10a9f11d20ba7521782c5f0cc65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Notes/NotesTools.swift:127-132 | Packages/OsaurusCore/AppleApps/Notes/NotesTools.swift:196-201 \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 \u0060Packages/OsaurusCore/AppleApps/Notes/NotesTools.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":"Packages/OsaurusCore/AppleApps/Notes/NotesTools.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd9a22141b28e02201b436bfc5415dce76d178e0a45ebfb1c18517003df097c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:128-133 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3612-3619 \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 \u0060Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift:128\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":"Packages/OsaurusCore/Browser/Tool/BrowserChildTools.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a08fd3aa0bf20bd3f37682923b2441776e47ff206de77381b4b69137f478b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift:128-133 | Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift:176-181 \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 \u0060Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift:128\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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/ElementCache.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb0ff80c86ebc028705621367f85a39a391eef16f8abfb9e083bfcead7df28f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1479-1484 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2121-2126 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:1479\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"9069d68dc6cd0e646abd608baac11ebcb1c14a15316bb90cc6da14efa0adeb72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 3): Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift:353-358 | Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift:267-268 | Packages/OsaurusCore/Services/Documents/PDFEditor.swift:339-344 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift:353\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. 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, \u0060Packages/OsaurusCore/Services/Documents/PDFEditor.swift:339\u0060 calls \u0060min\u0060 and \u0060Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift:267\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"18490f6470dac6932f27d43418e4f35fb62305d5602dc50658ce4104eebd6bc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift:708-713 | Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift:727-732 \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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd8393697c43445d3b3368d040264f31d0fda873e0dc50af958e90f0179b005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/DevelopmentDesign/DesignAgentSurfaceChecks.swift:13-18 | Packages/OsaurusCore/DevelopmentDesign/DesignCatalogLayoutChecks.swift:9-14 \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 \u0060Packages/OsaurusCore/DevelopmentDesign/DesignAgentSurfaceChecks.swift:13\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":"Packages/OsaurusCore/DevelopmentDesign/DesignAgentSurfaceChecks.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0be2e0aa625eac140aa32bf3dbeb720ab177082457e891d5152f33652d6c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): Packages/OsaurusCore/Folder/FolderContextService.swift:315-320 | Packages/OsaurusCore/Folder/FolderContextService.swift:357-361 \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 \u0060Packages/OsaurusCore/Folder/FolderContextService.swift:315\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":"Packages/OsaurusCore/Folder/FolderContextService.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c484525e5bd736fcd850056ef93bcd85ecaae78a9f474dbf4c8c49c287ab3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Folder/WorkspaceWriteSafety.swift:559-567 | Packages/OsaurusCore/Services/Knowledge/KnowledgeDiff.swift:94-99 \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 \u0060Packages/OsaurusCore/Folder/WorkspaceWriteSafety.swift:559\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":"Packages/OsaurusCore/Folder/WorkspaceWriteSafety.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"be69186793d55a7a98f1621ea87bddb14e50b45487371177c52551205b3d273c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:520-526 | Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:643-648 \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 \u0060Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift:520\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":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"12774f42f6f1a28d5d8f61e1afcc9e4a61ff62c0e0c5ec4e356a048d0a0bc9e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/API/AnthropicAPI.swift:511-516 | Packages/OsaurusCore/Models/API/AnthropicAPI.swift:820-825 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Models/API/AnthropicAPI.swift:511\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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5439d230ce793d069dc641746a4958a410a7036117634006a2c3485e9a6e834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1654-1664 | Packages/OsaurusCore/Tools/SchemaValidator.swift:853-858 \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 \u0060Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1654\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97bd0869160c31c632153f09b173d7959e5027f18613f3675fa5e9271df4af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:1322-1327 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:1536-1542 \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 \u0060Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:1322\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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c63646709a2ffecfb5df03528af780c54a26634e0d779ee37d8c24054fa301e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:99-104 | Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift:160-165 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelLiveProofReadiness.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"618edb51514f5c8bd76b33b14d826e86ecc58936581516e2bf147300bf183a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:599-607 | Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1822-1830 \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 \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:599\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, \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:598\u0060 calls \u0060finish\u0060 and \u0060Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:1821\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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"188eb4e9ec656a20a49ab2ef2e3ed899145842afc666e29b458e0c4e821e1be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:7150-7154 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7911-7916 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7150\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7150}}}],"partialFingerprints":{"codehealthFindingId/v1":"647f33c699094d9403907cc400c18a433e8f2cf7074afc5629b3929990511e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:467-472 | Packages/OsaurusCore/Services/HuggingFaceService.swift:781-787 \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 \u0060Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:467\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":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e667d43d391e38b87bdc6a2280eef821dbf86a72f2878b565309da652ee14ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:133-138 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:343-348 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:133\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f9e8527adca88534d0c7b84c676d174e30d5bb3e8276be6176e19b1576f20e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:141-146 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:352-357 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:141\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e61a5684cf81db53f50b2114dd60ca743ee589cd33a01692209cdfc694bbc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:148-153 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:360-365 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:148\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"528f8504eadfa492309436c044c6a88b24acc5da1394d4a67c310378d396959d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:3170-3175 | Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:3182-3187 \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 \u0060Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:3170\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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":3170}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bf52d690f8679a2fc179955019095be7babe52b8caad8d23965511b4c3a67c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ToolResultMediaBridge.swift:43-48 | Packages/OsaurusCore/Services/Chat/ToolResultMediaBridge.swift:50-55 \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 \u0060Packages/OsaurusCore/Services/Chat/ToolResultMediaBridge.swift:50\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":"Packages/OsaurusCore/Services/Chat/ToolResultMediaBridge.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a46805632f976f8108c80d46f824ebc43aaefad80fbc07ecdb8e4ae19170c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:444-450 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:749-755 \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 \u0060Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:444\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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ed15d9a1cc8e53e047156e23423645ad2dc2b8e2394e3708a45314494bb3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift:260-267 | Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift:170-177 \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 \u0060Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift:260\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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d95a42f01830edc313e81db7f4e35f96f0377cb4b99ed724991f5c7ca763b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Inference/MLXService.swift:677-682 | Packages/OsaurusCore/Services/Inference/MLXService.swift:687-692 \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":"Packages/OsaurusCore/Services/Inference/MLXService.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce8479b4bcb42ef675743f218d086ad7b3148ea021003b15a7ad8c940b74df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift:224-230 | Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaCatalog.swift:97-103 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift:224\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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fb24fbb56c64bbeb62c8a0c8216824107e9cdae8e0435144e91d34bc53b27e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:258-263 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:894-899 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift\u0060 and \u0060Packages/OsaurusCore/Services/Tool/ToolSearchService.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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 \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift:258\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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c3faa33d05799bdec066782fb9590b740bcd1c620580c4f633948bd877b611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:177-182 | Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:238-243 \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 \u0060Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:177\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":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2452be045863ec27fddbd1283d2d80bc9e196ea6b2e5a0dec31f74e712dcebbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 4): Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:71-73 | Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:90-92 | Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:214-219 | Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:301-306 \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 \u0060Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:71\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 after the matched lines, \u0060Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:306\u0060 calls \u0060prefix\u0060 and \u0060Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift:92\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":"Packages/OsaurusCore/Services/Search/NativeSearchBackends.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5144dcd41e55555d6d65ea1c89a1c4780025208919a02d7f7f1301a7b7ba1c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:897-902 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:1118-1123 \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 \u0060Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:897\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":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0548b4bc512f59ba9657660e7913a9670599d93ba656ccf6e618561d258b558"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Workflow/DialogCoordinator.swift:154-159 | Packages/OsaurusCore/Views/Workflow/WorkflowFormView.swift:56-61 \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 \u0060Packages/OsaurusCore/Services/Workflow/DialogCoordinator.swift:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Workflow/DialogCoordinator.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76052c1885c91e958cdc0a4652fe083236bc7c6d3c209d3519ca4a47eb122f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1219-1224 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1250-1255 \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 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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0ad6fc2d59cd25b6afe1a5f71706525c636051014a3197c398c5d814ebe858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1271-1276 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1287-1293 \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 \u0060Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1287\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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6895b01b42c9e3088750547a280714567c7b79e8483a05bcd8fe649f1d7e77f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Storage/EventRunDatabase.swift:499-504 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:514-519 \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 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":"Packages/OsaurusCore/Storage/EventRunDatabase.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7cf1cc85fc48033af0c3d525e5644b4c885532c1d35d09d794dfc86ce9a35f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:589-594 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:604-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. 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":"Packages/OsaurusCore/Storage/FileHistoryDatabase.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7189a8d447d51a8d557e2638bb8e633ca7641c1ce46dc810c235cd27869e239"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Storage/SchedulerDatabase.swift:626-631 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:641-646 \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 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":"Packages/OsaurusCore/Storage/SchedulerDatabase.swift"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"deaaa382bedd334c1783a18e678da7279b44daea1671b711200438b3d6aa49ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:285-290 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:299-304 \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 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":"Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0154353a475a957902070472f43027c37126b5c2bf1e7a26108825f1a767a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift:1078-1087 | Packages/OsaurusCore/Tools/Handoff/HiddenAgentHandoffRunner.swift:338-343 \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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb75943be60de43e10cd4d067ddd80fa9cb6cf92593aa9c2dd2c358aa29516f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:173-178 | Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:232-237 | Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:290-293 \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 \u0060Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:173\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:178\u0060 calls \u0060createFile\u0060 and \u0060Packages/OsaurusCore/Tools/Database/DatabaseExport.swift:293\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":"Packages/OsaurusCore/Tools/Database/DatabaseExport.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cdcb7772098c9715b313ac28a306218dc035bf1b069c4f98fb9c849d9ef08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:126-131 | Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:241-246 \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 \u0060Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"354d253f05d4d42cb6c204b126a84cf64d364bbab3bb9b4f451c2837a995ec38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:431-436 | Packages/OsaurusCore/Tools/KnowledgeTools.swift:460-465 \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 \u0060Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift:431\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":"Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"5418178d2fb4a7d1c7e9cbb8d3eb7f527280d17a10a7a81ec78a7b3d2e5c23ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Tools/KnowledgeTools.swift:475-480 | Packages/OsaurusCore/Tools/KnowledgeTools.swift:733-738 \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 \u0060Packages/OsaurusCore/Tools/KnowledgeTools.swift:475\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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26df4f62956306cb55e2bba86afa24f3970fd05a2071e49dc8839e15f278e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift:608-613 | Packages/OsaurusCore/Views/Settings/ProvidersView.swift:1326-1331 \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":"Packages/OsaurusCore/Views/Agent/AgentCapabilityManagerView.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66103ac510b7104c722c495b597a04c4c3a63a50d56bf8335da0d659b746c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentsView.swift:2598-2607 | Packages/OsaurusCore/Views/Agent/BuiltInAgentAvatarPicker.swift:133-138 \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 \u0060Packages/OsaurusCore/Views/Agent/AgentsView.swift:2598\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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95669b8d1b6d98fe8078e20a2154c12eb88e1c080a1ffcf3109657254d84284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:511-519 | Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift:816-821 \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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"235517cb5ffa75e2cbddaf3d1fa12fa68c9550c6b4043a46333e1856646f2f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/AtFileMenuPopup.swift:136-141 | Packages/OsaurusCore/Views/Chat/SlashCommandPopup.swift:114-119 \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 \u0060Packages/OsaurusCore/Views/Chat/AtFileMenuPopup.swift:136\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":"Packages/OsaurusCore/Views/Chat/AtFileMenuPopup.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9234e0f503e4acdad06fa175b6976ad69107c1b7174cf5c8232d56bc94d94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FileChangesPanel.swift:664-669 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:1975-1980 \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":"Packages/OsaurusCore/Views/Chat/FileChangesPanel.swift"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c83bd0bd96c0b65c47b3cec8b90408152ce277c7c03e4ff4f2c4718ec77c30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/FollowUpSuggestionsBar.swift:126-132 | Packages/OsaurusCore/Views/Chat/OnboardingPanelView.swift:171-176 \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 \u0060Packages/OsaurusCore/Views/Chat/FollowUpSuggestionsBar.swift:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/FollowUpSuggestionsBar.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"af470ec0bf1e7b8192cb7d0f21ba4622e1b34b626550e164a978fc768e7062e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/HostedApprovalCard.swift:18-23 | Packages/OsaurusCore/Views/Chat/HostedSecretCard.swift:21-26 \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 \u0060Packages/OsaurusCore/Views/Chat/HostedApprovalCard.swift:18\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":"Packages/OsaurusCore/Views/Chat/HostedApprovalCard.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc8cee07f2fe5bd1d772880358f7ec823f33d954f67d684c06a624571a78543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:1417-1422 | Packages/OsaurusCore/Views/Chat/NativeMarkdownView.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift:1417\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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"c402d707530490ce4f922bbf79933b64076abcb85964928a02dd1056b5db74f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:220-225 | Packages/OsaurusCore/Views/Common/CodeBlockView.swift:332-337 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060nsView\u0060 to \u0060SelectableNSTextView\u0060 in one and \u0060CodeNSTextView\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:228\u0060 calls \u0060setHeight\u0060 and \u0060Packages/OsaurusCore/Views/Common/CodeBlockView.swift:338\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":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0093fdf22220b8d196ed8a7a32e9d4fb61be534518d72e48265cd7c0f89f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:357-363 | Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:1456-1462 \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 \u0060Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:357\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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ec117ec8e10bac8242ee24b9a5438d991e0bac28b45171313f078198e59413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:119-124 | Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:807-812 \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 \u0060Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:119\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":"Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8206c791902bad7d35c7b39855c656aed058f096cacaf91220f0e599f33c41e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Event/EventEditorSheet.swift:413-418 | Packages/OsaurusCore/Views/Event/EventEditorSheet.swift:437-442 \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 \u0060Packages/OsaurusCore/Views/Event/EventEditorSheet.swift:413\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":"Packages/OsaurusCore/Views/Event/EventEditorSheet.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"077e1af0b777e271bbd7cf9ec3d38557494610ef10fc0207e688e1036acb18d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1535-1540 | Packages/OsaurusCore/Views/Settings/SearchView.swift:860-865 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1535\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab54f46f2095ddf7e2f9e8ffb881d94cabf00dd6cbc5ae45022995f89aa10dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:374-379 | Packages/OsaurusCore/Views/Workflow/WorkflowRunHistoryList.swift:385-390 \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 \u0060Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift:374\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":"Packages/OsaurusCore/Views/Workflow/Library/WorkflowsPaneView.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10b9865e3fe8d29bb8ceb46026e78636cc4d2110a1b135fd318bbdf45a11b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:559-565 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:531-536 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:898-904 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:559\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a56efaca5fce7619f1d5933eb97b86ceae81c87a81da8d71a77dc655aa0012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:620-627 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:769-776 \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 \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift:620\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerHTTPAPI.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcdd9cbc03ff26264bafc0652f52c8fb8a53c0c0b6a3587d8e045814e2623f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 17): Packages/OsaurusCore/Storage/ActivityLogStore.swift:38-42 | Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:25-32 | Packages/OsaurusCore/Storage/AgentDatabase.swift:48-52 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:27-31 | Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:24-28 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:23-27 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:24-28 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:29-33 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:37-41 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:35-39 | Packages/OsaurusCore/Storage/MethodDatabase.swift:21-25 | Packages/OsaurusCore/Storage/PluginDatabase.swift:18-22 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:27-31 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:30-34 | Packages/OsaurusCore/Storage/TaskDatabase.swift:29-33 | Packages/OsaurusCore/Storage/ToolDatabase.swift:21-25 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:24-28 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 17 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Storage/ActivityLogStore.swift:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:22\u0060 calls \u0060invalidReceiveEvent\u0060 and \u0060Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:24\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":"Packages/OsaurusCore/Storage/ActivityLogStore.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0664f022fbbdca9f24a250f9cbbae14156599ced80ccabb3ae2420b1050fa756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): Packages/OsaurusCore/Networking/HTTPHandler.swift:3551-3555 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4079-4084 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4818-4822 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4915-4919 | Packages/OsaurusCore/Networking/HTTPHandler.swift:4982-4986 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15186-15190 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15720-15725 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15786-15791 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18163-18167 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18213-18217 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18918-18922 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18968-18972 | Packages/OsaurusCore/Networking/HTTPLoopHelpers.swift:181-185 \u2014 there are 13 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 13 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:3551\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":3551}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfe2b08743e75b116c82b737139472cde51fcdb6725ed82f2e5da265532c871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): Packages/OsaurusCore/Tools/AgentChannelTools.swift:458-462 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:512-516 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:567-571 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:631-635 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:690-694 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:748-752 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:812-816 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:862-866 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:908-912 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:964-968 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1030-1034 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1100-1104 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1247-1251 \u2014 all 13 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 \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:458\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:687\u0060 calls \u0060value\u0060, \u0060requireString\u0060 and \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:456\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":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"7730b304cf847a982a15e1f85daa9a013a67dcd4c4e9e986d9c78f30408263a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): Packages/OsaurusCore/Tools/AgentChannelTools.swift:512-516 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:567-571 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:631-635 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:748-752 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:812-816 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:862-866 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:908-912 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:964-968 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1030-1034 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1100-1104 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1247-1251 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1404-1408 \u2014 all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:512\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:745\u0060 calls \u0060value\u0060, \u0060requireString\u0060 and \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:510\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":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceae47ce5cad129a4d3ef588822e42c07f8ebfdc41e36e9ea22c4a8c3e4bf80a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): Packages/OsaurusCore/Networking/HTTPHandler.swift:5635-5640 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6090-6095 | Packages/OsaurusCore/Networking/HTTPHandler.swift:6936-6941 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7073-7078 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7197-7202 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7646-7651 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7835-7840 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8028-8033 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8085-8090 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8289-8294 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5635\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5635}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df9de546a68d865ee24e2f3dfa73014628e10d359bfe67d5c69486bbc7043a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): Packages/OsaurusCore/Networking/HTTPHandler.swift:5296-5306 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7024-7034 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7152-7156 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7414-7418 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7508-7512 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7754-7758 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7913-7923 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8539-8549 | Packages/OsaurusCore/Networking/HTTPHandler.swift:8626-8636 \u2014 all 9 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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:5296\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5296}}}],"partialFingerprints":{"codehealthFindingId/v1":"2045364f42a7be7c269763ec42a575ecb0c698952a2607ed715562173443c3be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2444-2448 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2494-2498 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2816-2820 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2862-2866 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2931-2935 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2966-2970 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3607-3611 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2444\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, \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2500\u0060 calls \u0060constraint\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2822\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2444}}}],"partialFingerprints":{"codehealthFindingId/v1":"093fe364d6359e847fcdb0f3a434a14f915a831eae4e391479fca72813cc9b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:305-309 | Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:450-454 | Packages/OsaurusCore/Services/HuggingFaceService.swift:244-248 | Packages/OsaurusCore/Services/HuggingFaceService.swift:374-378 | Packages/OsaurusCore/Services/HuggingFaceService.swift:772-776 | Packages/OsaurusCore/Services/HuggingFaceService.swift:1011-1015 \u2014 there are 6 copies across 3 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 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"2baeaca8e23e7ae762cebcd1b065899e06cf0add150d27c2e056d2a45aa2b433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Packages/OsaurusCore/Networking/HTTPHandler.swift:15465-15470 | Packages/OsaurusCore/Networking/HTTPHandler.swift:15936-15941 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16251-16256 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17944-17950 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18616-18620 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15465\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 after the matched lines, \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:17952\u0060 calls \u0060writeMessageStart\u0060 and \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:15472\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":15465}}}],"partialFingerprints":{"codehealthFindingId/v1":"b291b379a1439dfefd8def4eca09f8a57f7c7b11a22370c0f4a809a8293b452a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:465-469 | Packages/OsaurusCore/Services/HuggingFaceService.swift:454-458 | Packages/OsaurusCore/Services/HuggingFaceService.swift:779-784 | Packages/OsaurusCore/Services/HuggingFaceService.swift:874-878 | Packages/OsaurusCore/Services/HuggingFaceService.swift:1018-1022 \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 \u0060Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift:465\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, \u0060Packages/OsaurusCore/Services/HuggingFaceService.swift:776\u0060 calls \u0060URLQueryItem\u0060 and \u0060Packages/OsaurusCore/Services/HuggingFaceService.swift:451\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":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c30f589e644f8c1b87d3ae28452302da726bdc718b1dc13a04a2516d597d296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:661-665 | Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:686-690 | Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:729-733 | Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:762-766 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060selector\u0060 to \u0060String?) async -\u003E (success: Bool\u0060 in one and \u0060String?\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:691\u0060 calls \u0060replacingOccurrences\u0060 and \u0060Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift:666\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":"Packages/OsaurusCore/Browser/Runtime/BrowserSession.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc84a40c9a50265b8e5c958afae3fae3523ba661e85526d27921fede47b8e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:134-138 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:149-153 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:344-348 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:361-365 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:134\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c69a7178e773a439e3b5865faa5336ec7a76e1b4f82e15415aad2e89841fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2816-2820 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2862-2866 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2966-2970 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3470-3474 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:2816\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":2816}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaf072d5938b046fec9e0aab069d8596acc6845c1813c54c0a1f1ecb45fbf7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Packages/OsaurusCore/PrivacyFilter/Views/PrivacyCustomRuleEditor.swift:211-218 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1047-1051 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1998-2002 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/PrivacyFilter/Views/PrivacyCustomRuleEditor.swift:211\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":"Packages/OsaurusCore/PrivacyFilter/Views/PrivacyCustomRuleEditor.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d30733a61f8a07a56376e80f91b018829247406bf21abf2883f6dc465925f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift:610-614 | Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift:630-634 | Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift:657-661 \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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e433730e473d5e711a4efb3bf9b9c2f8ffd8407b3702b3184bd774830d8536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift:193-198 | Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:471-476 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:332-337 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/MCPProviderProbeService.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a975f3144a5a94b34d8ffeff79d4d479371a0a28cca2a7af431badb0ab20f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:260-264 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:356-360 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:896-900 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift\u0060 and \u0060Packages/OsaurusCore/Services/Skill/SkillSearchService.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 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 \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift:260\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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5c32c80dcd4f1438c2d06c4eff707114563a0fe3bbeec17558646589c5477f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:94-100 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:136-142 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:154-160 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36cc7612b82ddd18be15ae89eddb956c30c05d2e1b85b6b2aaec411a7a27a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift:60-65 | Packages/OsaurusCore/Models/API/OpenAIAPI.swift:1561-1565 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Show.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"345da2eed292cbd48077d0216ae9555644af6bd0dde8fc136ba20f66212e61b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:586-590 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:964-968 \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 \u0060Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift:586\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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"468eab4eb5ba0124bc49317913e3c23fe02dc127f2e01bb00e6bccdd807826f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift:14-18 | Packages/OsaurusCore/Tools/SandboxPluginTool.swift:315-320 \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 \u0060Packages/OsaurusCore/Tools/SandboxPluginTool.swift:315\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":"Packages/OsaurusCore/AppleApps/Support/AppleSchema.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa32e1e26a13c5489e3da7f4a1d4dccd0b9acbe60c9c0ea0d3f711d9050fcf1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift:134-139 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/FixtureBrowserWorld.swift:415-420 \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":"Packages/OsaurusCore/Browser/Tool/BrowserToolExecutor.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94e627395b95133999aa2bd36230919d53250a94df911a4a61ac151631871ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Folder/FolderTools.swift:3909-3914 | Packages/OsaurusCore/Folder/RedactionTools.swift:509-513 \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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":3909}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce8cb0187a37a081d62a3511f38d03b60ecdf17ab3dc7d212b5382bacde2380"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Identity/APIKeyManager.swift:126-130 | Packages/OsaurusCore/Identity/APIKeyManager.swift:163-167 \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 \u0060Packages/OsaurusCore/Identity/APIKeyManager.swift:126\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":"Packages/OsaurusCore/Identity/APIKeyManager.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ac40be085d043e4171a685e43001dd6c266389b055fcbea205130354a3e778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Managers/Chat/ChatSessionExportCoordinator.swift:154-158 | Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift:318-322 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"Packages/OsaurusCore/Managers/Chat/ChatSessionExportCoordinator.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"14159f3ba3182b5e21f143feeaa27318cd68303250c1677bc35d40c389b558b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:963-973 | Packages/OsaurusCore/Managers/WindowManager.swift:441-453 \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 \u0060Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift:963\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":"Packages/OsaurusCore/Managers/Chat/ChatWindowManager.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34c11f93a7baff0c4c83687c9eec03e56398aa07fd0ea07dcc8799caa122fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Managers/Model/ModelManager.swift:1591-1595 | Packages/OsaurusCore/Managers/Model/ModelManager.swift:1604-1608 \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 \u0060Packages/OsaurusCore/Managers/Model/ModelManager.swift:1591\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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6414a423df09553b5bcd687f8077d71374da4017e1aa0d5e45e0a882ba64b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/API/EmbeddingAPI.swift:25-29 | Packages/OsaurusCore/Services/HuggingFaceService.swift:163-167 \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 \u0060Packages/OsaurusCore/Models/API/EmbeddingAPI.swift:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/EmbeddingAPI.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89db21bcdafd5468a39b80c52b47fa5b452445798e6901578a8cdb9848110ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/Skill.swift:900-907 | Packages/OsaurusRepository/OsaurusBundle.swift:348-355 \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":"Packages/OsaurusCore/Models/Agent/Skill.swift"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4db479f16e5b75f32a815a5e744dd77ec313ac7427180537052bc7588f58d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:263-267 | Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:310-314 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cb2faeeee4a081f75a431b9b7ac811fd6ee3ed2c8dd6241bebd07678483bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/FileDiff.swift:275-281 | Packages/OsaurusCore/Models/Chat/FileDiff.swift:283-289 \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":"Packages/OsaurusCore/Models/Chat/FileDiff.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb64bd046b478cf9d99fbc1ae3cdd189fd7b34bd5e44a820730641ea9a05183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/MLXModel.swift:376-380 | Packages/OsaurusCore/Services/ModelRuntime.swift:6200-6220 \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 \u0060Packages/OsaurusCore/Models/Configuration/MLXModel.swift:376\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":"Packages/OsaurusCore/Models/Configuration/MLXModel.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffbc284add1069bd280091d2c6ebdbfc233aef6d1c9e8fbc1d437903c59d50d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Models/Event/OsaurusEvent.swift:193-199 | Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift:1428-1434 \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":"Packages/OsaurusCore/Models/Event/OsaurusEvent.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7407df0e91c1e1a707bc1c645d8ba376826c3b8186a01a40f2ea370a7c8561b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:132-136 | Packages/OsaurusCore/Models/Workflow/FolderRequirement.swift:61-65 \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 \u0060Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:132\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":"Packages/OsaurusCore/Models/Template/TemplateRequirements.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"174c8bc1d57c12720b5e198ed8c8faf843ced43666e33a5cd24b7b9dcf54efe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:350-355 | Packages/OsaurusCore/Models/Workflow/InstalledWorkflow.swift:90-95 \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 \u0060Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:350\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":"Packages/OsaurusCore/Models/Template/TemplateRequirements.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47a9aaaf7e784336c4a18db493d2dcdec2ce60eed05fa416866f4e169f19309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:7396-7400 | Packages/OsaurusCore/Networking/HTTPHandler.swift:7451-7462 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:7396\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":7396}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bf41985fdf9381e4c32af957e75806baf3a4889461e53380b6f23df9420d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:12309-12313 | Packages/OsaurusCore/Networking/HTTPHandler.swift:12347-12351 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:12309\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":12309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf69d3971426aeb0c03f9c78093a86d53a32fb1817abe934d3175a7ad29b432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:13259-13263 | Packages/OsaurusCore/Networking/HTTPHandler.swift:17842-17852 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13259\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13259}}}],"partialFingerprints":{"codehealthFindingId/v1":"5920e1fc1e05fe0aa493c1d0b276a06c0fad9a6dc044d87982207a840f004d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:16015-16019 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16304-16308 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16015\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16015}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1ff63ee54b0574e3a961fba8dd0bdf94a795ea6c8a0ceecde4a0d83fa552a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:17840-17846 | Packages/OsaurusCore/Networking/HTTPHandler.swift:18501-18507 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:17840\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":17840}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28a5b01b90e28c766f5a358542b72d655cc091e256e23eca8e9cbb429f86200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/PluginHost/main.swift:293-297 | Packages/OsaurusCore/PluginHost/main.swift:299-303 \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 \u0060Packages/OsaurusCore/PluginHost/main.swift:293\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":"Packages/OsaurusCore/PluginHost/main.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed114b8d9641719110673110d16a7b915190ad70b06ac8585a0f2d0f56128c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/PluginHost/main.swift:559-563 | Packages/OsaurusCore/Services/Plugin/PluginProcessHost.swift:322-327 \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":"Packages/OsaurusCore/PluginHost/main.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf9fa5154b8fa5c7c9a91a8b37abf6f95a83fcc41029567f564152e2ed88b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/PrivacyFilter/Views/RedactionReviewSheet.swift:114-118 | Packages/OsaurusCore/PrivacyFilter/Views/RedactionReviewSheet.swift:319-323 \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":"Packages/OsaurusCore/PrivacyFilter/Views/RedactionReviewSheet.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ffee703ebcfbd4b0a24f609fefabb36dc7b8055fc3b2450ca4321549e9db01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:217-221 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:500-505 \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 \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:500\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e233eed5458a641437999fd44b69c6eab4a404a3828c43a9014e5a124f965d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:217-221 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:593-597 \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 after the matched lines, \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:222\u0060 calls \u0060bump\u0060, \u0060resolveConnection\u0060 and \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift:599\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5a036dd4a109736a7f5cb7b1427457cab31a9a5bfb0d6cfc1413176d488033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/Auth/PKCE.swift:56-60 | Packages/OsaurusCore/Services/Channels/ChannelSecurityEncoding.swift:12-16 \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":"Packages/OsaurusCore/Services/Auth/PKCE.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aa46d4301ed4aec0fe4434638e34fc07de30e09c8c1591361a65fa4694c1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201310 lines \u00D7 3): Packages/OsaurusCore/Services/Chat/Routing/AgentWrapperCatalog.swift:54-58 | Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift:3616-3625 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:2127-2136 \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 \u0060Packages/OsaurusCore/Services/Chat/Routing/AgentWrapperCatalog.swift:54\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":"Packages/OsaurusCore/Services/Chat/Routing/AgentWrapperCatalog.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ecd6a22acfe76d6df1d32f294fa0f3a382ef921f1d480777834dbde08fa05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift:1191-1196 | Packages/OsaurusCore/Tools/Handoff/ConfiguratorHandoffTool.swift:251-255 \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":"Packages/OsaurusCore/Services/Context/SubagentJobEvaluator.swift"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"12acaaad28450d98aa7524774a921e9075617a2996c768a6bc9d8273600aee92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/CSVEmitter.swift:89-95 | Packages/OsaurusCore/Services/Documents/CSVTableWorkflowService.swift:510-516 \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":"Packages/OsaurusCore/Services/Documents/CSVEmitter.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c86b361cd62a1b9c17bd994c9526d6a762c29fc300b103022c4095d0340b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift:213-217 | Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.swift:136-140 \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 \u0060Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.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":"Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d99906ffa1b06777abc05ae624519b26282024ff99d83b2044a84fe107fc2d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/ExternalModelLocator.swift:558-562 | Packages/OsaurusCore/Services/ExternalModelLocator.swift:579-583 \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 \u0060Packages/OsaurusCore/Services/ExternalModelLocator.swift:558\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":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"4192a4f9873957c50659416e467d7df8cf9a27c9d7d2fb18d3d22aff8767953a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/ExternalModelLocator.swift:1072-1076 | Packages/OsaurusCore/Services/ModelSizeCache.swift:129-135 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ExternalModelLocator.swift"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b341b9e968dd5c84bf666e9df50d7afc9f0b903a33bc42717c9cf3e9670d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:246-255 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:235-244 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31e744b209885229145be6d29918c26ec05cda041f3e1b33175317535f9aa7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Inference/DecisionService.swift:222-227 | Packages/OsaurusCore/Services/Inference/DecisionService.swift:247-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Inference/DecisionService.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8ef06c55a86d82f4febd2a4bcf40cb351af1f7db3efd57b574c06da0798357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:109-114 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:144-149 \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":"Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdce4839d4ea25196627fc11ed49ff8b3bffcd1976445edb84c9a24d6ca11563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift:130-135 | Packages/OsaurusCore/Services/Provider/RemoteProviderKeychain.swift:165-170 \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":"Packages/OsaurusCore/Services/MCP/MCPProviderKeychain.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cd4394a98b93ca5730f81f554e9ee2dc488d29e1da69f9987043e2753f5085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/MCP/MCPServerHub.swift:259-265 | Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift:376-382 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/MCP/MCPServerHub.swift\u0060 and \u0060Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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":"Packages/OsaurusCore/Services/MCP/MCPServerHub.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b8f971e595bb397056324ee784a9a029d9891cc9b480ef0d1b6fce9fa09462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift:237-241 | Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaCatalog.swift:110-114 \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":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"856b18c6cbc03ba9025ebeabf11862b5783bb00971cf991e24de3c4a1ed0e9dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift:244-248 | Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaCatalog.swift:117-121 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MediaGeneration/MediaGenerationTypes.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2dc51ce05d9e681ea7d3c9720a4e955e07094983989e6a4313e4804adabf9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/MediaGeneration/OsaurusCloudMediaClient.swift:306-314 | Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaClient.swift:265-273 \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 \u0060Packages/OsaurusCore/Services/MediaGeneration/OsaurusCloudMediaClient.swift:306\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":"Packages/OsaurusCore/Services/MediaGeneration/OsaurusCloudMediaClient.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f17a271c881d3f6ff01f65e28b37f7322034aa4dbb5ebbdc59193ae6bf85207"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:487-492 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:195-200 \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 \u0060Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:487\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":"Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2177e90378143a90575d6987038e424d4e73c18188034e558b501738550353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:581-586 | Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift:606-611 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterAPIClient.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e63250e0c2eb5c528757254cacdd146c39038a9ae518083bb5e5d069898a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Task/TaskControl.swift:67-72 | Packages/OsaurusCore/Views/Event/EventDetailView.swift:734-739 \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":"Packages/OsaurusCore/Services/Task/TaskControl.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"37315f187c3ed85bde51a9be8907dd42a28639beb4f87458c715c6b99532bc41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift:562-566 | Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift:794-798 \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 \u0060Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift:562\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":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"85dab14bb8dc09c782fdf98636537abe6474bdc690e3d7cd1e4c9394d01e8a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/Workflow/ReplyNodeExecutor.swift:66-70 | Packages/OsaurusCore/Services/Workflow/ReplyNodeExecutor.swift:92-96 \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":"Packages/OsaurusCore/Services/Workflow/ReplyNodeExecutor.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e155673e430d8fc35e7d89952a6c824415136b2714bc06887baff48806e3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:545-549 | Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1001-1008 \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 \u0060Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:545\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060collectionId\u0060 to \u0060String\u0060 in one and \u0060String? = nil\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e74c03d8b023562cf00cd7fd768b3819b9d88add7f71c331a78401f4e98e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:941-949 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:2225-2233 \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 \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:941\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd1012d7a55b2ac9bd8c0baed5031c5961918e4df47c139d38fcfbab6cf2f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Storage/MethodDatabase.swift:278-282 | Packages/OsaurusCore/Storage/ToolDatabase.swift:365-369 \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 \u0060Packages/OsaurusCore/Storage/MethodDatabase.swift:278\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":"Packages/OsaurusCore/Storage/MethodDatabase.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2bbea76aed7024320441277f29c978dc1647779e69474ea147d7d406c8cab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 22): Packages/OsaurusCore/Tools/AgentChannelTools.swift:375-376 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:410-414 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:455-456 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:509-510 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:564-565 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:628-629 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:685-686 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:743-744 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:807-808 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:855-856 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:903-904 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:957-958 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1027-1028 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1095-1096 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1170-1171 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1177-1181 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1240-1241 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1310-1311 | Packages/OsaurusCore/Tools/AgentChannelTools.swift:1387-1388 | Packages/OsaurusCore/Tools/CalculatorTool.swift:63-65 | Packages/OsaurusCore/Tools/CurrentTimeTool.swift:50-57 | Packages/OsaurusCore/Tools/SandboxSecretTools.swift:195-210 \u2014 there are 22 copies across 4 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 22 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:410\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:410\u0060 calls \u0060optionalString\u0060 and \u0060Packages/OsaurusCore/Tools/AgentChannelTools.swift:375\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tools/AgentChannelTools.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e3f8781718e3b6b10d5b065efb39c580a102df6dd50a75d974ef3e78cbf4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift:92-96 | Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift:131-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift:92\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":"Packages/OsaurusCore/Tools/Workflow/WorkflowRunsTool.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d485e7d718b750362785c8fb54595c877b44f61eac3347af7e223820acf540"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:79-85 | Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:169-173 \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 \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:79\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9b8947e80ddac5852e6409172f1061cc3938ebca2e3f06447e5aee02838f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:181-188 | Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:192-199 \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 \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:181\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, \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:191\u0060 calls \u0060frame\u0060 and \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift:180\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5d53ffe0c00bb374580bddf9fd5c00155544ec2c49c41eb2cc4e03e9a99d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:95-100 | Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:163-167 \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 \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift:95\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseSavedViewsView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"613e74ae57e3779a7cc2c279ffaf07b719d0da34abb276a5bdfae5f12916daf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:381-387 | Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:816-822 \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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a7ebe0252ebb5a1330bb78a2302797efe395a504fda2dd3261ec799f9b2f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:730-734 | Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:760-764 \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 \u0060Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift:730\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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a88e7af7e4b616fdfb2b27e544dc907dd9503cbeab00413993d6fcb0d9901cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1115-1119 | Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1139-1143 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift:1115\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":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a505e4a5cd2f0280a819260f60e2a90165cf6f8dfb20f92aa9a69f7970c2d500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3168-3172 | Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3185-3190 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift:3168\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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":3168}}}],"partialFingerprints":{"codehealthFindingId/v1":"07931c60ba33722bc7e49217061cdf1df6579f6ea8c261eb41f1b97bdd36b68c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:1019-1024 | Packages/OsaurusCore/Views/Common/CodeBlockView.swift:501-505 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:1019\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, \u0060Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:1017\u0060 calls \u0060makeFirstResponder\u0060 and \u0060Packages/OsaurusCore/Views/Common/CodeBlockView.swift:500\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":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"713754f3c07e6e401a70c5f2c14b0b7867e44bc8c1ea8d5f32dca9160e4bb950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ToolDisplayName.swift:319-323 | Packages/OsaurusCore/Views/Chat/ToolDisplayName.swift:347-351 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"Packages/OsaurusCore/Views/Chat/ToolDisplayName.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf390b2a0ad222082bdda75246c3cee54cd9ddfff833f801afa32587af377130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 5): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:113-116 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:148-152 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:271-274 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:291-294 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:366-370 \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 \u0060Packages/OsaurusCore/Views/Event/EventFormComponents.swift:113\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, \u0060Packages/OsaurusCore/Views/Event/EventFormComponents.swift:112\u0060 calls \u0060VStack\u0060 and \u0060Packages/OsaurusCore/Views/Event/EventFormComponents.swift:148\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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c24dc002cf6ee2c8c01a124bee1d7b194df30537330343220d80ea8f224b885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Views/Event/EventFormComponents.swift:214-221 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:317-324 \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 \u0060Packages/OsaurusCore/Views/Event/EventFormComponents.swift:214\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.space.s2\u0060 in one and \u0060theme.space.s6\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":"Packages/OsaurusCore/Views/Event/EventFormComponents.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11001dec282c2512eebf79e2c548287a8086cf5dc676f2e4647ad5322ef589d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:419-423 | Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:922-927 \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 \u0060Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:419\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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62bd744174cf6896ab2f81f5824a994b52895c98b65e8e7d8b7b6d5bfb6eb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:269-273 | Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:371-375 \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 \u0060Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift:269\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":"Packages/OsaurusCore/Views/Plugin/GitHubImportSheet.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a92fb16cb6d46acc302368ca472f4acbc8d5b696a804edf070ab28ca8c2e996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/PluginsView.swift:946-950 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2644-2648 \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 \u0060Packages/OsaurusCore/Views/Plugin/PluginsView.swift:946\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":"Packages/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"2601ab85cb2fec176f66bac957848a078055c6c4255571c9bb629d121ceafa8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1651-1655 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:677-681 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1651\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cfdaf9f5818090a5a5713160ad5a691c117073857b8f343ca03289746e1224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:686-691 | Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:960-964 \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 \u0060Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:686\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060theme.catalogLayoutMetric(\u0022component.library.45.elements.layout.countdownRingButton.body.horizontalGap\u0022, inheriting: NativeComponentInspectionStyle.metric(45, \u0022gap\u0022, theme.space.s14, theme))\u0060 in one and \u0060theme.catalogLayoutMetric(\u0022component.library.45.elements.layout.countdownTimerView.body.horizontalGap\u0022, inheriting: NativeComponentInspectionStyle.metric(45, \u0022gap\u0022, theme.space.s12, theme))\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:965\u0060 calls \u0060Text\u0060, \u0060catalogTypography\u0060, \u0060foregroundColor\u0060 and \u0060Packages/OsaurusCore/Views/Voice/VoiceComponents.swift:692\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":"Packages/OsaurusCore/Views/Voice/VoiceComponents.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aae0b48c64268c9e16c0d3a681303043b8fe7769cc4b1a1d17a859294beb298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:132-135 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:47-51 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:741-745 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cases\u0060 to \u0060[AgentLoopRegressionCaseSnapshot]\u0060 in one and \u0060[EvalCaseReport]\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f83dd27f5059fb391cbd39d97991a479f1e45bf7de0ffa6c2206161f871167e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift:31-58 | Packages/OsaurusCore/Models/Project/ProjectStore.swift:13-37 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift\u0060 and \u0060Packages/OsaurusCore/Models/Project/ProjectStore.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 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":"Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4699aeab2c036545dff297120cb29015fcb901a49a0709e6a7d044c95e19ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift:287-291 | Packages/OsaurusCore/Services/HuggingFaceService.swift:996-1000 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b60c21943f6484278ee1ecc5b72c90197f2230788d5f9893d9628442cede02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Shortcuts/ShortcutsTools.swift:72-78 | Packages/OsaurusCore/Services/Inference/ClaudeCodeProcessRunner.swift:208-214 \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 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":"Packages/OsaurusCore/AppleApps/Shortcuts/ShortcutsTools.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1cd77b27773db4f998781a2736cc0e45e0970000e5da86b2e39a9e96453403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift:83-90 | Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift:81-88 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift\u0060 and \u0060Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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":"Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ffb498458534870db56df25b2ef998e859aaf68664c8fecfc5482793802e3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Managers/SkillImportPolicy.swift:173-178 | Packages/OsaurusCore/Models/Agent/SkillStore.swift:318-323 \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":"Packages/OsaurusCore/Managers/SkillImportPolicy.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22b09eb0896fd56ae69f9f05d6eb5b7d4414fc102b7038016bd675222410fee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift:63-67 | Packages/OsaurusCore/Models/Agent/DefaultAgentConfiguration.swift:88-93 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edb5151638d087d85557f473dd0312c63b0edc1b10d86e2e3ec922a45c6defa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift:167-171 | Packages/OsaurusCore/Models/AgentChannel/N8nPairingCode.swift:226-230 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf2c480078715baeae119ce5a835d3762eed8de598aef48a550f8a624e86be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift:306-310 | Packages/OsaurusCore/Models/AgentChannel/AgentChannelN8nModels.swift:116-120 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelAsyncModels.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec9776992385a6afaeace11d6405cd79e4bcf2185a35f87ec9fe0ec4da77cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:718-724 | Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:74-80 | Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:222-228 | Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:178-183 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:177-183 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6acb5a32d23933c170c211056b290ac2dcafa509ad88e78e5f8932e5b3a0b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift:1118-1123 | Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:318-323 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:274-279 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelConfiguration.swift"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb138394946c5ef8147d3d6e182417b0d596a9c2da4804e8beb5db2d4e31ca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/AgentChannel/AgentChannelSetupFlow.swift:130-134 | Packages/OsaurusCore/Views/Settings/AgentChannelCustomConnectionSheet.swift:55-59 \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":"Packages/OsaurusCore/Models/AgentChannel/AgentChannelSetupFlow.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"de836ba8d4ccc0f7f4b8fbd4991e521f8312a9e1427a8eb71bbe4c892d9f5ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/ResponseWriters.swift:806-811 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16478-16483 \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":"Packages/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf56e6273faccb845cd840ee99ed2642b43eb74cf2c5f2d6d59c938dbdd2e1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/LocalAPIKeyPolicy.swift:71-77 | Packages/OsaurusCore/Models/Configuration/PeerInferenceSharing.swift:34-40 \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":"Packages/OsaurusCore/Models/Configuration/LocalAPIKeyPolicy.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef0d0850bc480efed4c76966bc2cf7b7788ba9bf691e909e94c504458de5a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift:442-446 | Packages/OsaurusCore/Models/Configuration/RemoteProviderConfiguration.swift:540-544 \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":"Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"6546e67ca4fff1087f024d88144f9cefceab78ef94c9137f52ff37a4fc8f8757"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:233-238 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:316-321 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc37147aeb6b7dff4d6c84e3746792fb112d79617a7a1adba2123a307879aa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift:94-103 | Packages/OsaurusCore/Models/Project/ProjectStore.swift:56-65 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift\u0060 and \u0060Packages/OsaurusCore/Models/Project/ProjectStore.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 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":"Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4683ef06f0edd7863010fd0ef67bc5a49a232999fbd0c98d4897e85268d67c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift:636-647 | Packages/OsaurusCore/Tools/ToolRegistry.swift:103-114 \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":"Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83435927b057cb9ef3b7172f1af40036bd6a4131d57926d5e511295b575b40e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Models/Schedule/Schedule.swift:435-442 | Packages/OsaurusCore/Views/Event/EventFormComponents.swift:412-419 \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":"Packages/OsaurusCore/Models/Schedule/Schedule.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e40ef8a6a808dd3871fcfe0cb404680d2101ff9af1a400af21c11f1ccdc9638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift:2120-2125 | Packages/OsaurusCore/Models/Workflow/WorkflowRun.swift:650-655 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":2120}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab4de34c849625d89323dba8885536ed3a168f0a5509fb0c9cafd14bea69c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1468-1476 | Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:3184-3192 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:3182\u0060 calls \u0060NoRedirectDelegate\u0060 and \u0060Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1467\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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e468e1852185b900511a7b69e451544fa4b68d904a006442b94204926ac18ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/ChatTitleService.swift:179-183 | Packages/OsaurusCore/Services/Chat/FollowUpSuggestionService.swift:246-250 \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":"Packages/OsaurusCore/Services/Chat/ChatTitleService.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc41379cf6340e0db43f5d2d18f9f55dd62dac5872e53a81eb75b103a2d188db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift:1148-1159 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2800-2811 \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":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e119f1e7b0a7fc8dd04ee7557a62d7dff9f0df3bbe41fe5d7d35ae5db4f077b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:230-236 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:519-525 | Packages/OsaurusCore/Services/Telegram/TelegramAPIClient.swift:390-396 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e1684c57aaa7c2deeb1ed189edb954bc34b30b9b365450105b41280d7ce035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:16-26 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:16-26 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b51e7c401a96baa9af31ab3816218c0cce14f4ff672453081377ced9345cb83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:1034-1044 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1697-1707 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1376-1386 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"428ee87cc924293137a6c3279fc95c1f922920661c130537c6b94694887f5962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Documents/CSVEmitter.swift:105-114 | Packages/OsaurusCore/Services/Documents/CSVTableWorkflowService.swift:518-527 \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":"Packages/OsaurusCore/Services/Documents/CSVEmitter.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1858f792b3102ee328745310c2184e89154aeedce9968bbde06f70c5fece3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/Event/AutomationHistoryFeed.swift:69-76 | Packages/OsaurusCore/Views/Task/TaskHistoryFilter.swift:18-25 \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":"Packages/OsaurusCore/Services/Event/AutomationHistoryFeed.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4dabd51c90bd7259d4f6ce978aa6aec91d1c6c9db7debfcc5f08db29250f10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift:70-75 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift:73-78 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppHelperInstaller.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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":"Packages/OsaurusCore/Services/IMessage/IMessageHelperInstaller.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4411f19a72f721222c6b4e5b29f1c0ade4d71fff2aa0453f20879d723ca14eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:263-267 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:252-256 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca8fd01f5396a86c9a344f5c3238f4090d9fe49c1dcb1f3508571be7868c252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:295-299 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:376-380 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6556c2910c437e9c7906db1bfe445d20c66f7419742e3e85964845bfc5e01a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:566-573 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:657-664 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d36d4a4af6c0d81787616102579f30b943cc312a629f2b4fd4a04411cd3a7b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:114-124 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:68-78 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3799395c90b9c7de598059b80ffea13756c2d7b7f36707a8283f78e8f26acd40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:132-136 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:83-87 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd04d1c1082b71d3c96ce8ac66f485a942d1c1dd1ebd6b671ed184788a621a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:217-224 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:139-146 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 92 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":"Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a7933c5ceb7ab5c286e33d6637961ae9d8df3f78994c7c019fc1918604a415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift:141-149 | Packages/OsaurusCore/Services/Skill/ClaudePluginManifestStore.swift:120-128 \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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d8e2688ed81550ef46db9c33e1bf0dfd1c0bf46c8d1449af0818654e945989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:155-160 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1516-1521 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060pollInterval\u0060 to \u0060TimeInterval = 1\u0060 in one and \u0060TimeInterval = 0\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":"Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7869459ec77b67e5fa9978692072bd1ff8486af0a82e55b78c834b967bd1ce72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift:520-530 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1704-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bde183e4083d43106aa1bea36d88f952f84bd65530e1ab940256fef6acc1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift:57-62 | Packages/OsaurusCore/Services/Sync/SyncManageFeed.swift:52-57 | Packages/OsaurusCore/Services/Sync/SyncServedChats.swift:169-174 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Services/Sync/SyncServedChats.swift:166\u0060 calls \u0060syncLocalState\u0060, \u0060appendingPathComponent\u0060 and \u0060Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift:54\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncHostRunner.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2348916b48a46df0fa1e9d8b3c5205c0a625f1e5c960dcd2733ea5151c744081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:518-528 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:88-94 | Packages/OsaurusCore/Storage/MethodDatabase.swift:90-100 | Packages/OsaurusCore/Storage/ToolDatabase.swift:145-155 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da31bd2c037f5c5b60293bf151667f07c12a455f2fc01bf6c902156427ebf99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:569-577 | Packages/OsaurusCore/Storage/AgentDatabase.swift:492-500 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:278-286 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:166-174 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:256-264 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:270-278 \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 6 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96bb4c4a4ed3a0d77103b4a99a6c0e2e2fafde405679e6cc08b3942c19e450f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:1188-1199 | Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:563-569 \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":"Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fc5eec760e6334298c3189f41855775476735d5d3150304232d699679b4b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:94-100 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:93-99 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:120-130 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:172-182 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:229-239 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:87-93 \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 6 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb161ffd70928f8763cdcc5acfee558a7513356f1c89f92fbb1101a33fc2844"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift:112-119 | Packages/OsaurusCore/Storage/EventRunDatabase.swift:101-108 | Packages/OsaurusCore/Storage/TaskDatabase.swift:172-179 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:95-102 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/ConfigHistoryDatabase.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a264ba13d35ef92f9d1f03b611b3b8a1f0b0c5989d4dcc05c016aa1f029773"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Storage/FileHistoryDatabase.swift:96-104 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:132-140 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:214-222 \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":"Packages/OsaurusCore/Storage/FileHistoryDatabase.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3698b43ff2d889e07570453b1ba78f81360f9ce4d9ef0ae75add8ff5a875a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:260-268 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:281-289 | Packages/OsaurusCore/Storage/MethodDatabase.swift:131-139 | Packages/OsaurusCore/Storage/ToolDatabase.swift:187-195 \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 4 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, \u0060Packages/OsaurusCore/Storage/ToolDatabase.swift:184\u0060 calls \u0060migrateToV2\u0060 and \u0060Packages/OsaurusCore/Storage/MethodDatabase.swift:128\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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"598c298cec5f7cb2b64029a1054cd3a73073266fc19dcb91ce40f293d2d2ecd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1461-1467 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:3159-3165 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9743d2a5ae3504732f6a8a38544019b0b446f6f1e560283bc46caade7a58866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Packages/OsaurusCore/Storage/MemoryDatabase.swift:184-193 | Packages/OsaurusCore/Storage/MethodDatabase.swift:102-111 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:241-250 | Packages/OsaurusCore/Storage/ToolDatabase.swift:157-166 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab5366b615530a3de258a546b8c23945cae51031835aa57bf38084749f58bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift:120-128 | Packages/OsaurusCore/Subagent/Kinds/ComputerUseKind.swift:191-199 | Packages/OsaurusCore/Tools/Handoff/HiddenAgentHandoffRunner.swift:244-252 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57b30e056bd82c8d3061dc68a84986a3ec3725c2336c07b6885606f55143eaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Tools/NativeImageTools.swift:328-332 | Packages/OsaurusCore/Tools/VideoTool.swift:133-137 \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":"Packages/OsaurusCore/Tools/NativeImageTools.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"38558e8a739cfa38f3bac6cacc7f08e3c04b75c5221946f54b21278519d0d067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Packages/OsaurusCore/Views/Agent/AgentsView.swift:701-710 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:817-826 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2657-2666 | Packages/OsaurusCore/Views/Settings/OrchestratorSettingsView.swift:193-202 | Packages/OsaurusCore/Views/Settings/ServerSettingsTabContent.swift:550-559 | Packages/OsaurusCore/Views/Workspaces/WorkspacesView.swift:227-236 \u2014 there are 6 copies across 5 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 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ec2f5b3bc1da18fb40723108410a882e1b4dd508364624efffc36e454f2c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Templates/AgentTemplatesIntroCard.swift:235-240 | Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:257-262 \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":"Packages/OsaurusCore/Views/Agent/Templates/AgentTemplatesIntroCard.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2a5cbfe5d74d30b99f11bb36965f106a18c80512b7f46e8ee4200ab55e10e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:3961-3965 | Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift:1293-1297 \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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":3961}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e448bca292d822e69298193c1e8560af1ecdb63ae29ceb66d562150e832a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/EditableTextView.swift:288-293 | Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:652-657 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Chat/EditableTextView.swift:301\u0060 calls \u0060hasMarkedText\u0060 and \u0060Packages/OsaurusCore/Views/Skill/SkillEditorSheet.swift:661\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":"Packages/OsaurusCore/Views/Chat/EditableTextView.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b6795172e022fe5a29ca45b1c58953302cd7a8a7b1c0eea2fb8a44f9c83078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:775-781 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:448-459 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2103c880717e369707cab7df8dae6fe89532648e581736907e1a1c2b2f05b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift:976-987 | Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift:662-673 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift:677\u0060 calls \u0060NSColor\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift:990\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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd966ebe99ffce7c860117aa22efadbd78561eea471668c4e886bd8cc94ac94b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift:131-136 | Packages/OsaurusCore/Views/Insights/InsightsView.swift:996-1001 \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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7c6ce9c355fe1ebb2089e451410e8362f046c9ebfcd03c176ff445c7b19975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Knowledge/KnowledgeWriteHistoryView.swift:329-335 | Packages/OsaurusCore/Views/Knowledge/KnowledgeWritePreviewView.swift:182-188 \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":"Packages/OsaurusCore/Views/Knowledge/KnowledgeWriteHistoryView.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67ff20ce6e8306ccb270e9a87845c7bcd92292e21c955d6edb63ba4b2b0dac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Knowledge/KnowledgeWriteHistoryView.swift:337-343 | Packages/OsaurusCore/Views/Knowledge/KnowledgeWritePreviewView.swift:190-197 \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":"Packages/OsaurusCore/Views/Knowledge/KnowledgeWriteHistoryView.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab39e186ecf241cfcba29b3b7161479aac155e5fc0af2e6cc82b3d8446f653a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift:470-474 | Packages/OsaurusCore/Views/Memory/MemoryView.swift:1128-1132 \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":"Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15bfb73a75635fe5a97540af8feb7e756532b5e3cc2a40119d3a3dab40c0b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift:172-180 | Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift:286-294 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift\u0060 and \u0060Packages/OsaurusCore/Views/Plugin/GitHubTokenViews.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 72 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":"Packages/OsaurusCore/Views/Model/HuggingFaceTokenViews.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"08082d650116f18934c4cf089e769bfd17e8b12b79f689f236e843f52da8483a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceCard.swift:190-195 | Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:45-50 \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":"Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceCard.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0a6d6d252ffcf7469c75549beff571d8fbe84a4dc717de5f837f2d9b012c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceCard.swift:197-209 | Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceDetailView.swift:447-459 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also 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":"Packages/OsaurusCore/Views/Plugin/ClaudeMarketplaceCard.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11299f0dd679f0e6d3db8921586fa54fe0a75a04f801ed30c8267e89188dc22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift:109-115 | Packages/OsaurusCore/Views/Plugin/ToolSecretsSheet.swift:148-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Plugin/ClaudePluginUserConfigSheet.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a67c270c39e7a54c9d6a232138ede29ebe6163889078285997fc99a1900200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift:235-243 | Packages/OsaurusCore/Views/Settings/ChatSettingsView.swift:360-368 | Packages/OsaurusCore/Views/Settings/ConfigurationView.swift:359-367 | Packages/OsaurusCore/Views/Settings/OrchestratorSettingsView.swift:257-265 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/ArchitectSettingsView.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3d1aa4e961a0cd1e353c9ccf54ee8bb0ce8dde9dc7e9795e73fafb3b48056f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift:425-430 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:731-736 \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":"Packages/OsaurusCore/Views/Settings/BrowserSettingsView.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bac41e62553329c36e117f47cef0688fea15275ac37db64b4dfdd0fc1f27fe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:185-193 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:187-195 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:212-220 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:203-211 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:195-203 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:189\u0060 calls \u0060stopPairing\u0060 and \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:175\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a79038936cb481aeeaf977942202aeddf563809145d3991a0e696ec438e1ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:724-735 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:774-785 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 24 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b065bfa2e8b651b0d3db11a6676631d826d14ba35048e58185ee88db53cc8a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:380-386 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:350-356 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14fc984b7db56c9b3843e5b3437cac9466d372f3cacc49279113b646ae5d631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:388-394 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:358-364 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d25494fb3513bbe39f5ef29df8dec43bff6d83d9bc2623f050c6c15b32b3445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ProvidersView.swift:449-453 | Packages/OsaurusCore/Views/Settings/RemoteProvidersView.swift:363-367 \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":"Packages/OsaurusCore/Views/Settings/ProvidersView.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"6829065ccea96060bd4c6eef3e1e61119eb88b9d8aebf9575dda30d0ccb163fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift:794-799 | Packages/OsaurusCore/Views/Workflow/Library/WorkflowStarterPreviewSheet.swift:187-192 \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":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfa72c9780cf85a507832e50768ff6c8b56f0225ce317f9841c62bd83a5b4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift:1159-1163 | Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowInspector.swift:353-357 \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":"Packages/OsaurusCore/Views/Workflow/Architect/ArchitectSidebarPanel.swift"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5707406eb7da755f2dd0f124fce9e78b195aea72caab55469c2b55764b8e032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift:549-554 | Packages/OsaurusCore/Views/Workflow/Architect/WorkflowNodeEditor.swift:308-313 \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":"Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98a79614d362fb10020d3a87361ca8fa9fa83eb8b055221fe08d33f22c63e2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:247-254 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:155-162 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift:178-185 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:159-166 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:380-387 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift:752-759 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:320-327 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:46-53 \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 8 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f1536364cc8aac03061b44630154e11c843b1797d391eac6bcdea8bfbaefeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:390-394 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:649-653 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:255-259 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd35292e9ee45d7fe724bf8c47ec70915063625063f36935615da00a57c405ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:439-443 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCompat.swift:814-818 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:578-582 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.swift:1076-1080 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"3febc27833be9b6ece625a6262afb8eedb68f339d71281652b18020bcb52f500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift:2779-2783 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalTimeoutReport.swift:102-106 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":2779}}}],"partialFingerprints":{"codehealthFindingId/v1":"626590d3e2fda5773cab60874265cd7fa5d2acbd66de7f4d50466a264557b67d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:187-195 | Packages/OsaurusCore/AppleApps/Reminders/RemindersService.swift:109-117 \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":"Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fc876ad2222075a52ce7526d45c0a8afb0a09f6110e6b0838b709156e6d3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/AppleApps/Notes/NotesService.swift:393-397 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelMessageFormatter.swift:418-423 \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":"Packages/OsaurusCore/AppleApps/Notes/NotesService.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"900f8f641e2e0fe53a0b348061c71df1cfac103b2debb6bf6621b0c662b7a710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:276-280 | Packages/OsaurusCore/Services/Keychain/Keychain.swift:453-457 \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":"Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7fbbae64be8c5187ddb5126717a8d9fb3e9c17bdaee42f695b21a1c0c89a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift:92-104 | Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift:92-104 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift\u0060 and \u0060Packages/OsaurusCore/Models/Tool/ToolConfigurationStore.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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":"Packages/OsaurusCore/ComputerUse/Policy/ComputerUsePolicyStore.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a646da115950475e44cfaf573ca0bef8e4b9160702bf9c0a2ab9558531d24147"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/ComputerUse/Policy/Gate.swift:52-57 | Packages/OsaurusCore/Services/Search/SearchTypes.swift:48-53 \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":"Packages/OsaurusCore/ComputerUse/Policy/Gate.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0b6049ed7c9cb5694b1a7dcc2249dc868655532eac40d42b53d10047b1f522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Managers/AgentManager.swift:85-89 | Packages/OsaurusCore/Managers/RemoteProviderManager.swift:79-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also 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":"Packages/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb1a2eec69f37c752e7aaa1eaf5c3f1b2b1f8654a2c816a984b3799c9f2dc67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift:122-126 | Packages/OsaurusCore/Models/Agent/ConfiguratorConfigurationStore.swift:78-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift:118\u0060 calls \u0060post\u0060 and \u0060Packages/OsaurusCore/Models/Agent/ConfiguratorConfigurationStore.swift:74\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":"Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac33abc3dc7fab4c9996efcd5e0cf8b2abc86ee81fe85dd61cdd366f0f98451e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift:135-139 | Packages/OsaurusCore/Models/Agent/DefaultAgentConfigurationStore.swift:75-79 \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":"Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5629297e742490b3f5024a04309deb2aaf65708db88322afd12d7e112bab337b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift:145-150 | Packages/OsaurusCore/Models/Agent/ConfiguratorConfigurationStore.swift:110-115 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Agent/ArchitectConfigurationStore.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"266f23cf80492ca5a3274ba1eeb7c8ba9a99cfecf8e824d5137b1c75565c172f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Models/AgentDelegation/SubagentConfigurationStore.swift:426-432 | Packages/OsaurusCore/PrivacyFilter/Store/PrivacyFilterStore.swift:121-127 \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":"Packages/OsaurusCore/Models/AgentDelegation/SubagentConfigurationStore.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd5ddaa85b3958eb371a18ae0b031d1135613987900d468513945eb5c898cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift:426-430 | Packages/OsaurusCore/Models/Configuration/RemoteProviderConfiguration.swift:526-530 \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":"Packages/OsaurusCore/Models/Configuration/MCPProviderConfiguration.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"119d3bca7451e278e1378c71248d63ab4e698a7d1745e77d25f8427d92144577"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:113-118 | Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:229-234 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:195-200 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060connectionId\u0060 to \u0060String = AgentChannelConnection.nativeDiscordConnectionId\u0060 in one and \u0060String = AgentChannelConnection.nativeSlackConnectionId\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":"Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a311ee666ec1d04d7759459472c6e9b461e6ff1d85641a72eea0ecec88ab91b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift:157-162 | Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift:283-288 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:239-244 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060connectionId\u0060 to \u0060String = AgentChannelConnection.nativeDiscordConnectionId\u0060 in one and \u0060String = AgentChannelConnection.nativeSlackConnectionId\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":"Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4134fec876fc13dd9d38841d4519d88029b951204899b6d221c34c972a33b317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/Event/EventPayload.swift:304-308 | Packages/OsaurusCore/Storage/ActivityLogStore.swift:658-662 \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":"Packages/OsaurusCore/Models/Event/EventPayload.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d536443321ae8056eda8e4886897c2b9f25c92b6af38e98c48c2a7720eaae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/Voice/SpeechConfiguration.swift:229-234 | Packages/OsaurusCore/Models/Voice/TTSConfiguration.swift:149-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from 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, \u0060Packages/OsaurusCore/Models/Voice/TTSConfiguration.swift:147\u0060 calls \u0060DispatchQueue\u0060 and \u0060Packages/OsaurusCore/Models/Voice/SpeechConfiguration.swift:227\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":"Packages/OsaurusCore/Models/Voice/SpeechConfiguration.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47076858d441f5a09eabb5ef5fd03f6b46b43bffceb92ddf28a2ce8316a26aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Models/Workflow/BindingRenderer.swift:334-339 | Packages/OsaurusCore/Views/Workflow/WorkflowRunView.swift:637-642 \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":"Packages/OsaurusCore/Models/Workflow/BindingRenderer.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56b50caa6effbe92882d093f680adfc5fe8924dbd2edd3de874a39d84601e69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift:326-331 | Packages/OsaurusCore/Services/Workflow/WorkflowDraftStore.swift:543-548 \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":"Packages/OsaurusCore/Services/AgentCreation/AgentDraftStore.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a2f8ae15286d314009a1ca0e31c82d748a270c4945e1ef131958e8b01784f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Attention/ConversationMailbox.swift:94-99 | Packages/OsaurusCore/Services/Attention/OwnerApprovalService.swift:160-165 \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":"Packages/OsaurusCore/Services/Attention/ConversationMailbox.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"47de0a9a39b7c13275ed0d125a93428d490d6df7bb95ffd5adecb22efed67430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Attention/Participant.swift:138-143 | Packages/OsaurusCore/Services/Slack/SlackAPIClient.swift:283-288 \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":"Packages/OsaurusCore/Services/Attention/Participant.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba07e7d40d430e9aa8b76f9d6bc3bfdffd7a9de6acb1f50e87ba3cdb5c3c924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:222-228 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:439-445 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:449\u0060 calls \u0060clearCachedBotIdentity\u0060 and \u0060Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:232\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b831f3aa6bf1522fc3538e0fb610c4bfaf63537c54193abf44056a010b38e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:230-238 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:416-424 \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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaa8ccf3ffd642ea426f5689ff8fdde33a43794e1b6e6f23c7f1ff3cb8f385c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:269-274 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:534-539 \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 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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd36f33809ceccc05886a3e3f0d51c62dd8786dafad46a55bb5476591349b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift:967-976 | Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift:1329-1338 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060DiscordConnectionConfiguration\u0060 in one and \u0060SlackConnectionConfiguration\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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"9476db70226ad4121896af5efd2ccb187edd4d2e8256bc5cca80845a79772d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1297-1306 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1299-1308 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1463-1472 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060IMessageConnectionConfiguration\u0060 in one and \u0060TelegramConnectionConfiguration\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d577381f46be4f9ca986a123ccbc43dc9ea89d6d136bed5a6739be97afb24eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1308-1320 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1310-1322 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1474-1486 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060IMessageConnectionConfiguration\u0060 in one and \u0060TelegramConnectionConfiguration\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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e49f06ebbad048f5e7fe73c5f4b4b4c6a2efa28088d9d891e981aadee0b80ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1322-1328 | Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift:1283-1289 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppConnectionService.swift:1488-1494 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da6dc06ad7512cee000479e5dd22c537df2014a7a6537e88a6efac23fcb24f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift:1394-1398 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:673-677 \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":"Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"847b458539293cbd7064721bc7213f6965115798240abf0849aaa76d1752d531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift:543-547 | Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift:636-640 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift\u0060 and \u0060Packages/OsaurusCore/Services/WhatsApp/WhatsAppRPCClient.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Packages/OsaurusCore/Services/IMessage/IMessageRPCClient.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8949b06eeb98200853818057bc0910545477400664eca94d9cc24aacbee308a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/MCP/MCPServerHub.swift:272-283 | Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift:424-435 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/MCP/MCPServerHub.swift\u0060 and \u0060Packages/OsaurusCore/Services/Provider/ProviderConnectivityCenter.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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":"Packages/OsaurusCore/Services/MCP/MCPServerHub.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd29ce34b96449ec2025ca5d40487f7f91f8a572f5c2769269e8ad28f5edd86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:32-37 | Packages/OsaurusCore/Services/Skill/SkillSearchService.swift:46-51 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:128-133 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift\u0060 and \u0060Packages/OsaurusCore/Services/Skill/SkillSearchService.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f9696ae1aa06feb4899b976d5d1fbe65b2cdbd6376fce9252df8cc3ccc07e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/Method/MethodSearchService.swift:98-104 | Packages/OsaurusCore/Services/Tool/ToolSearchService.swift:237-243 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Services/Method/MethodSearchService.swift\u0060 and \u0060Packages/OsaurusCore/Services/Tool/ToolSearchService.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"804fa545b98a504097eaa83a0e2246f6eada92fb56a4f441a2337a1e12e494ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime.swift:8375-8380 | Packages/OsaurusCore/Subagent/SpawnResultCompaction.swift:182-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":8375}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3944f2e1f9cad006a2642d59c02f6257402402866d8de1b85e75134a3cd1c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift:387-391 | Packages/OsaurusCore/Tools/NativeImageTools.swift:354-358 \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":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca970e7b7d72047be68bd55b82b3ccb76feb341e13c7726b90fac0b6863ecb6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift:3532-3537 | Packages/OsaurusCore/Tools/KnowledgeWriteTools.swift:338-343 \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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":3532}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb85ae8e24f6abd41f32d3db73fbe5619096c2bce4d1fffd224d9362f53d0c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift:502-509 | Packages/OsaurusCore/Services/Provider/OpenRouterOAuthService.swift:147-154 | Packages/OsaurusCore/Services/Provider/XAIOAuthService.swift:210-217 \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":"Packages/OsaurusCore/Services/Provider/OpenAICodexOAuthService.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30673116175fae6e9ab1fefac9b473ba8c33cfdf02eee0cec76f190e4822602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Template/SetupStateStore.swift:42-47 | Packages/OsaurusCore/Services/Template/TemplateStore.swift:103-108 \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":"Packages/OsaurusCore/Services/Template/SetupStateStore.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9385be59cc62354ecef44d402c00167fb7de6207ef2e5f92ff1efbe29b17fb9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:543-550 | Packages/OsaurusCore/Storage/ChatHistoryDatabase.swift:152-159 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:195-202 | Packages/OsaurusCore/Storage/MethodDatabase.swift:115-122 | Packages/OsaurusCore/Storage/ToolDatabase.swift:170-177 \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 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e78054c25a11fe0852f82d371ec5f8533d441cbb3586121d891a98583f8f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:2261-2267 | Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:460-466 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:593-599 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift:2258\u0060 calls \u0060unsafeBitCast\u0060 and \u0060Packages/OsaurusCore/Storage/KnowledgeWriteLogDatabase.swift:458\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":"Packages/OsaurusCore/Storage/AgentChannelMessageStore.swift"},"region":{"startLine":2261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa58bc8aface6a801cfc501935bbb7946dd90d1cc346161806f156071ef43d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Storage/EventRunDatabase.swift:279-284 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:214-219 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Storage/EventRunDatabase.swift\u0060 and \u0060Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/EventRunDatabase.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b070ff31f1bca74f62c4beb798da1e10e44277a294e6835fdaa482a7b3d07d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Storage/EventRunDatabase.swift:295-299 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:236-240 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Storage/EventRunDatabase.swift\u0060 and \u0060Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/EventRunDatabase.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae13f61c7ecf33d50c2eb0281c0fd72f2c75748278c35b7a0e06533add50c62d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Storage/EventRunDatabase.swift:406-411 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:207-212 | Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift:250-255 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Storage/EventRunDatabase.swift\u0060 and \u0060Packages/OsaurusCore/Storage/WorkflowRunDatabase.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/EventRunDatabase.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b91b0e390bab917f186fb0c6491e88815e8fbade76a0f86c60333945237d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Packages/OsaurusCore/Storage/KnowledgeDatabase.swift:1209-1221 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:524-534 | Packages/OsaurusCore/Storage/ToolDatabase.swift:435-447 \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":"Packages/OsaurusCore/Storage/KnowledgeDatabase.swift"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e022a7fc27d0e76a26e7600e951058237809dbcf6a9e99bb9147ca519af064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Packages/OsaurusCore/Storage/MethodDatabase.swift:257-263 | Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:372-378 | Packages/OsaurusCore/Storage/ToolDatabase.swift:340-346 \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":"Packages/OsaurusCore/Storage/MethodDatabase.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d56c37ec6c9f231043665a2035322c647446afc72ea0028a841698d2f7d1c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Storage/MethodDatabase.swift:373-377 | Packages/OsaurusCore/Storage/ToolDatabase.swift:381-385 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Storage/MethodDatabase.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df145dd6b2c307844f14a6fb681442effaa5eb9ee654547e960dd5f4d99f82b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Storage/RouterBillingDatabase.swift:224-231 | Packages/OsaurusCore/Storage/SchedulerDatabase.swift:254-261 \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":"Packages/OsaurusCore/Storage/RouterBillingDatabase.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5a1c53724b93dc02b8214096c7ad29dc1e98680fb9806158ae55e28b2d2baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Storage/StorageFile.swift:79-84 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift:384-389 \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":"Packages/OsaurusCore/Storage/StorageFile.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33ae0a92c5c2f16a2d20e6ebb72fc595cbcfd0f877bc7b0c672d4888eb546e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift:353-362 | Packages/OsaurusCore/Views/Chat/ChatView.swift:7153-7162 \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":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa00a77b00bef50502b294a62a2699a85830cddca7cfa97d15e6b5cd7d193fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/AgentsView.swift:5477-5483 | Packages/OsaurusCore/Views/Plugin/PluginsView.swift:2042-2048 \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":5477}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c48c87847b3daf13c08087cedab304825bf879b07faa3383a0fb4c4cb8c244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/Templates/AgentTemplatesIntroCard.swift:223-231 | Packages/OsaurusCore/Views/Workspaces/WorkspacesIntroExplainer.swift:244-252 \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":"Packages/OsaurusCore/Views/Agent/Templates/AgentTemplatesIntroCard.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d5cfa05df2f3e08b9ed6748a532999c79b69d9bf629839e13b9c601dce9a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift:35-45 | Packages/OsaurusCore/Views/Chat/SecretPromptOverlay.swift:64-74 \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":"Packages/OsaurusCore/Views/Chat/ClarifyPromptOverlay.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e06d1b26c3b5f01a7dc6162eefb689b8f99cc19a7d9f5f64cecabb693a94eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Views/DesignSystem/SettingsNavigation.swift:44-50 | Packages/OsaurusCore/Views/DesignSystem/SettingsRow.swift:644-650 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsNavigation.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"18269b95a0d28f42f22011ce4a6560f1a42dca4ead8561de281cdc13578957b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift:233-237 | Packages/OsaurusCore/Views/Settings/ComputerUseSettingsView.swift:608-612 \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":"Packages/OsaurusCore/Views/Event/ChannelRoutingSection.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d04a45eeadba7e538438b4e1c7c9462a1578ad53807c9aa3ae6193f6df7f9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/ComputerUseDiagnosticsPanel.swift:392-397 | Packages/OsaurusCore/Views/Workflow/Library/RenameInstalledWorkflowSheet.swift:114-119 \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":"Packages/OsaurusCore/Views/Settings/ComputerUseDiagnosticsPanel.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b06c70d048474b5583f9ed0d13818c1ff2762020f78acec43e7864b6dd3b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:22-28 | Packages/OsaurusCore/Views/Settings/EmailSettingsView.swift:27-33 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:26-32 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:22-28 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060connectionId\u0060 to \u0060String = DiscordConnectionService.nativeConnectionId\u0060 in one and \u0060String = AgentChannelConnection.nativeEmailConnectionId\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":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2f4e1903a3eb9b24390149d7622e187e07bb1534157c086aa88e9cc40f312f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:292-297 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:322-327 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:310-315 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"337eaa52ca14a83fe8d30d0a164d6e197e95c38df12e30673e22f12cdf021dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift:997-1002 | Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1352-1357 | Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift:1318-1323 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:1175-1180 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1456-1461 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6d9575eeb2db9791a716a946a1d6d0af6a47d509133b97c476ca00c4366d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:105-109 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:202-206 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift:323-327 | Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCaptureScreenCLI.swift:404-408 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"938a3a1c052e2e8d8d29c7dee0bf5cd11d4af6d883cf2b84b30001d7a47a7b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:730-734 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:630-634 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift:988-992 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.swift:889-893 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf1c73cf1c761d1cc668e048ab3b8d4e61ebd2a95dc71f94f2687c2197cc112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/MCPBundleManifest.swift:51-56 | Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/MCPBundleManifest.swift:84-89 \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/MCPBundleManifest.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bbad0a9da718b2a8da841cce2d4158cccd2a8ba680b6d3c1427ef3b2dcc252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2197-2201 | Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift:2374-2378 \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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":2197}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc96ea220072a93a03e0160922aff6b685c8045c03e728cb47b90069ec62ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift:40-44 | Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift:50-54 | Packages/OsaurusCore/Storage/PluginDatabase.swift:430-434 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift:40\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":"Packages/OsaurusCore/Browser/Runtime/BrowserSupport.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dbdbd8e765388a3a492fa2f9b3974628e5c2907f12ed9680dc0076412e6566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Packages/OsaurusCore/Configuration/Declarative/ConfigChannelDetails.swift:111-115 | Packages/OsaurusCore/Configuration/Declarative/ConfigChannelDetails.swift:119-123 | Packages/OsaurusCore/Configuration/Declarative/ConfigChannelDetails.swift:127-131 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigChannelDetails.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3411d937260ed351e37eebdf736c9789b2a9334f8b8e9ad318f22acee34a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2175-2179 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2181-2185 | Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2208-2212 \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 \u0060Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift:2175\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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":2175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d01343e8274c666f2a2fcf4adc1642f4b4b41e5a5c760b58a287b44ea494552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift:195-200 | Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift:220-225 \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":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfc3d9b4fdbac0c720b9694947d4f7255db6388292bcab5afb2ce59031bd864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:82-86 | Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:708-712 \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 \u0060Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:82\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":"Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa0c2d1ca8cdb6ae8fc921544455c67aadae4c20ab2a07948deae1ec2226960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Folder/FolderContextService.swift:286-290 | Packages/OsaurusCore/Folder/FolderTools.swift:976-980 \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 \u0060Packages/OsaurusCore/Folder/FolderContextService.swift:286\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":"Packages/OsaurusCore/Folder/FolderContextService.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4337e97411b505bd010dd99ff81b9a00e1c90580940ed0cee3fe5b5a0bc48abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Folder/FolderTools.swift:4846-4850 | Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift:1907-1911 \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 \u0060Packages/OsaurusCore/Folder/FolderTools.swift:4846\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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4846}}}],"partialFingerprints":{"codehealthFindingId/v1":"9355b0cd1fd35573be79eb8eabc32558783d35f4683e157fa2b81e5a31026d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:237-241 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:815-819 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:869-873 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:983-987 \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 \u0060Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:237\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, \u0060Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:820\u0060 calls \u0060decodeIfPresent\u0060 and \u0060Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:242\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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac273bd82cd02fa69be41a857591549afd96a9d95a9120b082f209a6691c0bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:246-250 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:825-829 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:880-884 | Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:994-998 \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 \u0060Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:246\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, \u0060Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:831\u0060 calls \u0060encode\u0060 and \u0060Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift:252\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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b306b0fa2549c9d62db29214029a9724ccf3a087f59536c84791cade0fd8d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/OsaurusCore/Models/Chat/SharedArtifact.swift:925-932 | Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.swift:328-335 \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":"Packages/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb47ac0559f463aa0c0593ce029583de91bf714d2042fe4145d94d6c82d0c04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:119-127 | Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:63-71 | Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift:102-110 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 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 \u0060Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:119\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, \u0060Packages/OsaurusCore/Models/Telegram/TelegramConnectionConfiguration.swift:72\u0060 calls \u0060decodeIfPresent\u0060 and \u0060Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift:128\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":"Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6979c34f216626fffdbe34a807c0c047fb70c08061d371b5e37b9ae8eff4a8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:122-126 | Packages/OsaurusCore/Models/Workflow/FolderRequirement.swift:52-56 \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 \u0060Packages/OsaurusCore/Models/Template/TemplateRequirements.swift:122\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":"Packages/OsaurusCore/Models/Template/TemplateRequirements.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"74331b50fde234756a1cd4fa9ccb53bc71725fdce14e241c30d1b2747bad7409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:13869-13875 | Packages/OsaurusCore/Networking/HTTPHandler.swift:14612-14618 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:13869\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13869}}}],"partialFingerprints":{"codehealthFindingId/v1":"5819582ff3b75dab3a323e279ceb896df523df0a81a8229c1de7640b0e16291c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Networking/HTTPHandler.swift:16008-16012 | Packages/OsaurusCore/Networking/HTTPHandler.swift:16298-16302 \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 \u0060Packages/OsaurusCore/Networking/HTTPHandler.swift:16008\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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16008}}}],"partialFingerprints":{"codehealthFindingId/v1":"9677a10272e9cbed30b8872a2a4b9c116b241db1209efe29702e80ee2ea430d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:276-281 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:313-318 \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 \u0060Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:276\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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"899a843584c0b4e2832a3e9f8eeee3928bc842ea3069373f8c042abedd454aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:351-355 | Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift:559-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. 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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyChecksums.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"895c98ff0a8f5b2c7a331f887c792722b13dca6fc29cd410e02e9095eb54dadf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:112-116 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:131-135 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:149-153 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:162-166 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:180-184 | Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift:198-202 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"011065267bdc458a63434b1b3263e705b1b6cee5773a03544d310e901e6c35d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift:1883-1887 | Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift:261-265 \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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e495e9dc68bf7f82291d7a1ccae7534b61a1d99d3f301e9c210344fef956ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift:124-128 | Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:1592-1596 \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":"Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae753b8f70d75ea3baea6276699e068ad24700287ded75499df825c3826943ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:2183-2188 | Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift:2199-2204 \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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":2183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac577d2a26172eadab017cdd36255d0e06aa99ff41561aecde48f3c7f60eb285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift:1309-1313 | Packages/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift:1317-1321 \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":"Packages/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b86de3c688207d4e5b6b3babd3c46d8a59c5e42439ad3d744f1b4ef55cbccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Context/AppleScriptEvaluator.swift:415-420 | Packages/OsaurusCore/Subagent/Kinds/AppleScriptKind.swift:491-496 \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":"Packages/OsaurusCore/Services/Context/AppleScriptEvaluator.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f75546223c24cc3cb4ef068a24c4c028f763b3a8ef4780187d5e60674a8b68f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:30-36 | Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift:96-102 \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":"Packages/OsaurusCore/Services/Discord/DiscordAPIClient.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55a7e00e762f4bbad6b03df1b9aa2541a0cd0dad6305f9105ef59e5f5f88f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Packages/OsaurusCore/Services/Documents/CSVAdapter.swift:86-90 | Packages/OsaurusCore/Services/Documents/PlainTextAdapter.swift:25-29 | Packages/OsaurusCore/Services/Documents/RichDocumentAdapter.swift:26-30 | Packages/OsaurusCore/Services/Documents/XLSXAdapter.swift:28-32 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Services/Documents/CSVAdapter.swift:86\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, \u0060Packages/OsaurusCore/Services/Documents/RichDocumentAdapter.swift:32\u0060 calls \u0060lowercased\u0060, \u0060RichDocumentSourceFormat\u0060, \u0060documentType\u0060 and \u0060Packages/OsaurusCore/Services/Documents/PlainTextAdapter.swift:31\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":"Packages/OsaurusCore/Services/Documents/CSVAdapter.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"836a254247aa7d2b9cf7670d9ffef7ea6f770caaff5c2837281e555351ef3948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/LocalReasoningCapability.swift:435-439 | Packages/OsaurusCore/Services/LocalReasoningCapability.swift:647-651 \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 \u0060Packages/OsaurusCore/Services/LocalReasoningCapability.swift:435\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":"Packages/OsaurusCore/Services/LocalReasoningCapability.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"9686737ce2a47b3e8c20050c3ee1a95142b0efb8991208472f9c4d4f195c0a9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/MobileConnect/MobilePairingService.swift:278-282 | Packages/OsaurusCore/Services/MobileConnect/MobilePairingService.swift:377-381 \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":"Packages/OsaurusCore/Services/MobileConnect/MobilePairingService.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"67084eab45a935c9056fb3f9d84c5f86f051c390ceb53e1585ad7805a184c31d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:789-799 | Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift:879-889 \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":"Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2bd0e92f1338d571fc4b8471dcaf85996edeef46b68d46363015ddc62f2d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:861-866 | Packages/OsaurusCore/Storage/ActivityLogStore.swift:558-563 \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 \u0060Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift:861\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":"Packages/OsaurusCore/Services/Router/WorkspaceAuditLog.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13f2f1b8a19fd8aed82b2dd949fc8891583dc831a98b246c51b3d20e7ff8c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:297-308 | Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:374-385 \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 \u0060Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift:297\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":"Packages/OsaurusCore/Services/Template/WorkflowsRegistryAPIClient.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d691ae535d78e522628f4e4a517f5782a7ffb00d9c9016400ceb691691d47039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift:721-725 | Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift:738-742 \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 \u0060Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift:721\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":"Packages/OsaurusCore/Services/Workflow/MediaNodeExecutor.swift"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4e46f98d1659823a4e7edcb7705b40e328cf84e25aa877643dc61cb823b874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:872-876 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:925-929 \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, \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:924\u0060 calls \u0060Int\u0060, \u0060sqlite3_column_int\u0060 and \u0060Packages/OsaurusCore/Storage/MemoryDatabase.swift:871\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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0df03eccc943b4d024555e213c1836cea5468df1646713b16510e572213089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Storage/MemoryDatabase.swift:1759-1771 | Packages/OsaurusCore/Storage/MemoryDatabase.swift:1801-1813 \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":"Packages/OsaurusCore/Storage/MemoryDatabase.swift"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0cfba855353a636a4e92044e3753bece003cbdbb5424336ac9e2429d870b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Tools/ConfigurationTools.swift:55-59 | Packages/OsaurusCore/Tools/ConfigurationTools.swift:848-852 \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 \u0060Packages/OsaurusCore/Tools/ConfigurationTools.swift:55\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":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"80619755139477afe55e72b923fd46288da208467b41eacb2d6d6a8315b29bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 17): Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:321-325 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:445-449 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:534-538 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:606-610 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:699-703 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:795-799 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:861-865 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:915-919 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:987-991 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1079-1083 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1239-1243 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1432-1436 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1572-1576 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1639-1643 | Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:1735-1739 | Packages/OsaurusCore/Tools/Database/SchedulerTools.swift:131-135 | Packages/OsaurusCore/Tools/Database/SchedulerTools.swift:320-324 \u2014 there are 17 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 17 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:321\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, \u0060Packages/OsaurusCore/Tools/Database/DatabaseTools.swift:327\u0060 calls \u0060requireString\u0060, \u0060value\u0060 and \u0060Packages/OsaurusCore/Tools/Database/SchedulerTools.swift:137\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":"Packages/OsaurusCore/Tools/Database/DatabaseTools.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"202859a70fbd975dd41f881e02088bce559cbe817c45e8a2e23320a3571525f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift:546-550 | Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift:812-816 \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":"Packages/OsaurusCore/Tools/Workflow/ArchitectTools.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f609507053f8df4d5456019ade62922f299954063f6b9b715bc23e9df77656b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:481-487 | Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:661-667 \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 \u0060Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift:481\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":"Packages/OsaurusCore/Tools/Workflow/WorkflowTools.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf435e2c30fb56e46e86b14d10f2428da9a99e3efdd0c6bf5b567fe37d41f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift:336-341 | Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift:518-523 \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 \u0060Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift:336\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":"Packages/OsaurusCore/Views/Agent/SpawnConfigurationEditor.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e174f73ad7ac259a9f9342d2a62a5471799be5529779067f7cf901962d6749b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatFindBar.swift:82-86 | Packages/OsaurusCore/Views/Chat/ChatFindBar.swift:123-127 \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 \u0060Packages/OsaurusCore/Views/Chat/ChatFindBar.swift:82\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":"Packages/OsaurusCore/Views/Chat/ChatFindBar.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80d088338df4805b1cb3e378ba2653129ebe3cd620fa66e3c231c6e017662c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:272-276 | Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift:518-522 \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":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda42954d5babd60db0a07ac3e4348b749ad72191625d763836fb63c49ae423d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/ChatView.swift:13255-13259 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ComputerUseScorecard.swift:560-564 \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 \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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":13255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65ff97aa3379b1b9b2ab6887317a9fcfbc5fdba2d112db05202507b9dacfdc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:276-281 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:405-410 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:276\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, \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:411\u0060 calls \u0060layout\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:282\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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2ac3908594e8f642a53d4b94224228c1a486c94c0067ad68f178c49768a168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift:801-806 | Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift:470-475 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"a964c02a9b44dcacaabd2500faf09db538b26645efa0e43c2dfddfe493b55c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1802-1806 | Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1811-1815 \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 \u0060Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift:1802\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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf98a92ef87e7a108f98ec8420cae4666e493a84eb8056b19ab86f37ea1de5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:578-583 | Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:600-605 \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 \u0060Packages/OsaurusCore/Views/Chat/SelectableTextView.swift:578\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":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"25eb89c50c905a53b6512d584c59e5cb55f30457175c11044ad829c1e1f5dc87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:230-244 | Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift:1436-1450 \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":"Packages/OsaurusCore/Views/DesignSystem/SettingsKitGallery.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3241c065ef354a7b353cd89d21713817c419450c93898f26f7ef3d5fd038feb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift:468-472 | Packages/OsaurusCore/Views/Tool/ToolCatalogRows.swift:461-465 \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 \u0060Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift:468\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":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b858407d7ac6feb4a7f47aaa6a4d3e714c25284d6171f998cd8b0d2103534a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:465-470 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:413-418 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:465\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:463\u0060 calls \u0060permissionRow\u0060, \u0060cachedIsGranted\u0060 and \u0060Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:412\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":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"396c23a2f951716aab3bdcab31b69459e158b5490261c5cfa1c34965ef410721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift:1056-1060 | Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift:750-754 | Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.swift:1153-1157 \u2014 before extracting anything, compare \u0060Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c0e4425a2e7795c64024dc67b1900b58412dfa27b110176ea34c7bd0462b83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:837-841 | Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:1884-1888 \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 \u0060Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift:837\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":"Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.swift"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"867164e5aa32d8f8a039cea8126e78ce1c0787c8e7a54cb2b0db6d3e533d8af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift:219-223 | Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift:479-483 \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 \u0060Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift:219\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":"Packages/OsaurusCore/Views/Workflow/Architect/MediaStepEditor.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"723eec02297ed8bb807b0680a6d9df13461d345e1c88dfb033afb1f33444d003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:435-439 | Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift:329-333 \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3dfffe2116183a26e4acfc6d44dd80bbb8bae5af3c4e1cb831deb554099e74a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): helpers/osaurus-wa/bridge.go:900-910 | helpers/osaurus-wa/bridge.go:963-973 \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 \u0060helpers/osaurus-wa/bridge.go:900\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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db3f2be3ad07cb896f505c57a0cf20eacebe2c888949c61af9127fd35af7e3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): helpers/osaurus-wa/bridge.go:872-880 | helpers/osaurus-wa/bridge.go:906-914 \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 \u0060helpers/osaurus-wa/bridge.go:872\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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"06856bd1a09bf323cecf639523712c801bad375497516a8d17bb5826268b603f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): helpers/osaurus-wa/bridge.go:871-878 | helpers/osaurus-wa/bridge.go:905-912 | helpers/osaurus-wa/bridge.go:968-975 \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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"20017eea7ded3fccb9c06a8520bc29a0e6a05a31e7c75253ae160633259c5bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): helpers/osaurus-wa/bridge.go:685-692 | helpers/osaurus-wa/bridge.go:811-818 \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 \u0060helpers/osaurus-wa/bridge.go:685\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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"378b85ecb453a722413d20d3d4fadfa0d476f0cde7815bace6568f3176ea7c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): helpers/osaurus-wa/bridge.go:769-776 | helpers/osaurus-wa/bridge.go:780-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060helpers/osaurus-wa/bridge.go:769\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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45b643098f8e82954a20cedda7e902c3794efa2b6e5fc0c6adc8872ea7bf3c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): helpers/osaurus-wa/bridge.go:768-774 | helpers/osaurus-wa/bridge.go:779-785 | helpers/osaurus-wa/bridge.go:790-796 | helpers/osaurus-wa/bridge.go:800-806 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060helpers/osaurus-wa/bridge.go:807\u0060 calls \u0060String\u0060, \u0060Base\u0060 and \u0060helpers/osaurus-wa/bridge.go:775\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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"2412d888c5b99e2478490e47fd429a3d61538e5ed22ded34b35a7aa57e58e188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): helpers/osaurus-wa/bridge.go:835-841 | helpers/osaurus-wa/bridge.go:933-939 \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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded6766b9a377d8784ea7756467edb9645901fcfb0dc3a3bce34955ebe1d60a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): helpers/osaurus-wa/bridge.go:864-869 | helpers/osaurus-wa/bridge.go:898-903 \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 \u0060helpers/osaurus-wa/bridge.go:864\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":"helpers/osaurus-wa/bridge.go"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1154b4f301436bac945c0d148f5a458ecf23021ee2a1f46deec3e2b4cf61b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:217-222 | scripts/live-proof/run-local-vl-media-cache-proof.py:107-114 \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":"scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d51de8fed43faa5eb4b26a4e7ef425283cbab77cfbd4ac0e976d401c464838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): scripts/live-proof/run-local-family-chat-tool-proof.py:40-52 | scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:38-47 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/live-proof/run-local-family-chat-tool-proof.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f321498a855657655b88e956aea71d3131baeac11eff9625bc68a628a3991962"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): scripts/live-proof/run-local-family-chat-tool-proof.py:250-258 | scripts/live-proof/run-local-vl-media-cache-proof.py:250-260 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/live-proof/run-local-family-chat-tool-proof.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"482c9e8b1e2e661ffc08facce9a31b142fb0b392dbf3620284b772d476605fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:4187-4200 | Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift:4256-4271 \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":"Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift"},"region":{"startLine":4187}}}],"partialFingerprints":{"codehealthFindingId/v1":"746a1853ac632decd2853511cb06303f64e67f802ed7c1297794f8c5c63ee270"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): scripts/live-proof/test-classify-runtime-proof-summary.py:112-130 | scripts/live-proof/test-classify-runtime-proof-summary.py:134-149 \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":"scripts/live-proof/test-classify-runtime-proof-summary.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2f8ca062721e3be18c2223ce0a4f77a6d0b0be108312989222e6d9c35cbabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): scripts/i18n/apply-ko.py:60-63 | scripts/i18n/export-untranslated.py:34-38 \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":"scripts/i18n/apply-ko.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"939da83c0157fb499e4f3f46f68aed02b0f5bf6fa99a9f858d1bf3e14784c161"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/OsaurusCore/Services/Sandbox/SandboxStartupMetrics.swift:189-195 | Packages/OsaurusCore/Services/Sandbox/SandboxStartupMetrics.swift:197-203 \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":"Packages/OsaurusCore/Services/Sandbox/SandboxStartupMetrics.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cbf95e57ab8701a9ab33446695de01f428f3d5c2dcaa11ae9957379b30c31d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): scripts/i18n/apply-ko.py:52-56 | scripts/i18n/export-untranslated.py:25-30 \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":"scripts/i18n/apply-ko.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d948305ffa9dc6c115b6a831eae9bcca3feebb9cc1caed51ef0a78ec0dd7ea2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): scripts/live-proof/run-local-family-chat-tool-proof.py:56-59 | scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:51-54 | scripts/live-proof/run-local-vl-media-cache-proof.py:54-57 \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":"scripts/live-proof/run-local-family-chat-tool-proof.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"456ece7b74e942225ae8aba5fe21c70ba93135dfb88d581de231f47e8ea64bdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): scripts/i18n/fill-zh-hans.py:34-40 | scripts/i18n/lint-zh-style.py:46-51 \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":"scripts/i18n/fill-zh-hans.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb87a4fc82f06e5ffee4f76c716f659df54796c8d757a5fa682a58d779c7dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): scripts/live-proof/classify-runtime-proof-summary.py:298-299 | scripts/live-proof/render-runtime-proof-matrix.py:127-128 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/live-proof/classify-runtime-proof-summary.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"4190d5cbb9d8ce5eebc902a29dc6de26e197c0d58ab47c6667495328ceaaeca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:112-115 | scripts/live-proof/run-local-vl-media-cache-proof.py:100-103 \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":"scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee305649bf913cdea66bbb81272a115950c3f6b7e5e526688a0baef9ef2ae2ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): scripts/live-proof/run-local-family-chat-tool-proof.py:72-74 | scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:67-69 | scripts/live-proof/run-local-vl-media-cache-proof.py:70-72 \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":"scripts/live-proof/run-local-family-chat-tool-proof.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df0947c98b6e138ad20c98b13e2a1fdcca06c70fe28a45496311b88fcbe4537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Packages/OsaurusCore/Services/Sandbox/SandboxProvisioningDiagnostics.swift:731-743 | Packages/OsaurusCore/Services/Sandbox/SandboxProvisioningDiagnostics.swift:781-793 \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":"Packages/OsaurusCore/Services/Sandbox/SandboxProvisioningDiagnostics.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f67ad4d88652ab1083edb3aedb5491f93f53e14794a9bb3db6747c6937bb17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Packages/OsaurusCore/Services/Sandbox/SandboxProvisioningDiagnostics.swift:240-251 | Packages/OsaurusCore/Services/Sandbox/SandboxProvisioningDiagnostics.swift:1138-1149 \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":"Packages/OsaurusCore/Services/Sandbox/SandboxProvisioningDiagnostics.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"441a36f16a891a474a4bbf7eec79420460efb06e3115dce268a5e34592fb6901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 2): Packages/OsaurusCore/Services/Sandbox/SandboxEgressPolicy.swift:171-175 | Packages/OsaurusCore/Services/Sandbox/SandboxEgressPolicy.swift:188-194 \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 \u0060Packages/OsaurusCore/Services/Sandbox/SandboxEgressPolicy.swift:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Packages/OsaurusCore/Services/Sandbox/SandboxEgressPolicy.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"78898039478a2bfe7d3dc4ceab0a4af72217e2e26dc4c3bbca1eb9376ff58913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): scripts/live-proof/run-post1266-family-cache-tool-matrix.py:292-306 | scripts/live-proof/run-post1266-family-cache-tool-matrix.py:326-338 | scripts/live-proof/run-post1266-family-cache-tool-matrix.py:358-370 \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":"scripts/live-proof/run-post1266-family-cache-tool-matrix.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a093f6bfa6bc41a7a48ce869ddc095f630d734d292063b0427c7d0a19568ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:287-297 | scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:304-326 | scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:329-343 \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":"scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"44223c113b72c091ba9c032553436c0a185e36f55f8bfc23be0e2190a4f55ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): scripts/live-proof/run-local-family-chat-tool-proof.py:40-48 | scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:38-46 | scripts/live-proof/run-local-vl-media-cache-proof.py:41-49 \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":"scripts/live-proof/run-local-family-chat-tool-proof.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5196dd072c8740fd53e4e572a8a4e7c98220887c909d84c47f3c7a3b5fc3791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/diagnostics/vision-bundle-evidence.py:36-44 | scripts/evals/plan-installed-vision.py:71-79 \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":"scripts/diagnostics/vision-bundle-evidence.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e862883c1218753daef7eea60ab33df90123dba1faa7e51588fd614a6a92d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py:217-222 | scripts/live-proof/run-local-vl-media-cache-proof.py:109-114 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \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":"scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"906f03c8abf5a5ef310b36eb2090d8dac4bc4b926f193b43e80ca421a2f49aba"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: OsaurusNetworking: OsaurusNetworking: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"09ff0e945ad1f580ca43bcceee1d58d2fd661a1fe4c19435b9421a2449da815b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 17): AppDelegate\u0027s methods fall into 17 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 17 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/OsaurusCore/AppDelegate.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"212a0da9ceaf37ae5b9dd8f46f3ccfc23ec102d2c6c28d22fff1dff34f083b1e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AgentManager (LCOM4 17): AgentManager\u0027s methods fall into 17 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 17 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/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fdb9959c28b8f799adb33bfedbdcfe616cff2e1767c5a42bce883206a51365"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SelectableNSTextView (LCOM4 17): SelectableNSTextView\u0027s methods fall into 17 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 17 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/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8dbabe3b2938d7bb8f6a027d6462c59b5f3851537397848179450c2d82d27ea"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LocalAgentBridge (LCOM4 12): LocalAgentBridge\u0027s methods fall into 12 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 12 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/OsaurusCore/Services/AgentBridge/LocalAgentBridge.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade1f811d20dd40a2e450d4f74b16cecaa9e04f7f6c33751a71837e103e8c459"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Array (LCOM4 12): Array\u0027s methods fall into 12 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 12 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/OsaurusCore/AppleApps/Music/MusicService.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b6149c0bfedff57735650b89d823788a1d05b2af2939c2025db260967da232"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NotificationService (LCOM4 11): NotificationService\u0027s methods fall into 11 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 11 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/OsaurusCore/Services/NotificationService.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6763f4b5e07e34378def05a36f1964de0c22946a74261e59ce17c73eca9639e0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UpdaterViewModel (LCOM4 11): UpdaterViewModel\u0027s methods fall into 11 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 11 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/OsaurusCore/Services/UpdaterService.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"928fdff35789912e5ecf48f9162bc520163fe38ecd1ed236e4ca3f0e759aa089"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Data (LCOM4 11): Data\u0027s methods fall into 11 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 11 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/OsaurusRepository/BoundedArchiveExtractor.swift"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c7867be47db6e90e20c3f452ff9faab8cff2daaf2b0e20267100364bf14e39"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 11): String\u0027s methods fall into 11 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 11 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/OsaurusCore/Folder/FileEditMatcher.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6bf7cc9414d7426e065f7aee1f2a25e7c288851ab608e0efe10a90d16b803d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CodeNSTextView (LCOM4 9): CodeNSTextView\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Common/CodeBlockView.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"769ddfe3bb4a97c5f6d1474bb1a0210997780a2bebce2f1f1eae448d2e8c066b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: XMLElement (LCOM4 8): XMLElement\u0027s methods fall into 8 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 8 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/OsaurusCore/Services/Documents/OOXML/OOXMLPackage.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bca782a90861ef33d1759474fcad7ad041a1f7ed80a016ec9462fb7f550559f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SkillManager (LCOM4 7): SkillManager\u0027s methods fall into 7 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 7 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/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07b67f33db83a2213b98e82fa22a2340031fa26e1f368887863ed06afcbbd26"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FakeSlackClient (LCOM4 6): FakeSlackClient\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/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f754300d26528bd8bb883c73e0336c4a8fd927f6bcb6efc4aa051736e322e69f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MLXService (LCOM4 6): MLXService\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/OsaurusCore/Services/Inference/MLXService.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3019898a5ab8d214c464ed34cac1091b5a9699403a38cf91c9ff2942cdbdb0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CellTextView (LCOM4 6): CellTextView\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/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"a825fa4e03d761ca52f4a3fc93cb2c3af61f87f7f28610e5a74f9bb875b26cc5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FixtureCUDriver (LCOM4 5): FixtureCUDriver\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/OsaurusEvals/Sources/OsaurusEvalsKit/FixtureCUDriver.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"84182732f11e61dbabaf5dba7d8dc896c775de31a649816e01b9bdce9b5619c0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HuggingFaceService (LCOM4 5): HuggingFaceService\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/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ba864ce8faa199793065d1cd3f41031c2292b0849f55285b71c34af2d8f4f7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MockMacDriver (LCOM4 5): MockMacDriver\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/OsaurusCore/ComputerUse/Driver/MockMacDriver.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d87063b0c83db5c261e24faa5039deec2e973cd60b3bd8fb7c86a14ef7bb27"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NDJSONResponseWriter (LCOM4 5): NDJSONResponseWriter\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/OsaurusCore/Models/Chat/ResponseWriters.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"570098d800e080f2b8535f3407c47bc48dac0a14c88c7696aaa103e24cb372dd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FakeTelegramClient (LCOM4 5): FakeTelegramClient\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/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f992342a8004fecc313c38100e27efa8c56328035e4429351f79fcd0fe46b0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PluginHostContext (LCOM4 5): PluginHostContext\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/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"785ace61333349a9201146bf979f083060487ac43443e0fe4734682586f0f901"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SyncHostedRunMonitor (LCOM4 5): SyncHostedRunMonitor\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/OsaurusCore/Services/Sync/SyncHostedRunMonitor.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a85320956457806486cb1d6af7858d5246026429f54ea77a325110f565c76c5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AudioInputManager (LCOM4 4): AudioInputManager\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/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf0266b851821492657ac14c5ad6ed9bcdd1769770e7a30b1c028fd4350075f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BackgroundTaskState (LCOM4 4): BackgroundTaskState\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/OsaurusCore/Models/BackgroundTaskModels.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f175a4c7f708e48989ded009057cd96151d17b364cae774af135305198f94e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PluginRuntime (LCOM4 4): PluginRuntime\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/OsaurusCore/PluginHost/main.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc6c347001c94ff512d57ec4666922ac584c184535ef743a3a2758c22da2e63"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatTurn (LCOM4 4): ChatTurn\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/OsaurusCore/Models/Chat/ChatTurn.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fa94f31ace3e4186f79c27cc362513ed55af59626913c93c543f30cf469e0e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: IMessageConnectionService (LCOM4 4): IMessageConnectionService\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/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67a540371950dd8e14e867679d8836c219b517786fcc0cf5d3eb5bc4cab852f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ImageModelDownloadService (LCOM4 4): ImageModelDownloadService\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/OsaurusCore/Services/ModelRuntime/ImageModelDownloadService.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0bb78f49c5d85fbe079bfe1f473a41aa1f2a5b2af9ce4de44fd7090ae03f7f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Registry (LCOM4 4): Registry\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/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de0f7968274e204301a7990dacb8f6ee8b14049353fc10cca7eeee64c9be08a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SandboxToolRegistrar (LCOM4 4): SandboxToolRegistrar\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/OsaurusCore/Services/Sandbox/SandboxToolRegistrar.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d807c06f4dc4c4ecbdcd1f38c991acd496501911c2d95f06ad9497847de095"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SyncStatusModel (LCOM4 4): SyncStatusModel\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/OsaurusCore/Services/Sync/SyncStatusModel.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac84da03c49304654fce80436a83704406cb3fa255bc4268bf1d0a6364eb062e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WorkflowConnectionStore (LCOM4 4): WorkflowConnectionStore\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/OsaurusCore/Services/Workflow/WorkflowConnections.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"609eff24193d52fe8ce2ec0ceb324448560412de71d5b11daff05ed30865be9b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MarkdownSegmentImageView (LCOM4 4): MarkdownSegmentImageView\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/OsaurusCore/Views/Chat/MarkdownImageView.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e2e7b72208a9fc37e4b2ca64643b7023e4f5e3196fc8c6fae0aca387ade51c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CenteredMessageScrollView (LCOM4 4): CenteredMessageScrollView\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/OsaurusCore/Views/Chat/MessageTableRepresentable.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6441464a81ed3f322c80c0ee52e0762fb359e616b96837af1601e86b1178e1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PaddedInlineButton (LCOM4 4): PaddedInlineButton\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/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76e29b42c4291d5c6bda6f36fb9687c799d96672c5fa732558f3c4e1f711194"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UserAttachmentThumbnailView (LCOM4 4): UserAttachmentThumbnailView\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/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":3924}}}],"partialFingerprints":{"codehealthFindingId/v1":"139742c814c665e79d95bb0dcb2a45eb460cc90a9c1d1aea7648591693699b14"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WorkflowSavePromptState (LCOM4 4): WorkflowSavePromptState\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/OsaurusCore/Views/Workflow/WorkflowSavePrompt.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2238dddfe1e42192871faaf8d3537a8af942fac212cd4a4002e0e5aca1dfc1b4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testModelSearchFunctionality: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/osaurusUITests/osaurusUITests.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a4c67363db87234b9cec55c2d38670e6434904c975112493d048cad215f48b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testExtractFromDylibWithoutEntryPointThrowsMissingEntryPoint: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Tests/OsaurusCLITests/ManifestExtractTests.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6a13f6933e5da7c557a568a0065020e0c6424c0954126d7b10ce5404117ab9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveDiscoveryAgainstRealServer: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tests/MCPOAuth/MCPOAuthDiscoveryTests.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c698b81c95b0171c04ca3ac197bc5e44b8dd311f0ce88166a4e26d45986fa15"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRealTypePathInsertsTextOnce: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tests/ComputerUse/Driver/BackgroundDriverLiveInputTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb5c8e39a6554aa1b1bda1bd1f50fd5c92d2a74f2f0860c4b08d0532b2fb20a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSlackEmptyAXEscalatesToVision: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tests/ComputerUse/Driver/NativeMacDriverLiveTests.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0081f8df7ddae7ce3d06e4740255e3e3844967b8cd3d1a059a4efe5b7e7a04"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testIgnoresSelf: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tests/ComputerUse/Perception/FrontmostAppTrackerTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8baa2cf8a9db735173d7d7dd9101af85626ae11ed52bc4ed1e5f9c567f7de959"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRecordsNonSelfAppNameAndPid: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tests/ComputerUse/Perception/FrontmostAppTrackerTests.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5d1839f72670715547da02ed604f2d39573c0ed410a1c273b566b99967c898"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/osaurusUITests/osaurusUITests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"36581be44e0ff4712cb5463f98254d600c21788214a318b0711a1a254a3cafc8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: 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":"App/osaurusUITests/osaurusUITests.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a534ad0f059e91f831eb969c461f1a37e8e9af257760a11116dd729c8a4e34a8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunch: 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":"App/osaurusUITests/osaurusUITestsLaunchTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff5a0b41e3191eeb9b02166eaeae2379a3ce3decbdf6cbe85b9e731b06ad012"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aTakenNameIsReportedWithWhoSetIt: 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/OsaurusCore/Tests/Agent/AgentDraftCreateBlockerTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a362f50d6063ff7d3eeee7891a0c543532be668283cb6fe725dfd99b7b1a7dc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nonImageToolResult_isIgnored: 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/OsaurusCore/Tests/AgentDelegation/NativeImageToolArtifactBridgeTests.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0187b8456b8173171f44f6fc6dc16289a7e9020ac16ad173324df5c1b332990"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: createWithAppleApps: 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/OsaurusCore/Tests/AppleApps/AppleAppsDeclarativeConfigTests.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"5722c5d26362023be283cd362caf10810e7713ed408852969aedad2cb58b3141"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: blankScriptInvalid: 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/OsaurusCore/Tests/AppleScript/AppleScriptTests.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"090f92a97977f6f7dd1d950cf40288000d200677124081c9429939785dad7a9b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: missingScriptInvalid: 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/OsaurusCore/Tests/AppleScript/AppleScriptTests.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4bec556486cd232981314e27aa3a938ce9497561faf3c1bfac2c2f42b6bcbc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nonJSONInvalid: 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/OsaurusCore/Tests/AppleScript/AppleScriptTests.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"771962d1ce0afbba45db9620f5a705971b1b500a62ef99db5785cad3bf910302"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: approvalResumes: 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/OsaurusCore/Tests/Attention/SharedRunParkResumeTests.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cff5ef22f1237b48e5161bcaa1d46436724357440e3be56e52234e555546fee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: denialResumes: 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/OsaurusCore/Tests/Attention/SharedRunParkResumeTests.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6147461e311e44f8663f054f2088f6b524d64a459484e81c0c9fa1e2a06d97"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: reasoningOnlyLengthIsNotClassifiedAsFinalResponse: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"a975d90886ebf115183f0ac7ad2f29fe3c5891ca2139b8c83a2b6b8b6b1d4a81"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: reasoningOnlyNaturalStopRequiresVisibleAnswer: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c07354bd257747e92b1a7b697defd2fec5a765d45828dff46d57b8058a21913"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: intentionalReasoningOnlyDirectChatRemainsFinal: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfba4b2f05299e24e8bd40b44874d2d08a6ec3bcf5add5345e98e931023b0a4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: intentionalUnclosedReasoningOnlyDirectChatRemainsFinal: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6e1cd0acf73a88e4aaebf77063d659ea211825a7fe8eba355659b9b2802667"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: unclosedReasoningWithContentEndsWithoutTransparentReplay: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5071a4cf54580fcf51cc09d136946d00ae683cce59428d9fccc021bcad29312"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: announceOnlyTextIsRecoverableNotFinal: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"067911253dac235a7661007f5181fd190a1750c3fbd6bef775139d01be600e43"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: genuineAnswersStayFinal: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"968bb6ec5ccde0acf8e437bdc0af41b2d3636fce0a2cc34bd8620451c242ac7e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: announceOnlyTextIsFinalWhenNoToolsWereOffered: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca9d1fcfd0b9d8c993b8c85057c89d5bf5207e63ce8ebb8fa20b7342167ef9a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: omittedContentPreservesFinalResponseClassification: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcc062a74bf155ca94fcabdae91a7896579dea063a9a5e82c6682059c075f3b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: announceCheckDoesNotShadowEarlierTerminalReasons: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e6f4310d11d81e054772218bf1ab9a337957fd4d93db06808e5acdb97a0c24"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: permissionToContinueIsFlagged: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"2102c5e54a087b51a92e70e326b9ef645fcc935a008c47b93d2734c2eb07b125"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: substantiveQuestionsAreNotTreatedAsStalls: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"678b25abed6db3e0c7199e92bd3fe1a18a7c24cc5dfe8ff487aba3ec4445412c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: continuationPhraseMidAnswerDoesNotFlag: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cec4b880ea81509f6ae7d5cdaa414d8537f0923cfba31d01852907f8657daa5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: runtimeContextErrorPropagatesDespiteEstimate: 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/OsaurusCore/Tests/Chat/AgentToolLoopTests.swift"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd1fd226aa39cbd29573ebfd4307783f22d48935934c308e6ec2fd6a75a5b66"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: multiToolRequiredChoiceStaysRequired: 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/OsaurusCore/Tests/Chat/ChatEngineTests.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62f8c9de26d3823f84d08951a71ff7433d88016bc44aecd75cc26bf3be51879"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsClaudeExportIndexWithBatchNames: 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/OsaurusCore/Tests/Chat/ChatSessionImporterTests.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d03ce057485cfaa8ba3f8043e905446add197b7356f2195ede7d4d7494f46fb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: codingRequest_withBareSingularNoun_doesNotForceRedactFile: 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/OsaurusCore/Tests/Chat/ChatToolChoicePolicyTests.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"485f3c0399246651091f0fdf9b722e2416b15ba193e089356504829d1aa41f88"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ambiguousNoun_withWeakVerb_andNoRedactionSignal_doesNotForce: 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/OsaurusCore/Tests/Chat/ChatToolChoicePolicyTests.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb2d2c9876f8a2cba7b0f6c7b18beb4bf36980403d5f214a12ca5461fd06638"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: genericReplace_withoutPIINoun_doesNotForceRedactFile: 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/OsaurusCore/Tests/Chat/ChatToolChoicePolicyTests.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dfbdca9af73d40b047b37deb7332ffce3f2dbf37cdb12ced086882c50de212"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: redactionIntent_withoutRedactFileRegistered_fallsThrough: 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/OsaurusCore/Tests/Chat/ChatToolChoicePolicyTests.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f2cc8394044b1a9b1d18541962fa5eef27fcdefc31c57898e3f7da8ae51bf9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: composerLock_forcedOffline_overridesRouterOnline: 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/OsaurusCore/Tests/Chat/ChatWindowStateWorkspaceAgentTests.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"72584ef395f6123e2f866dc454551bab527b6c122dd63fa634b2aff24251a419"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: composerLock_agentMissingBeforeAnyRosterLoad_doesNotReadAsUnavailable: 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/OsaurusCore/Tests/Chat/ChatWindowStateWorkspaceAgentTests.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcedcc1c9a44034f83edb3780049305eed94903258937d91f18670d9487dc7ce"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: immediateCallerCancellationCannotBeLostBeforeContinuationInstall: 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/OsaurusCore/Tests/Chat/CompactionDeadlineTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a905168498722290ce0c8d201421ad6efc61c825cc1f4ceb3cd06293f8ca383"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: textViewFocusController_isNoOpWhenTextViewIsNil: 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/OsaurusCore/Tests/Chat/EditableTextViewFocusLockTests.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c14344ee82938d99c230d2d43b4613e74d344ff1fdb312c40dab4cb66bc4373"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: failedTailDoesNotPublishPartialAPICompletion: 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/OsaurusCore/Tests/Chat/LocalToolCompletionContractTests.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a76c033193bdbe644da6abebce05094aed52b233e0e086d37fcdfe6491ba359"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: secretsAndClarifyShareTheQueue: 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/OsaurusCore/Tests/Chat/PromptQueueTests.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18df2793326ef4ca948bd801ef2d3b8ed9dd3bd85a434e4e37c8a42507b0873"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: gemmaGuidanceRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bbb6f0846f9cd5c2a280567d03f6eb83ad577203ef1c625c2a8b28f96087e6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: gptCodexGuidanceRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf0775da67c277cc76eb696b523d77039684bebbc334617413d0deab4bff449"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: geminiGuidanceRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08038c67bd8e38165523bb79eca5562abe749a913def15a08dfb98fcf7d72ea"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: compactFamilyVariantsRenderClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8a1214f4961a0ef8408e12dd17b92bfdbad325c5397e9fd816afc969678da3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: glmQwenGuidanceRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5111db4e397ff51b22fe5b9300861aaac2df8f6951646ebab6a546fcb9acff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: deepSeekGuidanceRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59b1cf448d04132348da340f371692b99adc8673f1d04020a65b9258359bcc4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: capabilityNudgeRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"162cc7cb3e730520df9740c5e224be2bfa295a6500d6c31ee9bda91f326e2ae0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: defaultPersonaRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b90dcd025cf6ba58cc54bd0b96f6c7e478f2d8a989204c303ac4321b27ddb21"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: agentLoopGuidanceRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ce9bb728808f394ba02b2adef5f52e222406886531e7de88bea74bd6aef481"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: groundingDirectiveRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"452cd44351d741610e036be7006a2ee03d4fa50f4d28cc3d11e3ac11f0aae196"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: lfm2GuidanceRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e30915d27d7992b08fc746f92566f6f3a7214947c46af2925cfff37e17f94d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: defaultGuidanceRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24fbcdc2656d379884767e6ee3d8cdd240c319d2d6c46622478e19bea7cb6bb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: sandboxSectionRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77dfabb057fbe4d3b8b8faeebb49da93a76f1d85b7ce576bce2c7664d5008b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: soulSectionRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2d630e09de4e65b36e36926d9a80c9fd86055f03e6551646043ce2ea0d5d7b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: folderSectionRendersClean: 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/OsaurusCore/Tests/Chat/PromptWhitespaceTests.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a716fb48d0afbc83a0974e8c95ce90c0a5f8adaea416346b5e47d1d0f55c9c7b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: sameIDArgumentCorrectionRefreshesAfterCollapsedUpdate: 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/OsaurusCore/Tests/Chat/ResponsesRunningToolPresentationTests.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5307734c6529ed47255120dd0b54890a3700017535de72205e413d8a67cf427c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: absolutePathOutsideRootStaysRejected: 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/OsaurusCore/Tests/Chat/SharedArtifactHostFolderFallbackTests.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b83c1d25043b72a7fd5d98efd49469925b578a0f15abe5aa2321e93a80d7d73"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: customNSTextView_isTextKit1FromBirth: 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/OsaurusCore/Tests/Chat/TextViewTextKitModeTests.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8dcb7afffdf003ffe07df2fa8dd425dcf3c0581fed361535d453c9dda549bb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: selectableNSTextView_isTextKit1FromBirth: 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/OsaurusCore/Tests/Chat/TextViewTextKitModeTests.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c5f7600a717c910ab95f37c349ee85d798d4ce7bdb8d16bbf35ab74aec022f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: customNSTextView_arrowNavigationAfterLayoutManagerAccess: 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/OsaurusCore/Tests/Chat/TextViewTextKitModeTests.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"979a9554d5f7066a7232ec05359de8e5f695573e72bc12c06ca4ae8e04765fa1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: closingSentenceAnnouncementIsNotAFinalAnswer: 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/OsaurusCore/Tests/Chat/ToolFlowTrueFixTests.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6146445068c5b51b9f805a9cf9db843e6c21f4b3f08121df304b9a402f6455e6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: monotonicityHoldsAcrossThreeTurns_withGapTurn: 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/OsaurusCore/Tests/Chat/TranscriptPrefixMonotonicityTests.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf4906029e2b001dc607816e011d5c2b18a34a98eb9a21232164d7fd4d112d6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aRoutingRulePlansAppliesAndExportsUnderItsChannel: 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/OsaurusCore/Tests/Configuration/ConfigChannelRoutingTests.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b060437ff4e3759f2c997d4850be47b5e99b5d98448b1dfd9043132d05286cb0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: postingAppliesAndExportsTheAgentsBindings: 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/OsaurusCore/Tests/Configuration/ConfigChannelRoutingTests.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb5a2b0ec4aa7195ff744df27873bda906d35983456e3b86c3d3c1d84990f8f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ephemeralProviders_areInvisibleToExportAndSurvivePrune: 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/OsaurusCore/Tests/Configuration/ConfigIntegrationCoverageTests.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a29c43e82a485ad518a9f660bed4c918961fc8841856ad6d2594fe0c39af9d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: commands_createUpdatePruneRoundTrip: 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/OsaurusCore/Tests/Configuration/ConfigIntegrationCoverageTests.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ee214d1c53e2c8b9a99aff072c6462eb1bfdcac0057847f6270cf10120934b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: knowledgeCollections_createUpdatePruneRoundTrip: 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/OsaurusCore/Tests/Configuration/ConfigIntegrationCoverageTests.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4316977cd4912e6f84bdc6cf1f2898913b2e083f905b650c45f43a15c3ba873"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: channels_applyThenExportRoundTrip: 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/OsaurusCore/Tests/Configuration/ConfigIntegrationCoverageTests.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42f2a5e941b977b2b060c8ea995f5341f7c19b61f2d8436c30f98b0f1766aba"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: channelKillSwitch_applyThenExportRoundTrip: 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/OsaurusCore/Tests/Configuration/ConfigIntegrationCoverageTests.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"db821c16e205c35673a621113882ae355897eb6fbd849ada55691afc467c41aa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: fullyPopulatedDocument_emitsOnlyManifestKnownKeys: 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/OsaurusCore/Tests/Configuration/ConfigManifestTests.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"19caba37a2c6627705d0b0da6a61b782a60b192a9973c97fdcb67df11c8a5cae"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: parse_rejectsUnusableHotkeys: 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/OsaurusCore/Tests/Configuration/ConfigModelDefaultsChatAppTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d453187b0286c95cd74c0334a84f412f9c5d5b8b8a9b8f58b0001c1e1fc811fc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsMalformedRefs: 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/OsaurusCore/Tests/Configuration/ConfigSecretRefTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"976e6265248cc31255c2cd6194223d5df4109a925920298db016de2f585d08bb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: channelBotTokenRef_storesTheTokenFromEnv: 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/OsaurusCore/Tests/Configuration/ConfigSecretRefTests.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c965e55f68d896f1e5171369e841e0108086900524a9d7a334c469f4dfb734db"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: unresolvableChannelRef_failsWithoutPartialWrites: 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/OsaurusCore/Tests/Configuration/ConfigSecretRefTests.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be940e213c4b436b5f27b5ac874727f315d15b5d4ebe7cb6be3cf86eb2f838d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: traversalAndSeparatorNames_areRejected: 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/OsaurusCore/Tests/Configuration/DeclarativeConfigTests.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1c1013d8820d67b9460302edc3ddd98024e721804e7f0039dc73e072c2562b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: overlongNames_areRejected: 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/OsaurusCore/Tests/Configuration/DeclarativeConfigTests.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"e941373acd4b80fb39687a8ca0cd1b5cf919d13c9ee6f98e8246054c522c1ee2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: agentsApply_addsToSpawnPool_deleteRemoves: 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/OsaurusCore/Tests/Configuration/OrchestratorSpawnDefaultsTests.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c58587ecc7c65933ef25b7ca0c8f39b0adede8ac4b3a3b431480d414df10fff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: managerCreate_addsToPool_builtInsExcluded: 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/OsaurusCore/Tests/Configuration/OrchestratorSpawnDefaultsTests.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbcbf6d4ef2f7a4a119b018aa5718be97a3ac979a2c33a63840cc7534024224"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: orchestratorSpawnableFalse_onlyAppliesOnCreate: 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/OsaurusCore/Tests/Configuration/OrchestratorSpawnDefaultsTests.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"521e4b52fd46700bf38ce165d69055a231bb9e8932ec1694e1e1ba6d57f0ef57"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: firstServicePollCompletesWithoutQueueReentrancy: 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/OsaurusCore/Tests/Context/IsolatedPasteboardTests.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a240d503f117300dacac1ca38b0df8ec01d7549b709ec32111e9319efa43c2c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: sameValueOverrideUsesTheSharedClient: 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/OsaurusCore/Tests/Credentials/MCPCredentialVariantTests.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d46131629997d18e7f53c15cf13116a9882b331bfd8b381ac189ddcc46220d2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: variantsAreCappedPerProvider: 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/OsaurusCore/Tests/Credentials/MCPCredentialVariantTests.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b66188b6fefbf5f9e575f434f83d361e1b6993734d3a3e55a948b28155f48aa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: overrideGetsItsOwnClientAndOthersShare: 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/OsaurusCore/Tests/Credentials/MCPCredentialVariantTests.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"da304cc7a2ecd8ce52acdb98fd7313f7640aee9433ad401cd2feaf88adda49e9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: changedOverrideEvictsTheAgentClient: 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/OsaurusCore/Tests/Credentials/MCPCredentialVariantTests.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d825b9cbf5a6efc4a69391fbd6a667aa9b28a6284e6b700ae8aa255c4aa8b3f5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: idleAgentClientsAreClosed: 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/OsaurusCore/Tests/Credentials/MCPCredentialVariantTests.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2d6f008ff54842c3b0d2a8526f7dae2125bb93ee2454cf04bf3a08f9fe1ca4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: kitGallery: 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/OsaurusCore/Tests/DesignSystem/SettingsRenderSmokeTests.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ec6498389add8335bb065c7ba9e8c2c163723fe2c6e328b2ceafc59ce79b29"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: representativePages: 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/OsaurusCore/Tests/DesignSystem/SettingsRenderSmokeTests.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb52997a16a3c285e654f4dc14fa55b0d0659bce86f6b8e1cfb9b81a9c65ee02"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: emit_rejectsWorkbookWithoutRenderableCells: 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/OsaurusCore/Tests/Documents/XLSXEmitterTests.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fea8ced2423cfc0cb8e8068e416d94b7dfba0ced64e648c5fee4e379717eef6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: emit_rejectsRowsContainingOnlyEmptyOrWhitespaceCells: 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/OsaurusCore/Tests/Documents/XLSXEmitterTests.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7943e97e233aa5c94b8cf8c526f275186bebfa04a4253649c25c1f81e072d903"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: identicalOldAndNewIsNoOp: 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/OsaurusCore/Tests/Folder/FileEditMatcherTests.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e68327408d8ef68241a74a52d821628c26950ab936ce23412eafdc4e5a2b81e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: notFound_whenNothingResembles: 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/OsaurusCore/Tests/Folder/FileEditMatcherTests.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4317cd699703fbf93c6e8f744832587c1d37420907d71b705592c251b6d0d84"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: notFound_forWhitespaceOnlyOldString: 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/OsaurusCore/Tests/Folder/FileEditMatcherTests.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"07070a34ddd7baf7727b2cbc4c01ff6d293c605a96a6e15c32156ad9ae4509f0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: imageAttachesForVisionModels: 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/OsaurusCore/Tests/Folder/FileReadImageAndFormatContractTests.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a247efacc055c50055bae31f0733198de9bcdbd259f607ec3ee6d852ca144cd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: warmupToolTurnMatchesBridgeMessage: 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/OsaurusCore/Tests/Folder/FileReadImageAndFormatContractTests.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"01edf1852cd0c1048d5f86396e1847dc5bbb71f2b03e1ff2a2bdb08a2d46e7fd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: fileSearch_respectsCancellation: 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/OsaurusCore/Tests/Folder/UnifiedFileToolParamsTests.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8491f9313d6c22cc9a20733c6c5093f20221cb6c2c94f7698912c87b2876e9c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: anErrorResultFailsTheTurnTyped: 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/OsaurusCore/Tests/Harness/ClaudeCodeHarnessAdapterTests.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7246e4f0fa009fe2fdc85e5e50db2d91db6058a34625f12b97b86beb818e77"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: exitWaitsForBothPipeReaders: 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/OsaurusCore/Tests/Harness/HarnessSessionLifecycleTests.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7482dac3ce9c97c8552e1144515a2de3f7385b9be809829aa384349c910798"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: drainedPipesStillWaitForExitAndDuplicateCallbacksAreHarmless: 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/OsaurusCore/Tests/Harness/HarnessSessionLifecycleTests.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb161758e08679f0245ec8a76bdc8bb63bbc1f55c47980e1a48f2a8d9cf523d7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: exitedProcessStillBoundsPipesHeldOpenByDescendants: 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/OsaurusCore/Tests/Harness/HarnessSessionLifecycleTests.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2a679e2e79e7719feda92a5afa25facacbf12103eaee0d13a4bc9dab0ad8c0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: masterSigned_agentAudience_validOnAgentValidator: 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/OsaurusCore/Tests/Identity/AccessKeyIntegrationTests.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9608cf352507181e403df1cf5037677e2be48ffd620013835d1081cfba85b77e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: revokeByNonce_thenValidate_rejected: 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/OsaurusCore/Tests/Identity/AccessKeyIntegrationTests.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d835caf88d5719ab35d74ed464ca0ed7a43868c5d6682d81e8b2543f0cc9e0bd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: bulkRevoke_thenValidate_olderKeysRejected: 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/OsaurusCore/Tests/Identity/AccessKeyIntegrationTests.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"193b16104bfcf0f48a193e3002e726d2e5460fec136161042c62cc6110a4850d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: revokeOneKey_otherStillValid: 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/OsaurusCore/Tests/Identity/AccessKeyIntegrationTests.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"713e0265dd82560fbf4c5dc5da3853394428f2cbc22c5f46dfea0cfe9104364c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validToken_nonExpiringKey: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7de4454e2b7f442f70bc05bac42bbfe7b6bb59b0733f67657a343967de24fa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validToken_masterSigned_audienceIsMaster_validForAgentValidator: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f240099f23a7dd8261e510e5a841966d53dca82a6c992c8a4f205f339b7ac6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: tamperedPayload_rejected: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7dc9ea22d7e8f29890f2386ec308cdb5ec8f26efab7675b498defd8c964d8e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: individuallyRevokedKey_rejected: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e0b684eb05b29114437a480e6fb3fc70ca8a54d70f6e0fc3b2efbdb6f8d1cc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: bulkRevokedKey_counterBelowThreshold_rejected: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc28a734c0758ce37e389df49d8bc3744dcc7864e4eea44bfd30e7e856d8e17"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: bulkRevocation_counterAboveThreshold_passes: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91c43aaa088cf4a2bece22eafaf23c57dd83cdc2fb42375f02669d9e90fc0e2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: revokedKey_nonRevokedNonce_passes: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b2e3f46b6e6b2c6b165b949d230940636d81ebb2e136c20d6520580e35df2b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: expiredKey_rejected: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"208e5afd5f55a18905da702f7fb85d1a2398fd482edc5786007f08afcf385181"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: futureExpiration_passes: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"603e2eca69328b38c75024a6086a8e979e54f0fc1fb773d70b3b370da249e163"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: missingParts_rejected: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddcdac951f44bf081b14445bcb5480b03f40aae6f6d93e03d56080783dd2f47"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: emptyValidator_rejectsValidToken: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39b1e16ed5b9da35f80a26fc1c55eebae77ad1ef40cf034d9af9a1eb8a68ad2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: revokedAndExpired_returnsRevoked: 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/OsaurusCore/Tests/Identity/AccessKeyValidatorTests.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"059f8e75305f0d76250e03c030d894a1bed0108c9a37d3c0d650f4398ce949bf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: payload_sortedKeys_alphabetical: 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/OsaurusCore/Tests/Identity/IdentityModelsTests.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f859eb68515d2d277a7012fa940b8218d69ece492c08a24dc37e39066187f6e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: installRefusesToOverwriteExistingMaster: 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/OsaurusCore/Tests/Identity/MasterKeyExistsGuardTests.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59b48ff0a8162786aa6694803d9ea84452f7a5cbfa987da0b54c24f6f206891"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: unknownWordIsRejected: 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/OsaurusCore/Tests/Identity/MasterKeyMnemonicTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc1931f032169c65a90ccc792e49523c7eeb269ca6679047243a9ed006296d7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: badChecksumIsRejected: 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/OsaurusCore/Tests/Identity/MasterKeyMnemonicTests.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd57eaf816eb5bd22c643ceba1cc594326ae3648e991980c37671f80a58a165"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aFailedEditAbandonsTheWholeBatch: 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/OsaurusCore/Tests/Knowledge/EditKnowledgeToolTests.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6513fa70f95bc31455b1e894944be7287685debfc00fc243aa9bb6a6b420b087"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: divergentHistoryNeedsAttention: 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/OsaurusCore/Tests/Knowledge/KnowledgeGitSyncTests.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a085a0961d01aae9036db10f591c132aa2805abc65ecf1e8b86f34d685f13076"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testValidateAuthorizationServerMetadataAllowsLocalDevEndpointsForLocalResource: 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/OsaurusCore/Tests/MCPOAuth/MCPOAuthDiscoveryTests.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc2d304f0ab7483d26d61a57aaf742ce306a6c0d40ce60f3bed2cd816b4c1c7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: boundedWait_timesOutWhenNoCallbackArrives: 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/OsaurusCore/Tests/MCPOAuth/OAuthLoopbackServerTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec228817be00d4f736e95abd8dc1baa1efabf8fd9293a59b266d97c8a29ec647"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: indexTranscriptTurnDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Memory/MemorySearchServiceTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"702cd145e0da94b2047bd9f3763d49f0abc9230917c53b3c644461d735516feb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: indexEpisodeDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Memory/MemorySearchServiceTests.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"15972549ca643b11b8e811ba1de236a444a26f631ce85352f2d9d1a4760b9a20"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rebuildIndexDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Memory/MemorySearchServiceTests.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a32584ad949582d469d41fbb05d18c97f55e552d41377e3ab3d293a46f71694"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: indexMethodDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Method/MethodSearchServiceTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e5451a237aec51b71554d9b3a485fc8926b362148bddb4f5f6e68fe1f6ea34"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: removeMethodDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Method/MethodSearchServiceTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f20c70fc50d917d2ca56e77a9c1c8362b0ca296b2a660d2d8dd3a10d27d882c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rebuildIndexDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Method/MethodSearchServiceTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"450a8181508c49e1e254b5c76de84437a01725da29aff0c3e26467a821d34731"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): modelRuntimeIsAnActor: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Tests/Model/ModelRuntimePrefixTests.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"220ef6abf10185d5134e9bc92b634f4b331364d00422e2b70c1e296db40686ed"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: shutdown_during_active_stream_does_not_crash: 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/OsaurusCore/Tests/Networking/HTTPHandlerChatStreamingTests.swift"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"604da0e6793dc659d009165ae9b7179e392efc46a6992a8f0c414270168aa349"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stepOne_rejectsMalformedRequests: 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/OsaurusCore/Tests/Networking/OwnerDeviceAccessHostTests.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81fe719bae4d45dda374c46ae04917f0ee2e032f216de00eb4b1786abedfef8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stepTwo_unknownNonce_isRejected: 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/OsaurusCore/Tests/Networking/OwnerDeviceAccessHostTests.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35a30df791666e7894022d94dfbcd62e0dde8fd5aab573e9197882f2379b1c6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stepTwo_nonceIsBoundToAgentAndDevice: 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/OsaurusCore/Tests/Networking/OwnerDeviceAccessHostTests.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbb72f4fddc172be98c44886ed56e60a1e1de504eeccbdce89845c5b1ce9da2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stepTwo_signatureOverWrongMessage_isNotOwner: 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/OsaurusCore/Tests/Networking/OwnerDeviceAccessHostTests.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91583412ccb22c81f0395d3c23769cd46eae52617fee9e8895903d8b4a06c58"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stepTwo_nonceIsSingleUse: 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/OsaurusCore/Tests/Networking/OwnerDeviceAccessHostTests.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce01fb6c3d15db9bc54fbae68843726e58915d26a0690208de8f9c793f3de184"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: everyPhoneRouteAnswersAsOnUpstreamMain: 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/OsaurusCore/Tests/Networking/PhoneLegacyRouteParityTests.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89def957256406a0e5124c651872b6627d8608b1878713e272fb78b7eef647f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: theSSEExtensionEventsMatchUpstreamMain: 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/OsaurusCore/Tests/Networking/PhoneLegacyRouteParityTests.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a373df7401ab42639a45333bb0aacda3dd0a24dd450a973419217570e7410c1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: decodesAuto: 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/OsaurusCore/Tests/Networking/ToolChoiceDecodingTests.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6b3f14141ad471573d3b3aa3b31153eccf4177010eb08a255b8261bf2225a8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: decodesNone: 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/OsaurusCore/Tests/Networking/ToolChoiceDecodingTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b197ffb90ec704b2952513cdb89bf0502ca2ef48146cf47ea7ac69865bef2dd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: decodesRequired: 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/OsaurusCore/Tests/Networking/ToolChoiceDecodingTests.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5710fab5b20b03c0c7521d04d4c04ca81bad26b6c862605ce1eceafc3e067e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsUnknownStrings: 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/OsaurusCore/Tests/Networking/ToolChoiceDecodingTests.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"102ada32541aca1f8a8f6cdda29acb7530ddaaa0e137300386b425b5cdee207f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: warnAgentOverrideOnceIsCallable: 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/OsaurusCore/Tests/Plugin/PluginAgentScopingTests.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1278ed28ffcf3ae100133a5a9160d1d6468177d7764432c49dbc9262088ff857"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: warnNoAgentContextOnceIsCallable: 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/OsaurusCore/Tests/Plugin/PluginAgentScopingTests.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9d1aa29c5a32b075fda6334e747afc7a995887f2bf0e5eaf50b43a918bb591"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: warnConfigValueTooLargeOnceIsCallable: 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/OsaurusCore/Tests/Plugin/PluginAgentScopingTests.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c986da3461ed368524b0c52290b0a23eb26366934682d2e50fdd43c0a4b56ef"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: sweepIsIdempotent: 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/OsaurusCore/Tests/Plugin/PluginAgentScopingTests.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5a1c5f65ebdd567a3af694f82985b35735f8f646e5c9a3f956df1cdd8859dd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: roundtripStrdupFreeUnderRepeatedCalls: 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/OsaurusCore/Tests/Plugin/PluginGetActiveAgentIdTests.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6490eae8cd97b6e0dcb35f0d94aeb34a8ebf116280b3c34d89f812f33e82a23"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nilPointerIsNoOp: 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/OsaurusCore/Tests/Plugin/PluginHostFreeStringTests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5724598b7abba3e63eb0b67627440427d7da813e800c189b6fceb56a001d55"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: freesStringReturnedByHostTrampoline: 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/OsaurusCore/Tests/Plugin/PluginHostFreeStringTests.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ba2f06063019c441335c6d5299b130cf9b414fccc9aaec38629397aab5ab3f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nilPayloadDegradesToPlainLogShape: 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/OsaurusCore/Tests/Plugin/PluginLogStructuredTests.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a09af10990cdd1d685ce5f1840313982a538511fafff45e5bdb8cfac0794651"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: payloadIsForwardedToLog: 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/OsaurusCore/Tests/Plugin/PluginLogStructuredTests.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3455b732e755f32485fe502a6cab7ddc4cf40850c3f561dfba54eadd51695e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: openAndClose: 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/OsaurusCore/Tests/Plugin/PluginTests.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddad76c0ed4ac9134f185a51843fbd4ebcd4da3bad923b0964f1e0f8cfac00fb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: manualChatRenameUpdatesRetainedMetadataAndHeadlessReveal: 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/OsaurusCore/Tests/Plugin/RetainedChatTitleSynchronizationTests.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ca55a005aa5cfbc3d1c11d7b0edd8ebada9429eda1d124908ef147de50ebdf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: automaticTitlePreservesTimestampAndRetainedMetadata: 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/OsaurusCore/Tests/Plugin/RetainedChatTitleSynchronizationTests.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"946c65c370b14643efe844fc9efb823d9fb3ea7889b680f557798936504dcbfa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: equalCanonicalTitleStillReconcilesAStaleRetainedTitle: 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/OsaurusCore/Tests/Plugin/RetainedChatTitleSynchronizationTests.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd195a4322d97c9e99b4de9bc8e4cd463f6da407206541b215e1a6e09337c877"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: generic: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyChecksumsTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a07ed24c31c2f99625b5fdd7f4d2c017e2ddd83b13d30876496581e709b88b5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: americas: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyChecksumsTests.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c0518f106b5385e42ddcb18909e7940ea9794cae96c403626f13de44de2c8d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: europeWest: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyChecksumsTests.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"06febd1b8473d914904db80eb760938de11b8c2343854ea2a53357fd17b423e0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: europeEast: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyChecksumsTests.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"68247c5c0a15126c5b2f85581126c10e81d1f5ccc4045e5c2e10a4deb374bc72"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: asiaPacific: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyChecksumsTests.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c0e0ca87b9c3c119ce0e36dac4900a94bf60b6c7a84129c6754fa5a1768e8f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: middleEastAfrica: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyChecksumsTests.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0b2567145053118efc6fa374c69e6066e6738931f97dcdb32825dd45a01113"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: presenterCancel_resolvesAsCanceled: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyFilterPipelineCancelTests.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecd2bd3ca66990f31842461b00e3bdcb2829f4780a06a732ec60020a4454907"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: everyPatternCompilesSafely: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyPresetCatalogTests.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac14a3550a7003e65bf119a0c096cf8f6a4b99a66ddf09dc32e54895c43cafd1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: safeCompile_rejectsInvalidRegex: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyRuleConfigTests.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c73338db2a1096015e472ed2c7f39455d695e978bd01b3a0eff8e1bc5c9e7b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: safeCompile_rejectsEmptyMatchingPattern: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyRuleConfigTests.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2c4cdc4b1546d2b1a9d6fbd982a2ae21a06b78128281dbaae31d861c9d5e31"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: safeCompile_acceptsValidPattern: 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/OsaurusCore/Tests/PrivacyFilter/PrivacyRuleConfigTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f97c0416641c1fbf148efd8f6c236554fd5f8180ed33cbdb5eb03bbd91e0fd9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: service_skipsUnparseableChunkOutsideToolArguments: 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/OsaurusCore/Tests/Provider/OpenAICompatibleStreamParserTests.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb51be59256a46d080e55ac73613935fd1875fb8c5872024068ec70fb6d5a1c6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: bypassUI_returnsCancelledOutcome: 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/OsaurusCore/Tests/Provider/ProviderCredentialPromptServiceTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07fcf8b8b5ab6b58ca3d17840abd719e6bd716b36015b248042c48f5e621fc0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectDroppedMediaInputs_allowsTextAndImages: 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/OsaurusCore/Tests/Provider/RemoteChatRequestEncodingTests.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f68bce8f357c9f5d53a114e343e05fa20c8e5252e0de88eaae673f88bcc694a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: trimThenEncode_gemini_noOrphans: 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/OsaurusCore/Tests/Provider/RemoteChatRequestEncodingTests.swift"},"region":{"startLine":2920}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f16350cbba6d686665adb2c8e7f94a75e10676021c686a31aaa9eec5ca9070"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: consumerCancellationTerminatesUpstreamInsteadOfReplaying: 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/OsaurusCore/Tests/Provider/ResponsesProviderPrivacyAndReasoningTests.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cfc513145a784427d82ceeb7eaa7446d478f613768ff752660ff039debb9f9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: revokeSession_rejectsUnsafePathComponent: 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/OsaurusCore/Tests/Router/OsaurusIDTests.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdaa2343910d0377fc9d606d767f3e1ef5bdc1ebf8a045bf948f3b4f84248fc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: errorEnvelope_mapsPaidWebDisabled: 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/OsaurusCore/Tests/Router/OsaurusRouterAPIClientTests.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9f625d91a4278ab7d8a9bace2c44daee86301e38131ca7b06b47a7cacbe92b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: errorEnvelope_mapsIdempotencyConflict: 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/OsaurusCore/Tests/Router/OsaurusRouterAPIClientTests.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1c27c961a8a55930eda395cda726cdc0372b10060065fd9143e04c8c489ec5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: errorEnvelope_mapsInsufficientFunds: 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/OsaurusCore/Tests/Router/OsaurusRouterAPIClientTests.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"4476c10281344e90fc93f7cc69975cc51968f6e3f52defd1ab9512a054cdf819"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stepOne_rejectsExpiredAttestation: 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/OsaurusCore/Tests/Router/WorkspaceAgentAccessTests.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"534b69e6cb127c5b7ac503ce1a428f769484508ca63a1ef67b9d3af6037bfd2b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stepOne_rejectsForeignSignatureAfterKeyRefresh: 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/OsaurusCore/Tests/Router/WorkspaceAgentAccessTests.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5684717a65459551b751fcf0f874496fe7cacddc919d9e779940f9292c2b48f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stepTwo_rejectsUnknownNonce: 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/OsaurusCore/Tests/Router/WorkspaceAgentAccessTests.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"7704b8e16ae16bb5483d10ccc259a10670e02aa23956854ced4f77b30253e6d5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: unsupportedVersion_rejectedAsMalformed: 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/OsaurusCore/Tests/Router/WorkspaceAgentAccessTests.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2efd39b6de9729e7e213f2d33352f3cfdce09b3dbadd6413973da9cdecd65a7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: matchingDigest_passesSilently: 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/OsaurusCore/Tests/Sandbox/SandboxArtifactIntegrityTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccfb783085f104632c1b66fcecfc202253ef0256d99822246d094fc8cf818c1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: digestComparison_isCaseInsensitive: 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/OsaurusCore/Tests/Sandbox/SandboxArtifactIntegrityTests.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc631556480fa73a441a1ddda30ff9d355d3c3fc4c059fa8a2ae9d8c952b08b0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: emptyFile_hashesToWellKnownDigest: 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/OsaurusCore/Tests/Sandbox/SandboxArtifactIntegrityTests.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d75dfe5df2a1093e4b4f1285efce040ab9ffcc58569a212cf283703bb971768"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: absolutePathUnderSharedWorkspaceIsAccepted: 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/OsaurusCore/Tests/Sandbox/SandboxPathSanitizerTests.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2429601f72ac0bb9fd2ff7aab912d630647c0ed944e7a8b34e7fbb4ec15bdb17"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validateAndStage_passesForMinimalPlugin: 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/OsaurusCore/Tests/Sandbox/SandboxPluginRegistrationTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"387c0ebdb5716a8316f4671c7222fd681bfe5a36092155e066eee8069951f972"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validateAndStage_acceptsAllowlistedHosts: 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/OsaurusCore/Tests/Sandbox/SandboxPluginRegistrationTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39218e1a12a21037fd2290bc74de3cbdf9d0b5e388465b1b06fabe315f9cb2d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validateAndStage_acceptsSecretsAfterUserStores: 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/OsaurusCore/Tests/Sandbox/SandboxPluginRegistrationTests.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ec732b8be992b12f2133cf911c0daf034bcf91a8a7f173d7a016a5c3b852d1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: diskPreflight_passesForTinyRequirement: 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/OsaurusCore/Tests/Sandbox/SandboxResumableDownloaderTests.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b629e9f5139f0c123c2fbd48fdc4dc01b8704d7c90083c910b77a968a50048ec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: quittingOwnerIsWaitedOnPastTheNormalDeadline: 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/OsaurusCore/Tests/Sandbox/SandboxVMOwnershipLeaseTests.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"168f65f378076dc145198d3e280d08df8dc1fd13b1ebe9b1199a3145332553e6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: absentAndEmptyParametersStillInherit: 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/OsaurusCore/Tests/Service/ChatTemplateReservedTokenTests.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"019fce11b533efa5974d8e2151123a42f60500cf854651322d06e0f2cce6d8b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: invalidatedLaneRejectsFetchBeforeCreatingTask: 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/OsaurusCore/Tests/Service/ChunkedFileDownloaderTests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c7c2ee60ed81a06b362d37b8fd988511851c0b426a8718dbf53305cb6e34b5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: generate_withoutCoreModelOrFallback_throwsUnavailableNone: 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/OsaurusCore/Tests/Service/CoreModelServiceFallbackTests.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6652f1940c6762e6245635d63962c3c674cdeaf02858fc91bd6dd04eb27709"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: generate_withoutCoreModelButWithFallback_routesViaFallback: 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/OsaurusCore/Tests/Service/CoreModelServiceFallbackTests.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"361830c56c4736890ad1b44cfa45cc69242d32dd30dd436865e6b1a66c024323"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: generate_treatsWhitespaceFallbackAsNoFallback: 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/OsaurusCore/Tests/Service/CoreModelServiceFallbackTests.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"92271d658baca95d5796b9ee8010e4c8f350a5e4774e320efea46fa94966addf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: generate_treatsEmptyFallbackAsNoFallback: 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/OsaurusCore/Tests/Service/CoreModelServiceFallbackTests.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"692294634c0d46a1fa4dcaac1486178b08213db8470a91c4dd8c702ec377ffe7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: generate_unroutableConfiguredModelWithoutFallback_propagatesConfigured: 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/OsaurusCore/Tests/Service/CoreModelServiceFallbackTests.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"802619de2074226083122f7d3c6d6a974d0b5558333d9b7ed5f3128d25bad6db"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: generate_unroutableConfiguredModelWithFallback_retriesViaFallback: 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/OsaurusCore/Tests/Service/CoreModelServiceFallbackTests.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a113dacf6d438929777dd4e24e13a2805d345bac0ea18310521f12c7f446161"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: generate_doesNotFallBackWhenFallbackEqualsConfigured: 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/OsaurusCore/Tests/Service/CoreModelServiceFallbackTests.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"41faad1ff8462d1e310494e6acec42be80610132357361e4e26e138604dde5b4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: acceptsSupportedAPIModel: 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/OsaurusCore/Tests/Service/EmbeddingServiceTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0686a4d13342c8dee71affe14fec26b18904279b78623ac543b2f49f10bfea5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rescan_resolvesCustomModelFolderPath: 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/OsaurusCore/Tests/Service/ExternalModelLocatorTests.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"44676b67144cc51eaef6f986c2843de4ad3b14e80869ef25a21bd67850048ae1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rescan_resolvesHFCacheSnapshotAndPath: 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/OsaurusCore/Tests/Service/ExternalModelLocatorTests.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18dbfc2659fbbff40064b8709c9f944db6cf6f5104972a7ce8a06c02599ba78"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelInfo_resolvesExternalHFCacheBundle: 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/OsaurusCore/Tests/Service/ExternalModelLocatorTests.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5da09aaa99261df410a089810e365249ab3503a75f8be26a6ce0d139f11cc6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelInfo_resolvesExternalBundleByTagsName: 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/OsaurusCore/Tests/Service/ExternalModelLocatorTests.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a05f8b0dea7ea613516c6fafecb58d3c7f215d159800be0002fe95a038e9fe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rescan_reportsHFCacheSnapshotSkipReason: 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/OsaurusCore/Tests/Service/ExternalModelLocatorTests.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"5023538a5e1b7b09ca5bffd357b2cc7475d115c9608f1118a5406f8ed4dfa2cf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: registry_shutdownNonexistentIsNoop: 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/OsaurusCore/Tests/Service/MLXBatchAdapterTests.swift"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4661481d8e3d7ada12314e00241c30e82ee6d9bc7189980d7f9277bf70c724"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: policyNoLongerBlocksZayaVLJANGTQK: 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/OsaurusCore/Tests/Service/MLXServiceRuntimePolicyTests.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"f367743a768fafd9bc75b8e6dd7079c744b234234ebe76f808a9de3ae3fe86b4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: mimoAndN2TextToolPreflightDoesNotRequireMediaBundleProbe: 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/OsaurusCore/Tests/Service/MLXServiceRuntimePolicyTests.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"096c424bb8752708392ae4587b1cdfaf4481ded417cd989b23afa2786c93e0e5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: n2JANGTQMediaPreflightUsesConfigAndWeights: 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/OsaurusCore/Tests/Service/MLXServiceRuntimePolicyTests.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"a645736fa743095e90f5cfefc8f928823cbc0d7055a361a8ef3ed28b2a023120"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: embeddingProceedsWhenIdle: 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/OsaurusCore/Tests/Service/MetalGateTests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"85469f10e9f51ec121e1da3b0f1c17ae2569aeeddf5a6784f22651008727dfa1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: embeddingsSerializeWithoutDeadlock: 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/OsaurusCore/Tests/Service/MetalGateTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"195b4c82b2177a3dd610426b11cf5fd6b5cebd3f8c46f0539869b1d998d0df16"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: sameModelGenerationsShareTheLock: 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/OsaurusCore/Tests/Service/MetalGateTests.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da0c16faeeecd8c929a0e6abfaa54b42b7157012cad507664f982e93f4e71f7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelLoadProceedsWhenIdle: 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/OsaurusCore/Tests/Service/MetalGateTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"674e00e0b7bad2c9b12f7534004fb1279f4ac079bc61cfaa0bedee3cfe58383e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelTeardownProceedsWhenIdle: 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/OsaurusCore/Tests/Service/MetalGateTests.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"046698f14ad6f5ad843f78c880c2501b22db6312df290c1a1404b80819b95a24"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: mediaPrepProceedsWhenIdle: 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/OsaurusCore/Tests/Service/MetalGateTests.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a28f3969d290108f73d43ddfdf0cba44c1bcc92b1533602ca26040e2f56a51"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: piiDetectionProceedsWhenIdle: 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/OsaurusCore/Tests/Service/MetalGateTests.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"64054da9a8891f3f59d5432da8e098a5335a79c3d4dd56d47b6fb02ddc022e10"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: waitForZero_returns_immediately_when_no_lease: 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/OsaurusCore/Tests/Service/ModelLeaseTests.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d8216ee279ad3d8d280d9507537ede336e4d7f62bac367efbaba3b98675b05"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: jangtq_sidecarPresent_passes: 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/OsaurusCore/Tests/Service/ModelRuntimeFindDirectoryTests.swift"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"477bb473ba8be480b24ba2969e2f51c7c995c81d2a7026de355aa4ffcfa8aa74"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: mimoAndN2JANGTQSidecarFastPathAvoidsBundleJSONRead: 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/OsaurusCore/Tests/Service/ModelRuntimeFindDirectoryTests.swift"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5062ba1bc1bb6fa2328a4a61ebe36a68a10c480ac88584366c0a776acbb0f4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: jangtq_nonMxtqFormat_passes: 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/OsaurusCore/Tests/Service/ModelRuntimeFindDirectoryTests.swift"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"6343a72dcf3535c0ea9b6bcae462396e7e644d4e40a5cd065adccef980e9e15c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: jangtq_noJangConfig_passes: 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/OsaurusCore/Tests/Service/ModelRuntimeFindDirectoryTests.swift"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"664c4492165a43a8ac651cb85e26ecc8794a7f5ce1d0a4671767b75c5c7b6a47"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: jangtq_formatStampWithSidecar_passes: 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/OsaurusCore/Tests/Service/ModelRuntimeFindDirectoryTests.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1bacfc58ef3454473b244bb6515d7e735f17d396f6b197ff67138a86228a74"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: jangtq_bf16NoSidecar_passes: 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/OsaurusCore/Tests/Service/ModelRuntimeFindDirectoryTests.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6033eab2932ca5e4829fe549aa45499160a04c6b1864872eba145d908107b16"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: dsv4_plainAffineJANG_passesNormalPreflight: 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/OsaurusCore/Tests/Service/ModelRuntimeFindDirectoryTests.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f578864767dced5f9b797d81f92ab781bf80f2396d0a5823dfe4ec15d3af34"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: acceptsPackedImagesWithoutAssumingAPixelLayout: 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/OsaurusCore/Tests/Service/PreparedImageContractTests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a5a01974eaabf5e4e572367baf2a3f61d6bd3bb1e2e6af8fb5731905df9568"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: leavesTextOnlyRequestsUnchanged: 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/OsaurusCore/Tests/Service/PreparedImageContractTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eed3efaffd5aa7d1f21abd488e06327600045192882c27b18ddb4d7e7d1ddd5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: logicalCollectionDoesNotWaitForOrClaimProducerDrain: 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/OsaurusCore/Tests/Service/ResponsesGenerationResultTests.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee091ad5b47bcde9b8a372268bf13e62a5828601d6954a184d8b1c21c3015e8e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: compatibilityEOFIsNotANativeProducerFence: 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/OsaurusCore/Tests/Service/ResponsesGenerationResultTests.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd40f0a9a23d12ce54e5c29836d316989087b62fe42927a8bd1fb32c95e05c7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: EOFWithoutTerminalCannotInventACompletedResult: 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/OsaurusCore/Tests/Service/ResponsesGenerationResultTests.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5766e7a5a0fdb207460672e6fea758e0f75885a9452097b04ac418446d5b7177"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: streamEndCollectionRejectsInvalidOrderingOrDrainFailure: 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/OsaurusCore/Tests/Service/ResponsesGenerationResultTests.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c04c125068cf875d1540a029d51a8445e67a49197b25b71cfb88e89c64b861"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: producerFenceBeforeCompletionIsRejected: 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/OsaurusCore/Tests/Service/ResponsesGenerationResultTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5ff1f86ffa202b67fcab3772cc036a07ce0a35c6fb5ed52be44b53492d870c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: swiftUIPreviewsArePreviewMacroGated: 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/OsaurusCore/Tests/Service/RuntimePolicySourceTests.swift"},"region":{"startLine":3934}}}],"partialFingerprints":{"codehealthFindingId/v1":"943766ed31e0b00fc0d9366e9d8ace09821defdd588cb0b157a29fb05ec47d42"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: toolHint_encode_roundTripsToolName: 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/OsaurusCore/Tests/Service/StreamingHintTests.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"454cce288e4e8c5b5a998e3700a68c0c2cf92e11300e08047c19eb613f4d2965"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: toolHint_encode_roundTripsUnicodeToolName: 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/OsaurusCore/Tests/Service/StreamingHintTests.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"574424c88a55cd19a32191dc6fa077e9c4baee54b7beee7b8a8aab9a86cfa691"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: toolHint_encode_emptyNameStillSentinelAndRoundTripsToEmpty: 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/OsaurusCore/Tests/Service/StreamingHintTests.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d7ce448d0064391a65d7d9ae5e4ce928dcb4e7523af7479b3876faf92f9045"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: toolHint_encodeArgs_roundTripsQuotesAndNewlines: 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/OsaurusCore/Tests/Service/StreamingHintTests.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ab7d30573876ad8c6b35231286c61ecefeb98b799255d301e1a94cc2f3354b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: toolHint_encodeArgs_roundTripsDeeplyNestedFragment: 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/OsaurusCore/Tests/Service/StreamingHintTests.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"71194a98dceb0b0aaac89b7f8e0fd3166ce23286a0979410c822b0b03da12c59"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: toolHint_encodeArgs_preservesBackslashes: 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/OsaurusCore/Tests/Service/StreamingHintTests.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"2074de9ed1a0920c73b73f177613603ae287cd8968f5b2baa7ccf5745d673642"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: toolHint_encodeArgs_roundTripsEmptyObject: 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/OsaurusCore/Tests/Service/StreamingHintTests.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f3ffebbdc7df5197676e0eebc68d87555a1db673bf619e72b31621aa64a7a8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: d1_noJangConfig_silent: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b79b0187fc2bf180cec17e28373e743aa2c478b2479002972bd2193cbf98ef4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: d2_nonMxtq_passesNewCheck: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a591a67978d74690f73aa71e2ab319f5c487010fa11aaff57d0c81d03bf05551"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: d3_mistral3OuterNoVision_passes: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecae20b39dd1fe96825f6dee1c723ae39f0845404511544768d8a1bbe3acca72"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: d3_mistral3VLM_passes: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4aa3e506bec0781495b50b1d45359783e85c08ed05120ca4223cc15b0b326f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: d3_ministral3InnerNoVision_passes: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa70dfcad41236087c3b23115f9025692318d41c92727ae6a6001e2c7a2af230"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: d3_ministral3InnerVLM_passes: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a31c22632484f08a9184c4ca337e6dc615f77daf90f09d9f3bf78a582b1a25"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: d3_laguna_unblocked: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f559855e18a41928171bef2dcfdbfdc50e696874f66880ac3561e356f06a049"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: boundary_nemotronH_passes: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ea9e60fe363480756389af471b8bf588de355d4f201389c4b5c30c48baedef"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: boundary_qwen35moe_passes: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67906cb5dfc804623c75a4f86c877e703c9d6c0d4e607894b6ce762be50b899"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: boundary_minimax_passes: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6397f5b903129269987acefb5d2862bc2c71c32c793438d2411514c51995d96c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: boundary_mistral3MXFP4_passes: 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/OsaurusCore/Tests/Service/ValidateJANGTQUnsupportedFamilyTests.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2a0d8706753f248b1cb48eab8289dbfe2bb5b45c726a8e5bb2e8fd69596437"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: initToleratesCorruptFilesGracefully: 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/OsaurusCore/Tests/Service/VecturaRecoveryTests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7287e0d062d36fe575dcfb95716d0afc0bc403dd4fed69e36a3531bf742c6de9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: searchWithNumResultsZeroThrows: 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/OsaurusCore/Tests/Service/VecturaTopKGuardTests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"06549ae833872a9afc60e8e486538833f9bd7b06804815eca2b565155ccb687f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: malformedFrontmatterStillThrows: 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/OsaurusCore/Tests/Skill/ClaudePluginInstallerTests.swift"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fd2de2977b649485ff24c58c11318fa7ff7ea698c9a378f75969b8ae1588bd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: archivePathValidationRejectsTraversalAndDepth: 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/OsaurusCore/Tests/Skill/SkillImportPolicyTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c7d636ef5311e1b76ad1aa803e9cd1ff0cabbd47702741dc443c4fcf0c5bcf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: archiveCapsRejectBeforeExtraction: 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/OsaurusCore/Tests/Skill/SkillImportPolicyTests.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecf5ed0318924b857b8f1fb382e40429dafeab2fb121f17b3ee5c901936d800"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: archiveListingFailsClosedWhenOutputIsTruncated: 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/OsaurusCore/Tests/Skill/SkillImportPolicyTests.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afc531f3deb93e709649f66ed9d818dfbc7c65eafbbea9e5034eae8f5608fe3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: extractedTreeRejectsSymlinksAndOversizedFiles: 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/OsaurusCore/Tests/Skill/SkillImportPolicyTests.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f2ab195f8fe05c968c030be5c91c4665667c3247b02b75dbc4608a743cff90"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: indexSkillDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Skill/SkillSearchServiceTests.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"097872268f3e3f761e22e3e8ac51bb000b81087820bed17c4da8d48c7a1910af"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: indexSkillWithoutKeywordsFallsBackToDescription: 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/OsaurusCore/Tests/Skill/SkillSearchServiceTests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5810523f4c6a3f6e0596ddaa06d9f4836df993966755d7c9f45186b69ce94c7e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: removeSkillDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Skill/SkillSearchServiceTests.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ebbd550fab38d2485b3caed9ff85100bf3714c72737a1e44679643d4b3de2e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rebuildIndexDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Skill/SkillSearchServiceTests.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d8099be1fcc1006fb04594eedb0fef6f08366d46a3699739f498797a0e6d8e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: smallImageStaysInline: 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/OsaurusCore/Tests/Storage/AttachmentSpilloverTests.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"78968933ed90b60abff38691d3c97c8b10a6f6895c9cdb678a9dc281afd35ab5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: allBuiltInsValidateMinimumValidPayload: 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/OsaurusCore/Tests/Tool/BuiltinToolResilienceTests.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c628c1e24faa030f1f70990f05b431001ca12e31263ba5e30dd3f87ef6a4b594"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: sandboxBuiltInsValidateMinimumValidPayload: 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/OsaurusCore/Tests/Tool/BuiltinToolResilienceTests.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c9f5734e3b4ded4546193cd5749825259c2d53a93129e4c1e40e0d138bb6ec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: malformedJSONThrows: 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/OsaurusCore/Tests/Tool/MCPArgumentsErrorTests.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b76532dd32bf353dffe07c44f6d648dbff7147d89dc591b1f2af51857982c2e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nonObjectJSONThrows: 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/OsaurusCore/Tests/Tool/MCPArgumentsErrorTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b269b855778841d4a275d4ecb1a97b029f100ca8c80d92707b949f93401a237"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: upstreamSerializationFailureIsSurfacedAsError: 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/OsaurusCore/Tests/Tool/MCPArgumentsErrorTests.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce6f7ed19491a26182a3643b19846c2a2411a46530f3904f4f5316293ec0c4e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: resolver_codexOauthAliasIsSpecialCase: 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/OsaurusCore/Tests/Tool/ProviderPresetCredentialSheetTests.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"649c4797baf9296ba43cae669d7e5eede20ebece4b95b12c245741d3b6f26b6b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: resolver_osaurusAgentAliasIsSpecialCase: 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/OsaurusCore/Tests/Tool/ProviderPresetCredentialSheetTests.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc632531db79271b93e7e2c6a905be71615ab0160b1456d16193b180291e9ba"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: noFolderAutonomousOff_yieldsNone_evenIfSandboxRegistered: 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/OsaurusCore/Tests/Tool/ResolveExecutionModeTests.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"779734fba3fa7bb5afd661acf846372a5efbb7dde45aa6c290de6ec272c441c5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: noFolderAutonomousOn_butSandboxNotRegistered_yieldsNone: 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/OsaurusCore/Tests/Tool/ResolveExecutionModeTests.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1135e154e01d0419ee09e4fed030163cec07867e58ec9bf452e560173a090db2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rebuildIndexDoesNotCrashWhenUninitialized: 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/OsaurusCore/Tests/Tool/ToolSearchServiceTests.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63d9fff38b8b0ba1982b8635cffe49f98baddabc3ec2b45d2d08b18b85ccf8a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stopIsIdempotent: 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/OsaurusCore/Tests/Utils/LogFileTailerTests.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa37c13204c715ef27ce27cd7855cba14ff6830644ad2c866ee27ebb898932e8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: everyStreamedPrefixMatchesFullParse: 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/OsaurusCore/Tests/Views/StreamingMarkdownParserTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"806b27f735c55c068c9b554ff05d058e6713974bf4b52015399730eb3f49882a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: chunkedStreamsMatchFullParse: 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/OsaurusCore/Tests/Views/StreamingMarkdownParserTests.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1282e2ebe537c64ebf4518d0c1f892e66b232393008876ea36b333063791f717"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: mergedPassAsksASharedSecretOnce_andBindsItOnEveryWorkflow: 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/OsaurusCore/Tests/Workflow/AgentBundlePlanTests.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dd36991fc82921726657365f70628b6eb8363fc1237e89b480b656b8ab6ab3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aReplyWithNoDraftHandsBackToo: 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/OsaurusCore/Tests/Workflow/ArchitectInlineHandoffTests.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd681682557c14cbaff971cc68adeb2dc9608d58b8cc848194133b784fc8c6d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: gitToolsReturnText: 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/OsaurusCore/Tests/Workflow/ToolOutputSchemaContractTests.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d37687a4b23a9b26ad71fb8be96bc6fb16461abd8eefc2699cc7dfc03c07de"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: calculatorAndCurrentTimeReturnWhatTheirSchemasSay: 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/OsaurusCore/Tests/Workflow/ToolOutputSchemaContractTests.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"136a6536b305dfe9c5fb8cf82f44644504f97da330ee6ab25aa8693e913c40eb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: signIn_whileAnotherSignInWaits_failsAsPortBusy: 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/OsaurusCore/Tests/Workflow/WorkflowOAuthProvisioningTests.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3601e248f61a4491ad2da0ae8fd030cf72d1989b2deefaa45060cdca716791a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: accountsAreScopedByInstall_andReuseIsAnExplicitCopy: 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/OsaurusCore/Tests/Workflow/WorkflowSecretsTests.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1963762106237160c15138e620e138f630bec472a87f6cab6277d655176aa62"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: setupCheck_refusesABindingThatNamesAnotherWorkflowsAccount: 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/OsaurusCore/Tests/Workflow/WorkflowSecretsTests.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5af4f900a910d34a3c01e02ea1250c017d5c4ab4d564a9c8da4dafd40f97de6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: setupCheck_reconfirmMarksAStoredSecretBlockingWithTheReason: 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/OsaurusCore/Tests/Workflow/WorkflowSecretsTests.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c0b5b5173a3ec26e47d768fa031c8c3c7be480397133f06211e948bcebdd5c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: update_thatWidensAccess_reasksEverySecret: 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/OsaurusCore/Tests/Workflow/WorkflowSecretsTests.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c3e4813c9fd4c9b32ea7afa5e2e404d15ff272f8cd6555cde671b1f358ff09"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: runner_resolvesOwnSecrets_andRedactsThemFromTheRecord: 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/OsaurusCore/Tests/Workflow/WorkflowSecretsTests.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3511ace107f75a566bd283d6ef573a4c53e1d539d418d51ea5832841ec1566"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: runner_refusesABindingToAnotherWorkflowsAccount: 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/OsaurusCore/Tests/Workflow/WorkflowSecretsTests.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba57dbba0c33b844eaaae30997c56dd21f5a68e14d182177de56eea3ae93daa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: runner_redactsSecretDialogAnswersEverywhereDownstream: 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/OsaurusCore/Tests/Workflow/WorkflowSecretsTests.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1ec27c565a3d5f305912b7a01878c2133d87bfa63cfcb2d2556787fb10ce93"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: outsideAWorkflowRun_writesAreNotNarrowed: 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/OsaurusCore/Tests/Workflow/WorkflowWriteScopeTests.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc25070a5117cafd7a853b7776b2badda00e982cd166117927ea43c399c5d520"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: firstRun_showsOnlyNewWorkflow: 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/OsaurusCore/Tests/Workflow/WorkflowsWindowRenderTests.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"210a36ff6aff1b6fa97930d2f389c61a44481f6f985a51ace493f331dec1b8e2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: fiftyWorkflows_stayOneReadableList: 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/OsaurusCore/Tests/Workflow/WorkflowsWindowRenderTests.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4f20519cf9984f518db914fcd3f9485cd49297fcebfd0dcec934098e5b410b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: architect_guidedStartEditStartAndDraftPane: 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/OsaurusCore/Tests/Workflow/WorkflowsWindowRenderTests.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"879d1594c63f1c20d3221a0cb8a7eeba91831a0ed241773b33b2848d04e440ee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: suiteValidationHonorsFilterBeforeRejecting: 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/OsaurusEvals/Tests/OsaurusEvalsKitTests/AgentLoopRegressionLabTests.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4a0d357a273b5c5ebb180e2347dbbef3753b33a32beb2e41a0d8714be87bcf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: catalogMatchesCommittedManifest: 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/OsaurusEvals/Tests/OsaurusEvalsKitTests/EvalCatalogManifestTests.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b1f0535fb67dd868bc4e8ce37e6d9f20bd7d8d847944993b11a6c66593fd84"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: offRejectsDFlashEvenWithoutNativeDepthTelemetry: 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/OsaurusEvals/Tests/OsaurusEvalsKitTests/EvalMTPControlTests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e22afced73f9b4a405206fc6a4a63d72c60e20f31ea4247f99351fc334786d9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: offViolatedByMTPStepStats: 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/OsaurusEvals/Tests/OsaurusEvalsKitTests/EvalMTPControlTests.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b05af339550f2f08ade84db212997b99e992713796acf8d0f5f7c1da42b8d9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: offWithoutResolutionIsUnverified: 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/OsaurusEvals/Tests/OsaurusEvalsKitTests/EvalMTPControlTests.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2213814434381b463f773cff378ae04493cf018779fe6ef31008a4e1cb307c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: autoWithoutResolutionIsUnverified: 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/OsaurusEvals/Tests/OsaurusEvalsKitTests/EvalMTPControlTests.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4986938f5da15b7624509f3769ab4571fdd0768b327f5666abc517548828fffc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: forcedDepthWithoutResolutionIsUnverified: 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/OsaurusEvals/Tests/OsaurusEvalsKitTests/EvalMTPControlTests.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"127a3f1c07ed0fc97e95b0a3482f9a841c37afe6c0a67f82e4de2a905aaf7278"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: refusesEqualSizedMachine: 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/OsaurusEvals/Tests/OsaurusEvalsKitTests/SimulatedMemoryProfileTests.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5e7af5715a79ae257e34c1add5a9b612e210519e2905595fbd1aa825e08245"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: uninstallIsIdempotent: 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/OsaurusPluginTestKit/Tests/OsaurusPluginTestKitTests/MockHostTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d60e27c86a1058340d59df41ae32cf1a689cefb8a8f46d6ccf9b19625f74be"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConsentedCloudRecognitionFailureStopsBeforeModelSend: 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/OsaurusCore/Tests/ComputerUse/Perception/FrameScrubFailureTests.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95ec029c79ec2b468db64c17a7d5e583636e8f81c36740a0d347285cf7e21fe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testJustInTimeConsentRecognitionFailureStopsBeforeModelSend: 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/OsaurusCore/Tests/ComputerUse/Perception/FrameScrubFailureTests.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8c14f8176da74e391b3d8597d6145def713425d80486cc2137c4549f68107b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConsentedCloudPaintingFailureStopsBeforeModelSend: 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/OsaurusCore/Tests/ComputerUse/Perception/FrameScrubFailureTests.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1b61c75dfd357128c62fb70975edb430110c974ea7e01ec906957e8b76dda9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testJustInTimeConsentPaintingFailureStopsBeforeModelSend: 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/OsaurusCore/Tests/ComputerUse/Perception/FrameScrubFailureTests.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"507240b432d91c5d2de854606453c84b4f8de3e43ca6efb8042572f8465899a7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testResolvesByMark: 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/OsaurusCore/Tests/ComputerUse/Resolver/TargetResolverTests.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e3daf4153522e65a0bf4d743da9be3304885b1fc7666ec209424d5f55c919c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOutOfRangeMarkWithDescribeFallbackResolves: 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/OsaurusCore/Tests/ComputerUse/Resolver/TargetResolverTests.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b862b300cf744d6e9deaaf694ec6a9329850c81ddeeb18cc82eb4a976290dd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDescribeUniqueResolves: 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/OsaurusCore/Tests/ComputerUse/Resolver/TargetResolverTests.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e73979fea71d8dee54b934bf1ef14eda7285ac883909a1c23838de384c06de0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExactLabelBeatsSubstring: 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/OsaurusCore/Tests/ComputerUse/Resolver/TargetResolverTests.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"143f443931d5461e759ff3bec1be7cd832397dbcc213db3cd99323e6afef3bc1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aClosedPortFailsAsAConnectionError: 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/OsaurusCore/Tests/Event/Email/IMAPClientTests.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"705d890cd7f2cbdd71848f3ff811ca591354b069511044d883fa43f35822aba0"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: osaurusUITests: No conventional assertion call was detected in 3 of 3 tests in \u0060osaurusUITests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/osaurusUITests/osaurusUITests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9a130c31960f5ea1ffbeba231a9254446aade0c39d0052c778312900bed552"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/ChatView.swift: Packages/OsaurusCore/Views/Chat/ChatView.swift changed 127 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 289 in ChatSession.dispatchSend at line 7577. 16 of those changes were fix/bug commits, and the other 111 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/ChatView.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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":7577}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabf68a6b48642e1415acdab23fa76bcab9cf643793e26895766891311678678"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Networking/HTTPHandler.swift: Packages/OsaurusCore/Networking/HTTPHandler.swift changed 69 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 272 in HTTPHandler.channelRead at line 495. 6 of those changes were fix/bug commits, and the other 63 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Networking/HTTPHandler.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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cc14f69ed7714633dfb98ffd5a2cb3a2f50634f04e7333fcff06a1d6480f7c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift: Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 172 in AgentToolLoop.runHoldingResidency at line 2359. 4 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Chat/AgentToolLoop.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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"93635c1eb132b1330042d3d6d6af83a8122324ba3e80472ea67a418df57b14c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/ModelRuntime.swift: Packages/OsaurusCore/Services/ModelRuntime.swift changed 74 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in ModelRuntime.loadContainer at line 4841. 10 of those changes were fix/bug commits, and the other 64 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/ModelRuntime.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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":4841}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbed1aebe9e4422146ef87999238ec33e42035680073492c997c49840ade098"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift: Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 172 in ConfigPlanner.validate at line 423. 1 of those changes was a fix/bug commit, and the other 24 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.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":"Packages/OsaurusCore/Configuration/Declarative/ConfigPlanner.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d7e84eb2382e6fce48a4d1aa225088bfc2f1400d8bd22c5504643b946142ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift: Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 117 in SystemPromptComposer.resolveTools at line 2766. 2 of those changes were fix/bug commits, and the other 31 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Chat/SystemPromptComposer.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":"Packages/OsaurusCore/Services/Chat/SystemPromptComposer.swift"},"region":{"startLine":2766}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6d0bec7155bd2f0849afc1fd043afea33fdc1610757aa7f8692d5236be1cb7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift: Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift changed 93 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in FloatingInputCard.normalBody at line 1007. 11 of those changes were fix/bug commits, and the other 82 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/FloatingInputCard.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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"6782a129dcc3f38b3534ca0d758b86a24d8a0d0f48ba200040b1f9c0cac8f755"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/AppDelegate.swift: Packages/OsaurusCore/AppDelegate.swift changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in AppDelegate.applicationDidFinishLaunching at line 178. 7 of those changes were fix/bug commits, and the other 41 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/AppDelegate.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/AppDelegate.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee01f86c47fffc2bec12b58d439f50c72ab73f0c962b61f9c9f13187e94172c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift: Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift changed 43 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in MLXBatchAdapter.additionalContext at line 1320. 4 of those changes were fix/bug commits, and the other 39 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.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":"Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"f351d4f4c1db103b2f146196654e4b4efe6eafe8e36766151b1ed3d2ed55f7b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/ToolRegistry.swift: Packages/OsaurusCore/Tools/ToolRegistry.swift changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in ToolRegistry.execute at line 1251. 3 of those changes were fix/bug commits, and the other 35 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/ToolRegistry.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":"Packages/OsaurusCore/Tools/ToolRegistry.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"92892ecb1787f25ac3917bca4caf0aa52249e40dbb348d676b3252aa1b935fd0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Subagent/SubagentSession.swift: Packages/OsaurusCore/Subagent/SubagentSession.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 124 in SubagentSession.runPreparedHost at line 549. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Subagent/SubagentSession.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":"Packages/OsaurusCore/Subagent/SubagentSession.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee421bc26bffbb4d5d00cf02a999414f105f0787cbfa49a640502aa6cda8059"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift: Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in RemoteProviderService._streamRemote at line 2946. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Provider/RemoteProviderService.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":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fd92d673ad14958ea83685662046aa522f2e043b079149c4844ae618ef1a2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift: Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in ConfigApplier.applyMCPServers at line 1636. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.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":"Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc156c1099c754a716ca21f73e3d832c637ebfcd02837a22862abcabeccbc84a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/Chat/ContentBlock.swift: Packages/OsaurusCore/Models/Chat/ContentBlock.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 113 in ContentBlock.generateBlocks at line 646. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/Chat/ContentBlock.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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba079af9ef0be553f0cb81ea84587e06abe35d3a607bb26385d8543e73a3c03d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Chat/ChatEngine.swift: Packages/OsaurusCore/Services/Chat/ChatEngine.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in ChatEngine.wrapStreamWithLogging at line 1376. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Chat/ChatEngine.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":"Packages/OsaurusCore/Services/Chat/ChatEngine.swift"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a60b4ef26599d8b9f878afdc0462ed214411e79ba537e65d6dff64fc5655aec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Managers/Model/ModelManager.swift: Packages/OsaurusCore/Managers/Model/ModelManager.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in ModelManager.scanLocalModels at line 2299. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Managers/Model/ModelManager.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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0b4869df10450e5d1ed3d6f4b531d0234862ff6cb494149a0dbaed837db516"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 109 in EvalRunner.runAgentLoopCaseWithSettings at line 33. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6185fc0fd5649b39d2780b5bf4587299ba0ce3779fc63c8d007a538ca3968763"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Folder/FolderTools.swift: Packages/OsaurusCore/Folder/FolderTools.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in FileReadTool.readResolved at line 1535. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Folder/FolderTools.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":"Packages/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c11218f6c84ed731981fc896aeb499cbe21ad83fd3ba2017d782abc959caedf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Chat/AgentTaskState.swift: Packages/OsaurusCore/Services/Chat/AgentTaskState.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in AgentTaskState.record at line 662. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Chat/AgentTaskState.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":"Packages/OsaurusCore/Services/Chat/AgentTaskState.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"511e8c3f64b20cd6fe0818a86a6ab068ce47f5c1a84d729a827833e9b83d927f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift: Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in NativeCellHeightEstimator.estimatedHeight at line 4290. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/NativeMessageCellView.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":"Packages/OsaurusCore/Views/Chat/NativeMessageCellView.swift"},"region":{"startLine":4290}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af4321b15a8427bc1826ae9fd95275c3572fcb11311c6ef541035959be9841c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift: Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 116 in TokenizerBridge.applyChatTemplate at line 211. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.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":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf96d5d6a40c67558edc260bd874670d379e385fcad23423a90994c759b2509f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift: Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 89 in AgentLoopEvaluator.runConversation at line 715. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.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":"Packages/OsaurusCore/Services/Context/AgentLoopEvaluator.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"478ea135d3dd28534d57c4d663947c794c3f4183c418c0d29cb9cdb995ab23ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Agent/AgentsView.swift: Packages/OsaurusCore/Views/Agent/AgentsView.swift changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in AgentDetailView.bodyCore at line 1760. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Agent/AgentsView.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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d786fc6aad4378f03364f46ae1554b87c5f7ca51ec9e5d89e2ff8a0b60878cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/ModelRuntime/GenerationEventMapper.swift: Packages/OsaurusCore/Services/ModelRuntime/GenerationEventMapper.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in GenerationEventMapper.map at line 67. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/ModelRuntime/GenerationEventMapper.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":"Packages/OsaurusCore/Services/ModelRuntime/GenerationEventMapper.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d730cc54971aa3566cff7836fc7fbb0dec9afecd1c59c1e4d805d576882d2229"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift: Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 89 in LocalVisionEvidence.read at line 136. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.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":"Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c690a60895b28056761d2f06a722b7c36a7226d9a709ccc495d65d908d7e6cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/ConfigurationTools.swift: Packages/OsaurusCore/Tools/ConfigurationTools.swift changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in OsaurusInspectTool.describeItem at line 1280. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/ConfigurationTools.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":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb58a4c74c4e38493eacbf4b9dd2a2d939d9e41be93a00f376ea1fa0942cf1ad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Managers/BackgroundTaskManager.swift: Packages/OsaurusCore/Managers/BackgroundTaskManager.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in BackgroundTaskManager.dispatchChat at line 1111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Managers/BackgroundTaskManager.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":"Packages/OsaurusCore/Managers/BackgroundTaskManager.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb91ceeeb9f3e171f612a7fe9fa4e6df01909ca253200d3acc3327cc6ce5dc74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift: Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ChatWindowState.loadSession at line 1932. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Managers/Chat/ChatWindowState.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":"Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a058dccd8ea4e9d27883f547afa6e8912f6e52396b62572d925048a33deaab0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift: Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in TextSubagentKind.run at line 987. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.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":"Packages/OsaurusCore/Subagent/Kinds/TextSubagentKind.swift"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb67195822efa44dd0e0a7be89eb0c297e0b0e7d7ab7e2559f91c6364d3ea1cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift: Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in SessionRow.navigatorRow at line 3176. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.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":"Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift"},"region":{"startLine":3176}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d9cffa5ee45e0a480a877f48abf73f7564db1702976181ebedae75960f8b52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift: Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 172 in AppleScriptLoop.run at line 310. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.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":"Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c859574c4a94f705c308b829833dd45242a4caedfd14d94a1fc75a0efadcf4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift: Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in ImageGenerationService.drive at line 724. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.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":"Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fdde7c50d643a37ecf45ec2ffb31bb589264f94b6289036f20016dc5e9db34"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift: Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in NativeToolCallRowView.configure at line 1094. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.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":"Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"b931fd1c7334d958674cbe50d365df7f28ca05b7811723c1faee2985b2f611e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift: Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in AgentDelegationDispatcher.run at line 506. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.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":"Packages/OsaurusCore/Services/AgentDelegation/AgentDelegationDispatcher.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"938c1ce60ec569abc72b6112a094b14601dee287400fc97b8747e6da44564b47"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/ModelDownloadService.swift: Packages/OsaurusCore/Services/ModelDownloadService.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in ModelDownloadService.runOrchestration at line 381. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/ModelDownloadService.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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3233aa5bd9b3e4b677ac938672b66b01cb867be0dded4944e2ac1d090ee7fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Inference/ModelService.swift: Packages/OsaurusCore/Services/Inference/ModelService.swift changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in StreamingStatsHint.decode at line 667. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Inference/ModelService.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":"Packages/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"400eb77406b36ff36f6473cd876ac56e6c14a1269b9a00f8f9b34a4f37d992b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift: Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in ComputerUseLoop.run at line 209. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.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":"Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8846e6a59e7b732e554e92150a3aeb84d5bee8d860a7efb66511ca68169ccb9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift: Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 86 in CapabilityClaimsEvaluator.runConversation at line 215. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.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":"Packages/OsaurusCore/Services/Context/CapabilityClaimsEvaluator.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"609764f59279b2ec9b42c5622fef8b13b68eb663d10293c9f74bb47ddb3da48c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift: Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in OsaurusConfigDocument.declaredSections at line 153. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigDocument.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e0eae2414e9ad1b7a82d09e13f9e1a957c2b75b10a58c58d44b5300c447087"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift: Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in OsaurusConfigTool.applyDocument at line 468. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"364ba0424915050dc729ab4fe57ca86f280a0af9a95e5fc9d7e3ce6a431171e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/CapabilityTools.swift: Packages/OsaurusCore/Tools/CapabilityTools.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in CapabilitiesDiscoverTool.execute at line 397. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/CapabilityTools.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":"Packages/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20618e261779dff921e0cee0ba61ce4467e5ce907d7c95cab9da541721f0c26"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift: Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in PluginHostContext.completeStream at line 1820. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Plugin/PluginHostAPI.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":"Packages/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9cddfbe9b60b2335a1fb4d9423785ed69bbaa94723af1bac020e2c9608cea0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in EvalRunner.runDefaultAgentCase at line 1760. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"f118e43e6d0a6716c6c5b7a22392f5f9eb716a1b8350fbfa73ef3235d20e0760"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Managers/BlockMemoizer.swift: Packages/OsaurusCore/Managers/BlockMemoizer.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in BlockMemoizer.blocks at line 118. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Managers/BlockMemoizer.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":"Packages/OsaurusCore/Managers/BlockMemoizer.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de789c01587eda56203f65b01372ec9bf49e8e9937e6bc232fda8f2610dc519"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Managers/RemoteProviderManager.swift: Packages/OsaurusCore/Managers/RemoteProviderManager.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in RemoteProviderManager.connect at line 409. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Managers/RemoteProviderManager.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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9834c5f52c527ffe508b2105c5ec2805a9462e23f25a58b56e231430183ad5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Managers/InsightsService.swift: Packages/OsaurusCore/Managers/InsightsService.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in InsightsService.filterInMemory at line 572. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Managers/InsightsService.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":"Packages/OsaurusCore/Managers/InsightsService.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2b2cf82b5a8862ac37dbc5e158ab1ab774e7ff9df76c7dc1566ff7d243a7a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/Chat/RequestLog.swift: Packages/OsaurusCore/Models/Chat/RequestLog.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in RequestLog.title at line 889. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/Chat/RequestLog.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":"Packages/OsaurusCore/Models/Chat/RequestLog.swift"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"881d6694b50fdf90c046798426d7be86d9ead4db2ff9e26de5d332e65375ff1f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift: Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ChatModelPickerCard.modelColumn at line 538. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Model/ChatModelPickerCard.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":"Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9774629fe86ccb124a66fce2ecc1935437679fd2c97d7f58096927dbfec9ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift: Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ModelPickerItem.generateMockModels at line 1043. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/Configuration/ModelPickerItem.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":"Packages/OsaurusCore/Models/Configuration/ModelPickerItem.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"747b3089d8e1eddf8c2ab047aadb77eb0ebffb6e12c66ec8682783b22714970b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift: Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in AgentChannelInboundRelay.deliverReply at line 670. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80b25b07235011626e5aeb58b822ad9d8ff59bbf7ae5a27a061a50bc6fe1e2b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Utils/MarkdownBlockParsing.swift: Packages/OsaurusCore/Utils/MarkdownBlockParsing.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in MarkdownBlockParsing.swift.parseBlocks at line 151. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Utils/MarkdownBlockParsing.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":"Packages/OsaurusCore/Utils/MarkdownBlockParsing.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcd88e49c25182285110f274cb34f59bd6bbc216335d254ca3182bcd2cd36e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift: Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in PrivacyFilterPipeline.applyOutbound at line 333. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterPipeline.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"153792ea94413caed839e7683fe95f75f4c3f3a933312caaaee96ed74242ae88"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift: Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ChatTabContextMenu.makeMenu at line 880. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/ChatTabStripView.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":"Packages/OsaurusCore/Views/Chat/ChatTabStripView.swift"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a46dc951934e6a2d0361fa89e617897da362b051275f724f5414f32c38ad932"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift: Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ServerRuntimeSettingsStore.shouldRepairPagedCacheDefault at line 650. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.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":"Packages/OsaurusCore/Models/Configuration/ServerRuntimeSettingsStore.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c42251ccf694ffaa554338ada4685330f38b7f55b6c97dc4fc220150180e2a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusRepository/OsaurusBundle.swift: Packages/OsaurusRepository/OsaurusBundle.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in OsaurusBundle.load at line 379. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusRepository/OsaurusBundle.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":"Packages/OsaurusRepository/OsaurusBundle.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc8a6ba5b5925d7355145e3e73b50935960fc46d9f71cc47171cba98492b4b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift: Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in NativeImageJobCoordinator.runJob at line 675. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.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":"Packages/OsaurusCore/Services/AgentDelegation/NativeImageJobCoordinator.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7883b7a1f8d9eb9bbb36f26ff46608f00b92e07203ab05c22c1faf376163a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/AgentDelegation/AgentSubagentRunner.swift: Packages/OsaurusCore/Services/AgentDelegation/AgentSubagentRunner.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in AgentSubagentRunner.run at line 159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/AgentDelegation/AgentSubagentRunner.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":"Packages/OsaurusCore/Services/AgentDelegation/AgentSubagentRunner.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"528a236b58b993f5c82b19fff9c4381733c8814d3a792291d491ecb9f5b2a1b4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in EvalRunner.runCacheProofCase at line 158. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerCacheProof.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c5a1fb697d9efc3b4097ebc02e5f4818cac5a72b6058dde011dd9f447da0e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift: Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ImageGenerationPanelView.run at line 728. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.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":"Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8a0609f4c551879e5aa5be368dc385c8f21816c4721316c08e93f9e152b69a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Model/ModelPickerView.swift: Packages/OsaurusCore/Views/Model/ModelPickerView.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ModelPickerView.thinkingOptionRow at line 916. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Model/ModelPickerView.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":"Packages/OsaurusCore/Views/Model/ModelPickerView.swift"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe171ffdad8f32fb5edd0dc50a8ff4adfe8b063709f9ed0dbc9f5dddc75011e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift: Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SandboxReadFileTool.execute at line 1707. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/BuiltinSandboxTools.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":"Packages/OsaurusCore/Tools/BuiltinSandboxTools.swift"},"region":{"startLine":1707}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1e4e8b118421c11596fafd326d26ac01997f04424b885b4cbb5b7dd0b80a0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/SpawnAgentTool.swift: Packages/OsaurusCore/Tools/SpawnAgentTool.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SpawnAgentTool.execute at line 123. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/SpawnAgentTool.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":"Packages/OsaurusCore/Tools/SpawnAgentTool.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a0d13d8471f780c15d9bd96bed16d36be5c3ee190153c572d7a490c8e7e1f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Model/ModelDetailView.swift: Packages/OsaurusCore/Views/Model/ModelDetailView.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ModelDetailView.detailsCard at line 551. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Model/ModelDetailView.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":"Packages/OsaurusCore/Views/Model/ModelDetailView.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"36036cafe558c944aaedb20d22b84c83694c1a292c13a8054d7f1e711cd210c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift: Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in Options.parse at line 887. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/OsaurusEvalsCLI.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a8e507088e2bd64cfe4e48abaff62da88efd44ff28127bd4af65d2b5e5e660"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift: Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in OpenResponsesRequest.toResponsesInferenceRequest at line 1306. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/API/OpenResponsesAPI.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":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"599a891bd7fdb15c1335060183ff07a7604a4ee9d4f582c80df55057bcd30132"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift: Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in PendingImportProcessor.install at line 524. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Import/PendingImportProcessor.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":"Packages/OsaurusCore/Services/Import/PendingImportProcessor.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa9bce7c85998b53087b381cfc2b775da8884fca5cad485f9dc9d017ab13c0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Memory/MemoryService.swift: Packages/OsaurusCore/Services/Memory/MemoryService.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in MemoryService.performDistillSession at line 829. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Memory/MemoryService.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":"Packages/OsaurusCore/Services/Memory/MemoryService.swift"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"c919753de50ed827f7d27f951c83296ecd19a4283927e1c853685af88dd605d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift: Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in OverviewTab.summaryHeadline at line 1131. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Insights/InsightsDetailPane.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":"Packages/OsaurusCore/Views/Insights/InsightsDetailPane.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"65010b1bfbb3988f8f0332e4624db53355d962126d8576718c9b7412527ee28e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Managers/MCPProviderManager.swift: Packages/OsaurusCore/Managers/MCPProviderManager.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in MCPProviderManager.performConnect at line 307. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Managers/MCPProviderManager.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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ab411ce36a325a567ee476812c097a5da6f00aa9c29a2b0dbbe7372289723e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift: Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ContextCompactionService.summarize at line 386. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Chat/ContextCompactionService.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":"Packages/OsaurusCore/Services/Chat/ContextCompactionService.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"69511c8831a02584cf806d1ac188c57e9dcf0551014ceefc45ea0c5a0d809063"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift: Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ChatHistoryFilterPicker.passes at line 417. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/ChatHistoryPane.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":"Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"886a4216a7a3b9d82602c57cf4b29ddcd6f0fcc643776a55104d395ec29c7fdd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift: Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in ClaudePluginInstaller.install at line 221. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"443fb4aa98ed5ec710f459393e72b5544cc65577cb6f8c1cbfba7a0f6041ef89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/ToolEnvelope.swift: Packages/OsaurusCore/Tools/ToolEnvelope.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in ToolEnvelope.fromError at line 222. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/ToolEnvelope.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":"Packages/OsaurusCore/Tools/ToolEnvelope.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8fd130a0b09f9800ed956b21a5531688fdbf99f1f24dbcfbb7e6693d030c04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift: Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ImageSubagentKind.resolveModel at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.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":"Packages/OsaurusCore/Subagent/Kinds/ImageSubagentKind.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8220ee982e2a544d0bd0ffb2ef8bc51e8735721d12acd72401bd085c9ead97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift: Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in NativeMarkdownView.applyMixedSegments at line 997. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/NativeMarkdownView.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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a5da8c85713af32d579cab6be935e1e5b88013dd56b76f1c66379a67abb2b7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundActivity.swift: Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundActivity.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in AgentChannelInboundActivityPresentation.guidance at line 139. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundActivity.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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundActivity.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2877b336b4bc9c046c2ce72e64ba8f6530d1a925640da477f3ff283e2c110b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in EvalCaseTelemetry.isEmpty at line 240. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd325f5c80a8324f1610fd64886d27577602e3f4fd1cecf366c22b77a712b498"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/SelectableTextView.swift: Packages/OsaurusCore/Views/Chat/SelectableTextView.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in SelectableTextView.applyThemeStyling at line 824. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/SelectableTextView.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":"Packages/OsaurusCore/Views/Chat/SelectableTextView.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"465bb48a8031c8af569ad5518c3c1c1ba098df4a45806243b3a70c17ecb5e771"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Folder/RedactionTools.swift: Packages/OsaurusCore/Folder/RedactionTools.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in RedactFileTool.execute at line 272. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Folder/RedactionTools.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":"Packages/OsaurusCore/Folder/RedactionTools.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e24974b5d274a4f82d472b48bd5f283b63623b5e372a8e00c0f0b3c90dcfde4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/WebSearchTools.swift: Packages/OsaurusCore/Tools/WebSearchTools.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in SearchAndExtractTool.execute at line 420. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/WebSearchTools.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":"Packages/OsaurusCore/Tools/WebSearchTools.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"572778f42227171d333e89f0819eef184e36cade0b71aa53f842d70708ca0f8d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/SchemaValidator.swift: Packages/OsaurusCore/Tools/SchemaValidator.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in SchemaValidator.validateValue at line 178. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/SchemaValidator.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":"Packages/OsaurusCore/Tools/SchemaValidator.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9034d6085e2b86476250625294ce2e2249fcbb5f4d271b9bb40135915664415"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Chat/ContextBudgetManager.swift: Packages/OsaurusCore/Services/Chat/ContextBudgetManager.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in ContextBudgetManager.summarizeToolResult at line 755. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Chat/ContextBudgetManager.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":"Packages/OsaurusCore/Services/Chat/ContextBudgetManager.swift"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"11eac2ca127817ac451ca587644e48f00371dd9b75fcb90802663e59a96b2b77"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/MCPProviderTool.swift: Packages/OsaurusCore/Tools/MCPProviderTool.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in MCPProviderTool.convertMCPContent at line 483. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/MCPProviderTool.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":"Packages/OsaurusCore/Tools/MCPProviderTool.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a38c8701bae0f53d17fd95b8d0c9e6232f340b5d3e5d91a38bf7b8f213f950"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift: Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in DeclaredReasoningEffort.nativeThinkingModes at line 300. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/DeclaredReasoningEffort.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":"Packages/OsaurusCore/Services/DeclaredReasoningEffort.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4531ef56c5539c445c44a5c86b325a4bc645e2f8bde15a69167d083dfc5166a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/API/AnthropicAPI.swift: Packages/OsaurusCore/Models/API/AnthropicAPI.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in AnthropicMessagesRequest.toChatCompletionRequest at line 1017. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/API/AnthropicAPI.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":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b5090c310f0827e0b0009bf34dd5d13c94234cb2817fcb5b37c727c62741a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift: Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ChatEmptyState.greetingBlock at line 335. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/ChatEmptyState.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":"Packages/OsaurusCore/Views/Chat/ChatEmptyState.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed69a6c15d026a8e77b9f0aab714b3b55a010288e94c486bc91014a7cf4f50e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Subagent/SubagentBatchAdmissionPlanner.swift: Packages/OsaurusCore/Subagent/SubagentBatchAdmissionPlanner.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SubagentBatchAdmissionPlanner.planInternal at line 471. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Subagent/SubagentBatchAdmissionPlanner.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":"Packages/OsaurusCore/Subagent/SubagentBatchAdmissionPlanner.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1745c9d6549cb390527eb1a1f41ba8fea8c19e61dfe8ebb2993f01e5ee485c9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift: Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in BrowserUseKind.run at line 163. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.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":"Packages/OsaurusCore/Subagent/Kinds/BrowserUseKind.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaf191576c8e105c1656bbef4e2f5628b2e1f63c0bc9db83434c27b67adbe15"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/KnowledgeTools.swift: Packages/OsaurusCore/Tools/KnowledgeTools.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in ListKnowledgeTool.execute at line 726. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/KnowledgeTools.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":"Packages/OsaurusCore/Tools/KnowledgeTools.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39788b4034766e6ef366526c08257497e8888f06a5d919e50ccee7d663cd564"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Context/CacheProofEvaluator.swift: Packages/OsaurusCore/Services/Context/CacheProofEvaluator.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in CacheProofEvaluator.runConversation 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Context/CacheProofEvaluator.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":"Packages/OsaurusCore/Services/Context/CacheProofEvaluator.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35782d7219e4a6af16da0a41bae4d1e38241b04e1e24dd999df8684a26610d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift: Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in WorkspaceDetailView.poolSection at line 396. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceDetailView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfde21efb5f26614821b7c5445d3d5a588a9cd23dcb38910861ac2e13c810a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift: Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in NativeCodeBlockView.configure at line 559. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/NativeBlockViews.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":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"25dfaaeab016be778c112020467a8dc33d7eb46c0f82eaf5f5bf5096ecb1a5ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Sandbox/SandboxToolRegistrar.swift: Packages/OsaurusCore/Services/Sandbox/SandboxToolRegistrar.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in SandboxToolRegistrar.registerTools at line 426. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Sandbox/SandboxToolRegistrar.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":"Packages/OsaurusCore/Services/Sandbox/SandboxToolRegistrar.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"416e3dd2c29ba23c764318e5fffbe225dc5892425ea2553285a544dce5edd868"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.swift: Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in WorkspaceAuditRow.title at line 327. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceAuditView.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0048804eb298b9a5ee9338640944f4d7b35165ac43b0945480a35413796d63"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Agent/AgentGenerationSettingsEditor.swift: Packages/OsaurusCore/Views/Agent/AgentGenerationSettingsEditor.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AgentGenerationSettingsEditor.body at line 60. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Agent/AgentGenerationSettingsEditor.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":"Packages/OsaurusCore/Views/Agent/AgentGenerationSettingsEditor.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cedd36bc11fff7c7e27ead3e7d9a31eef24a32b56ca721e15490752bcb327b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Networking/RelayTunnelManager.swift: Packages/OsaurusCore/Networking/RelayTunnelManager.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in RelayTunnelManager.connect at line 457. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Networking/RelayTunnelManager.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":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2adc1cf6a09c6f3e567eb5c25b32155c098d770a028db3dfdefbc31237178fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/Template/Template\u002BAgent.swift: Packages/OsaurusCore/Models/Template/Template\u002BAgent.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Template.document at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/Template/Template\u002BAgent.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":"Packages/OsaurusCore/Models/Template/Template\u002BAgent.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec61ab7db5d203ce26bbc7c03e683a493652966c6cb99c65a76f4a4c6d529754"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Folder/FileCopyTool.swift: Packages/OsaurusCore/Folder/FileCopyTool.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in FileCopyTool.execute at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Folder/FileCopyTool.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":"Packages/OsaurusCore/Folder/FileCopyTool.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28d5cbc7f98f4d6aaca5344cf8724aa6336fb3e2247c5a0dd5e60c83380389d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift: Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in InboundSharedRunBridge.resolveHostedSession at line 239. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.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":"Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9bf5daf8cdfd973a0a98c5c9529f7d79dd111aa6e6587db53e863bfe63f80b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.swift: Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in WorkspaceRosterStore.refresh at line 317. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.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":"Packages/OsaurusCore/Services/Router/WorkspaceRosterStore.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc8e105074811b1c0d0d3ced4f189431ccd96043d346b6cb6a18503b5f44e5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift: Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in N8nSettingsView.body at line 78. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Settings/N8nSettingsView.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":"Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"03612a5d689f4306e0866a2cdb8b703e076977fbf2e9e088bc6fdb622b4ea712"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift: Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SlackSettingsView.body at line 109. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Settings/SlackSettingsView.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":"Packages/OsaurusCore/Views/Settings/SlackSettingsView.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3421df97e05087b05cdd1ecb0e6e5bb384cb835e39755be8a0e78ee28b5ba07"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift: Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in KnowledgeView.body at line 83. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Knowledge/KnowledgeView.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":"Packages/OsaurusCore/Views/Knowledge/KnowledgeView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e530fc79795daa2ae0581b9b283df5f80a758e3a6f33dab7f73df200bf2dc7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Sandbox/Seatbelt/SeatbeltExecutor.swift: Packages/OsaurusCore/Services/Sandbox/Seatbelt/SeatbeltExecutor.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SeatbeltExecutor.run at line 205. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Sandbox/Seatbelt/SeatbeltExecutor.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":"Packages/OsaurusCore/Services/Sandbox/Seatbelt/SeatbeltExecutor.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a669e322729172f834dcbd39965479bc891f711248bba03a61dacec8913a6e0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/MCPCommand.swift: Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/MCPCommand.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in MCPCommand.execute at line 14. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/MCPCommand.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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/MCPCommand.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fbf628a51267c8ac307e25d7977d1ef9ea5a9d2f6cfc43f610895952eb12b0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Harness/ClaudeCodeHarnessAdapter.swift: Packages/OsaurusCore/Services/Harness/ClaudeCodeHarnessAdapter.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in ClaudeCodeHarnessAdapter.launchPlan at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Harness/ClaudeCodeHarnessAdapter.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":"Packages/OsaurusCore/Services/Harness/ClaudeCodeHarnessAdapter.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6372c20174724459705ebd201cbfe14abcbda35c05fa123d58f1027b235e235"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift: Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in NativeThinkingView.applyAssignedLayout at line 396. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/NativeThinkingView.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":"Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"439910a2ef10cda2e6a0535ea7cec957422350f8466273103096df0371657225"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift: Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SidebarLensBar.segmentButton at line 281. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Management/SharedSidebarComponents.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":"Packages/OsaurusCore/Views/Management/SharedSidebarComponents.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"b100edfdc7b4b7cbce13b3bcabaed62d36222f6d5ab6ba76a9acad2a6cbaab61"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift: Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in CreateWorkspaceSheet.body 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.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":"Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"af893aa418807d346967e673146f1fed88f3325758af5efcf5e1edfc967c2546"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift: Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in DiscoveryCenter.take at line 377. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.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":"Packages/OsaurusCore/Services/Onboarding/DiscoveryCenter.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87f5983e14154893376d2770abdc23c9deadcf4b34c13ae47a657f213a3c2bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/NotificationService.swift: Packages/OsaurusCore/Services/NotificationService.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in NotificationService.userNotificationCenter at line 274. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/NotificationService.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":"Packages/OsaurusCore/Services/NotificationService.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cc5b665509f8c24f48ff58427f9cf060e2e42a48907ad4a36b2d884d3a2355"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift: Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ConfigYAML.checkMapping at line 230. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.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":"Packages/OsaurusCore/Configuration/Declarative/ConfigYAML.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb841d64652a3fef4c7d7cbec09947991775b31bf46f54ba2d22c92d49bc0c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift: Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ImportCommand.render at line 728. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47273fae587c81a220d2f9b7c71c8d107be1842813bdf358a74f70709aa2547"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Router/WorkspaceAgentRunClient.swift: Packages/OsaurusCore/Services/Router/WorkspaceAgentRunClient.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in WorkspaceAgentRunClient.prepare at line 157. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Router/WorkspaceAgentRunClient.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":"Packages/OsaurusCore/Services/Router/WorkspaceAgentRunClient.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"48851b23845ce39e6f9d38b13b03626c44275288a86e3d3855c67445153a0cdf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift: Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in UpdateKnowledgeTicketTool.execute at line 331. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/KnowledgeCurationTools.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":"Packages/OsaurusCore/Tools/KnowledgeCurationTools.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc6bb33cccf78e4329dc48645eb7b58f27b35b834c596b37cae51e1e7a9d425"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Skill/SkillsView.swift: Packages/OsaurusCore/Views/Skill/SkillsView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SkillsView.body 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Skill/SkillsView.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":"Packages/OsaurusCore/Views/Skill/SkillsView.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c81054c2fcfa849e82c3fb1e2e13685a5c0e9454ac570bebbfb73a40595c67a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Tools/SandboxSecretTools.swift: Packages/OsaurusCore/Tools/SandboxSecretTools.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SandboxSecretSetTool.execute at line 149. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Tools/SandboxSecretTools.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":"Packages/OsaurusCore/Tools/SandboxSecretTools.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1531f3557c2d4ffa4dead3874e261217a6aa664ec8fe65d3c1b58e2551801ccc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/ChatSession\u002BHarness.swift: Packages/OsaurusCore/Views/Chat/ChatSession\u002BHarness.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in ChatSession.runHarnessTurn at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/ChatSession\u002BHarness.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":"Packages/OsaurusCore/Views/Chat/ChatSession\u002BHarness.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedbffd53def2ed316c237035e119352f66bed67e6ae406c4c9e2376978a7b83"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift: Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in NativeActivityGroupView.configure at line 93. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.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":"Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60760d23943d941ed3a471b38c14939e25ab95e723126f67f00be7edb340f91"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift: Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ModelRowCellView.layout at line 842. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.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":"Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bdc31e5f1b2e962f7a5e34ca0625aef456f45890c083eb59751e63a4138cbc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift: Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ToolsManagerView.allToolsTabContent at line 209. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Plugin/ToolsManagerView.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":"Packages/OsaurusCore/Views/Plugin/ToolsManagerView.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20c2f328464b6413c1944e73073b6c94f55e8c576b98076685dd07bcc110ad0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterEngine.swift: Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterEngine.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in PrivacyFilterEngine.detect at line 176. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterEngine.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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterEngine.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea86f3d6af05920d73ba5e18d677e500ee9c698994314df45aada7ee87f5a12"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/TerminalDisplayView.swift: Packages/OsaurusCore/Views/Chat/TerminalDisplayView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in TerminalDisplayView.applyTheme at line 378. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/TerminalDisplayView.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":"Packages/OsaurusCore/Views/Chat/TerminalDisplayView.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"330c8fc355a764f3de285799c374a9075b0e05b867ff2b86984662ac7b90da43"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift: Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in WorkspaceAgentAccessHost.redeem at line 364. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.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":"Packages/OsaurusCore/Services/Router/WorkspaceAgentAccessHost.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9959a1d2dece09fc4778bdfa65bbecbc1311f6db1104acf0ae0e65612dbfd5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift: Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in LanguageCatalogSource.item at line 469. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.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":"Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"383ec441b2aad1fb3b053ba11dd46ea294ad8f01eae46e66dc08abbc85459b0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift: Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in AgentChannelConnectionService.actionStatus at line 1739. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelConnectionService.swift"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3638362358b597fa3358d815d4ab079442ad8e141ab6b80c6f122dbbaf51aac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift: Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ChatSessionExporter.timingSuffix at line 238. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.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":"Packages/OsaurusCore/Managers/Chat/ChatSessionExporter.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fedf1f583a6846bf92f6ffb1a4705872faaab7a5b692f9c2292a9edf85813d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Context/MicroPerfEvaluator.swift: Packages/OsaurusCore/Services/Context/MicroPerfEvaluator.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in MicroPerfEvaluator.runCancellation at line 316. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Context/MicroPerfEvaluator.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":"Packages/OsaurusCore/Services/Context/MicroPerfEvaluator.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf688fb8d5752e44099cebdd04f9827719cf57402776338747b9199c8d8d08f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift: Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in AgentChannelWebhookIngress.handleInbound at line 216. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f62c9812ae1dc4c2924041a202ca2ab554f3efae51bb7061085ec08a6756305"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusRepository/ImportQueue.swift: Packages/OsaurusRepository/ImportQueue.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in OsaurusBundle.contentHash at line 394. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusRepository/ImportQueue.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":"Packages/OsaurusRepository/ImportQueue.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"6536b913c54a8f818757b60f6be4bf3513bd9dfd965073483c4fdf59cff83def"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCLI/Sources/OsaurusCLI/OsaurusCLI.swift: Packages/OsaurusCLI/Sources/OsaurusCLI/OsaurusCLI.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in OsaurusCLI.parseCommand at line 35. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCLI/Sources/OsaurusCLI/OsaurusCLI.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":"Packages/OsaurusCLI/Sources/OsaurusCLI/OsaurusCLI.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc60cb7b28fcc562e332437da282e7760869949c79dad15ac40c8cba98dd3822"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in EvalRunner.runMicroPerfCase at line 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerMicroPerf.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb222caf572c35178c70204b0c87673e645453c9c40f86a9c4beb2fb255e443"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Subagent/SpawnPermissionGate.swift: Packages/OsaurusCore/Subagent/SpawnPermissionGate.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in SpawnPermissionGate.authorize at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Subagent/SpawnPermissionGate.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":"Packages/OsaurusCore/Subagent/SpawnPermissionGate.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1c68c51034d7305d40d73d24e275a67cd3a3ca262789558ca9dceac83def9e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift: Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ComputerUseConfirmOverlay.confirmCard at line 86. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.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":"Packages/OsaurusCore/Views/Chat/ComputerUseConfirmOverlay.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48e7126eac9a7082219bcedf2ceacab76b645be8b69199d615abc9facc7eb71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Router/WorkspaceSyncService.swift: Packages/OsaurusCore/Services/Router/WorkspaceSyncService.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in WorkspaceSyncService.startStream at line 181. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Router/WorkspaceSyncService.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":"Packages/OsaurusCore/Services/Router/WorkspaceSyncService.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b21caea669db95feea5a1d7005043c8c114f128e44ec6c8cff87b1902fc3c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/Configuration/ModelInfo.swift: Packages/OsaurusCore/Models/Configuration/ModelInfo.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ModelInfo.findModelDirectory at line 324. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/Configuration/ModelInfo.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":"Packages/OsaurusCore/Models/Configuration/ModelInfo.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"311a6545b18cc7086a15ef2e27a1375b50098f50edbdbfac44372ad5d4ad27d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.swift: Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in MCPOAuthError.errorDescription at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.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":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e0f7ea80e644a9a28b8042c7221d41496bc75a3703481e3d684773955f913a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/PrivacyFilter/Core/RegexEntityDetector.swift: Packages/OsaurusCore/PrivacyFilter/Core/RegexEntityDetector.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in RegexEntityDetector.detect at line 126. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/PrivacyFilter/Core/RegexEntityDetector.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":"Packages/OsaurusCore/PrivacyFilter/Core/RegexEntityDetector.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8daa45ad99678f18a945c6e557df7953e7c70955ccae92e7b7d95385c58f55ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/NativeChartView.swift: Packages/OsaurusCore/Views/Chat/NativeChartView.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in NativeChartView.applyInspectionStyle at line 265. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/NativeChartView.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":"Packages/OsaurusCore/Views/Chat/NativeChartView.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fd47456de97f65e78ccca7593deb544320911b99adb376a12c0e8a00236848"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Models/Template/TemplateRequirements.swift: Packages/OsaurusCore/Models/Template/TemplateRequirements.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in TemplateRequirements.items at line 424. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Models/Template/TemplateRequirements.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":"Packages/OsaurusCore/Models/Template/TemplateRequirements.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5d03ee081ae73e273460bd8cb17f46c8284c63ac694e01a0e4d88d1001750f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/ComputerUse/Model/AgentView.swift: Packages/OsaurusCore/ComputerUse/Model/AgentView.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in AgentView.renderForModel 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/ComputerUse/Model/AgentView.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":"Packages/OsaurusCore/ComputerUse/Model/AgentView.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec17703e8220f6d93a6f08e5ad49cf16015db015146058a6a77bc506f5808bd5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift: Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in EvalRunner.runSubagentCase at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a91b70fce4b296a009849bb44fb756453f1e1f54aa3b0adfe4ae3b41befc4d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Search/SearchReadability.swift: Packages/OsaurusCore/Services/Search/SearchReadability.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in SearchReadability.fetchAndExtract at line 95. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Search/SearchReadability.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":"Packages/OsaurusCore/Services/Search/SearchReadability.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c4a0c6ff04172caac98578465cb0173006a31783ebdeeb601785ff290c92a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift: Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in OnboardingFirstRun.runRequest at line 616. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.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":"Packages/OsaurusCore/Services/Onboarding/OnboardingFirstRun.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93493c092b139374e73bcad4d33704957e8d750e506d4f920b14ef2cb6eeb35"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift: Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ChatSessionImporter.parse at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.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":"Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"37078b0d6ee7f8c5c95ee355c71e7981a61491ed660ce8498abf267057c60927"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift: Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in NativeCompactionMarkerView.configure at line 84. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.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":"Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb554292fc68a618ab77c4bba8899e62fd2463212559242c82895a9744c21763"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift: Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MemoryConsoleInspectSheet.metadataGrid at line 666. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.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":"Packages/OsaurusCore/Views/Memory/MemoryManagementConsoleView.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"437318b612d09cc7d75bba9252e2498387b5ef62147251a06e21fca7426a996b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift: Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in TelegramConnectionService.processUpdates at line 1070. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95b5d62f019303a149d731690d422ddd037f7dd54ff574d9fcc2b2a2873d78a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/OsaurusCore/Services/Inference/AgentDescriptionBackfill.swift: Packages/OsaurusCore/Services/Inference/AgentDescriptionBackfill.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AgentDescriptionBackfill.run at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Services/Inference/AgentDescriptionBackfill.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":"Packages/OsaurusCore/Services/Inference/AgentDescriptionBackfill.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5506d02f3159d5939ae15937dde848e9c77924404a8a81a9416fbc3cb61aeb9c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Packages/OsaurusCore/Views/Common/CodeBlockView.swift: Packages/OsaurusCore/Views/Common/CodeBlockView.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 10 (its worst body is CodeNSTextView.draw at line 519), 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 right-click copy dropping the chat drag selection (#2899)\u201D; \u201Cfix theme editor color picker jitter and hex input (#2673)\u201D; \u201Cfixed main thread hangs (#2619)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:30:28 -08:00\u0027 --until=\u00272026-11-14 00:30:28 -08:00\u0027 --full-history --no-merges -- Packages/OsaurusCore/Views/Common/CodeBlockView.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":"Packages/OsaurusCore/Views/Common/CodeBlockView.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be4b3e711a9b2ad386ea64a5198f2c557958c06ad319f4e97236db4b75e2e37"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 122 significant file(s) lose their only recent owner: Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsCreate.swift, Packages/OsaurusCore/Views/Settings/N8nSettingsView.swift, Packages/OsaurusCore/Tools/Database/DatabaseTools.swift, Packages/OsaurusCore/Services/Context/AgentChannelEvalHarness.swift, Packages/OsaurusCore/Services/AgentChannel/AgentChannelPublishService.swift, Packages/OsaurusCore/Views/Agent/Database/DatabaseTablesView.swift, Packages/OsaurusCore/Services/Router/OsaurusRouterTypes.swift, Packages/OsaurusCore/Services/Router/OsaurusRouterWorkspaceTypes.swift (\u002B114 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9c48b515b430b40b7239cf62c51fa0efbac4a9219f49e2248ce116fcb5ed79c8"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 34 significant file(s) lose their only recent owner: Packages/OsaurusCore/AppleScript/Tool/AppleScriptToolDispatch.swift, Packages/OsaurusCore/Services/LocalGenerationDefaults.swift, Packages/OsaurusCore/Services/ChunkedFileDownloader.swift, Packages/OsaurusCore/Services/ModelRuntime/BatchDiagnosticsSnapshot.swift, Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationTypes.swift, scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py, Packages/OsaurusCore/Views/Settings/ServerSettings/MTPSection.swift, Packages/OsaurusCore/Services/ModelSSDResidency.swift (\u002B26 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cd95df92a5742ac0297c035a91f249af8988926d169393c00ca95890a35735e6"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 27 significant file(s) lose their only recent owner: Packages/OsaurusCore/Views/Chat/ChatHistoryPane.swift, Packages/OsaurusCore/Views/Chat/NativeFileDiffView.swift, Packages/OsaurusCore/Managers/Chat/ChatSessionImporter.swift, Packages/OsaurusCore/PrivacyFilter/Core/CodeBlockMasker.swift, Packages/OsaurusCore/Views/Chat/ChatCrossSelection.swift, Packages/OsaurusCore/Services/Knowledge/KnowledgeDocumentParser.swift, Packages/OsaurusCore/Models/Knowledge/KnowledgeCollection.swift, Packages/OsaurusCore/Services/MobileConnect/DetachedPhoneRuns.swift (\u002B19 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5dea0cc934b9d31beb9f5ad312d13c7fb63847c3d773447662eaab5840cdbd33"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 23 significant file(s) lose their only recent owner: Packages/OsaurusCore/Services/Documents/PPTXAdapter.swift, Packages/OsaurusCore/Managers/SkillImportPolicy.swift, Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bench.swift, Packages/OsaurusCore/Utils/StorageLocationStandards.swift, Packages/OsaurusCore/Services/SupportDiagnosticsBundle.swift, Packages/OsaurusCore/Services/Documents/ExternalOfficeRuntimeDetector.swift, Packages/OsaurusCore/Services/ModelRuntime/RuntimeProofValidation.swift, Packages/OsaurusCore/Services/ModelRuntime/RuntimeProofMatrixReporter.swift (\u002B15 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"136c6d22a1010b5caec4fd391dd17f8baef3c9fa3de8ea0582240c7751734bdf"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (210 single-owned of 1940 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 1940 of the 2189 production source files in this repository met that bar). They are anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: scripts/i18n/lint-zh-style.py, Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/MCPBundleManager.swift, Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/ServerSupervisor.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hack the resolved plan can undo. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalBootstrap.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"735ae4e10a5bb3f8c26b67e16d565bc84d0e1ced3e1a1610cec1abf274be1788"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo discipline: when true, some \u0060todo\u0060 call with at least one \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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalCase.swift"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"5850c8e97159314af474a83642817a798d0028028f6472edccc0856e3e40df73"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo pill until the user dismisses it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/AgentInlineBlocks.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6821d727b61df21891a83f00df9555c39feb23aba37569816a35d2bff6c610a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo pill to avoid flicker when the cursor crosses the pill\u0027s \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":"Packages/OsaurusCore/Views/Chat/AgentInlineBlocks.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b0458b5bc22e8932a24e5ec6e3d7d6845183400767769ac0731dcd741a077e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo replaces one session-scoped checklist wholesale. \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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":9021}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5395f24c3b09aeea5aa26384d9b5fdac25f99114566efd3705d060fd5f047d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo notice disappears. No prose classifier, \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":"Packages/OsaurusCore/Views/Chat/ChatView.swift"},"region":{"startLine":9631}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1b97d376fa96d53191c547a604b9671406b0dc332f1dcdc91c578ec8a6cd4a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mode-merge): the spec (\u00A79.4 / \u00A713) allows per-field overrides \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":"Packages/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":3226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9587ee40144091c6915ce5d90a7b985733e1b20e2730fdb66e6406be55360f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo-staleness nudge could never arm (pending == 0), the UI block \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":"Packages/OsaurusCore/Tools/AgentLoopTools.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"28702ff88039e459c9a6ee8f19b5bb586e8ad91b8c9d6e848ce13d278eda016b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo is model-authored progress metadata, not an execution precondition. \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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c9c80b7c4cdf97161a476b5a185f55e91865d93ead598ab5a4c06d9a5115a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo is advisory UI state, not a runtime lock. \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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":2517}}}],"partialFingerprints":{"codehealthFindingId/v1":"9688d64dcb257e84beb0ed13875d0f037fc4228160c791e932298fce727fd579"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo forever instead of returning to the actual pending action. \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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":2537}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e66d3d71420793a2080b91c90cdaf3b5d203c834f894df14e2021a89315b7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo staleness: when the session todo still has unchecked \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":"Packages/OsaurusCore/Services/Chat/AgentToolLoop.swift"},"region":{"startLine":3568}}}],"partialFingerprints":{"codehealthFindingId/v1":"53399978313a839da4569be4cd65e25c5314c8afa11a0978f35638956608f417"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// (todo banner, completion banner, clarify overlay) rather than \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":"Packages/OsaurusCore/Models/Chat/ContentBlock.swift"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"168c9307760b3a9c17016df33d6f7e966ee234f0a952f642f134809609ffacd2"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060getProcessForPID\u0060 spells \u0060PID\u0060 where 18 names in the project spell it \u0060Pid\u0060: 18 of 20 names in project repository spell the token \u0060Pid\u0060 (18 of 20; unit: names in project repository containing \u0060Pid\u0060). Peers: AccessibilityManager.selfPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:224); AccessibilityManager.mostRecentPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:506); Accessibility.swift.listWindowsForPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:1651); Transports.postToPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:170); ScreenshotController.ownerPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift:358). Rename to \u0060getProcessForPid\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/ComputerUse/Driver/Mac/SkyLightBridge.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7028f37d3a318b42c1f32b1a305a5a48995330ee5355ad34ea4433e23bf77a1"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060InputJsonDelta\u0060 spells \u0060Json\u0060 where 468 names in the project spell it \u0060JSON\u0060: 468 of 476 names in project repository spell the token \u0060JSON\u0060 (468 of 476; unit: names in project repository containing \u0060JSON\u0060). Peers: MailSendApproval.sends(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:307); MailComposeTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:316); MailReplyTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:320); AppleToolBase.execute(argumentsJSON) (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:159); repository.AppleJSON (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:325). Rename to \u0060InputJSONDelta\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4ef76ce9b60a34a8234698a53afff0d170485d50a8001cda850026b3f61b07"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060partialJson\u0060 spells \u0060Json\u0060 where 468 names in the project spell it \u0060JSON\u0060: 468 of 476 names in project repository spell the token \u0060JSON\u0060 (468 of 476; unit: names in project repository containing \u0060JSON\u0060). Peers: MailSendApproval.sends(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:307); MailComposeTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:316); MailReplyTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:320); AppleToolBase.execute(argumentsJSON) (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:159); repository.AppleJSON (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:325). Rename to \u0060partialJSON\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"878a071875f19f5eb9e2a5eb6a161742c5762fbfe00fedb862b3b715dc7239cc"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060partialJson\u0060 spells \u0060Json\u0060 where 468 names in the project spell it \u0060JSON\u0060: 468 of 476 names in project repository spell the token \u0060JSON\u0060 (468 of 476; unit: names in project repository containing \u0060JSON\u0060). Peers: MailSendApproval.sends(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:307); MailComposeTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:316); MailReplyTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:320); AppleToolBase.execute(argumentsJSON) (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:159); repository.AppleJSON (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:325). Rename to \u0060partialJSON\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/AnthropicAPI.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eae344ffcec49ba61b655d84cd80cb8a36ee5fe9c965b2f82f2909d2d714b60"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060responseJsonSchema\u0060 spells \u0060Json\u0060 where 468 names in the project spell it \u0060JSON\u0060: 468 of 476 names in project repository spell the token \u0060JSON\u0060 (468 of 476; unit: names in project repository containing \u0060JSON\u0060). Peers: MailSendApproval.sends(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:307); MailComposeTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:316); MailReplyTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:320); AppleToolBase.execute(argumentsJSON) (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:159); repository.AppleJSON (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:325). Rename to \u0060responseJSONSchema\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/GeminiAPI.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7adc8ca966c06afc526474f7e1cbed7574505752fe65199461e39cb11ba945"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060ImageUrlContent\u0060 spells \u0060Url\u0060 where 647 names in the project spell it \u0060URL\u0060: 647 of 654 names in project repository spell the token \u0060URL\u0060 (647 of 654; unit: names in project repository containing \u0060URL\u0060). Peers: osaurusApp.openURL (App/osaurus/osaurusApp.swift:502); OsaurusLocalClient.resolveBaseURL (Packages/OsaurusCore/AppIntents/OsaurusLocalClient.swift:198); AppleAppsConfigurationStore.fileURL (Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:89); CalendarEventInfo.openURL (Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:73); ContactInfo.openURL (Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift:49). Rename to \u0060ImageURLContent\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5d7bdcd67288a61f1267ef3066e227ddccab512b5d263f7b3848a920e033f9"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060VideoUrlContent\u0060 spells \u0060Url\u0060 where 647 names in the project spell it \u0060URL\u0060: 647 of 654 names in project repository spell the token \u0060URL\u0060 (647 of 654; unit: names in project repository containing \u0060URL\u0060). Peers: osaurusApp.openURL (App/osaurus/osaurusApp.swift:502); OsaurusLocalClient.resolveBaseURL (Packages/OsaurusCore/AppIntents/OsaurusLocalClient.swift:198); AppleAppsConfigurationStore.fileURL (Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:89); CalendarEventInfo.openURL (Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:73); ContactInfo.openURL (Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift:49). Rename to \u0060VideoURLContent\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/OpenAIAPI.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"dead2b1df6fe676926e73effb45ecf43a2f831d97bac653f0c51b03536d68a5c"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060imageUrl\u0060 spells \u0060Url\u0060 where 647 names in the project spell it \u0060URL\u0060: 647 of 654 names in project repository spell the token \u0060URL\u0060 (647 of 654; unit: names in project repository containing \u0060URL\u0060). Peers: osaurusApp.openURL (App/osaurus/osaurusApp.swift:502); OsaurusLocalClient.resolveBaseURL (Packages/OsaurusCore/AppIntents/OsaurusLocalClient.swift:198); AppleAppsConfigurationStore.fileURL (Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:89); CalendarEventInfo.openURL (Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:73); ContactInfo.openURL (Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift:49). Rename to \u0060imageURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/API/OpenResponsesAPI.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11081d8aa2ad3e4e837912421b91c38c9815236ce104e498869f1c966ad457e"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060chatJsonNeedsLegacyMigration\u0060 spells \u0060Json\u0060 where 468 names in the project spell it \u0060JSON\u0060: 468 of 476 names in project repository spell the token \u0060JSON\u0060 (468 of 476; unit: names in project repository containing \u0060JSON\u0060). Peers: MailSendApproval.sends(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:307); MailComposeTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:316); MailReplyTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:320); AppleToolBase.execute(argumentsJSON) (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:159); repository.AppleJSON (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:325). Rename to \u0060chatJSONNeedsLegacyMigration\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/AppConfiguration.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e369f6f1bc1faf96906abe6c5747439ba3e8c6d8c4ede1b91b0329a74a654ae"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060kgPIN\u0060 spells \u0060PIN\u0060 where 13 names in the project spell it \u0060Pin\u0060: 13 of 14 names in project repository spell the token \u0060Pin\u0060 (13 of 14; unit: names in project repository containing \u0060Pin\u0060). Peers: IMessageRuntimeAssets.verifyExecutableCandidates(executablePin) (Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:266); IMessageRuntimeAssets.verifyBridgeDylib(dylibPin) (Packages/OsaurusCore/Services/IMessage/IMessageRuntimeAssets.swift:319); WhatsAppRuntimeAssets.verifyExecutableCandidates(executablePin) (Packages/OsaurusCore/Services/WhatsApp/WhatsAppRuntimeAssets.swift:161); InlineTodoBlock.togglePin (Packages/OsaurusCore/Views/Chat/AgentInlineBlocks.swift:246); SessionRow.onTogglePin (Packages/OsaurusCore/Views/Chat/ChatSessionSidebar.swift:2950). Rename to \u0060kgPin\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyRulePresets\u002BAsiaPacific.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"586e00ccfacc3e603a658ea68b170eea3286c8c3e3781b413dfac4d8b3c881a5"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060mtimeNs\u0060 spells \u0060Ns\u0060 where 142 names in the project spell it \u0060NS\u0060: 142 of 143 names in project repository spell the token \u0060NS\u0060 (142 of 143; unit: names in project repository containing \u0060NS\u0060). Peers: CatalogBaseMaterial.makeNSView (Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:257); CatalogBaseMaterial.updateNSView (Packages/OsaurusCore/DevelopmentDesign/CatalogInspector.swift:258); CatalogNativeArtifactPreview.makeNSView (Packages/OsaurusCore/DevelopmentDesign/CatalogNativePreview.swift:96); CatalogNativeArtifactPreview.updateNSView (Packages/OsaurusCore/DevelopmentDesign/CatalogNativePreview.swift:97); InspectorNativeActivity.makeNSView (Packages/OsaurusCore/DevelopmentDesign/InspectorActivityVerification.swift:61). Rename to \u0060mtimeNS\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4805460841a3c47bc08fa9881571abdb7539ea3d72beb8b3f9ee15d9a0badb8"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060mcpJsonPath\u0060 spells \u0060Json\u0060 where 468 names in the project spell it \u0060JSON\u0060: 468 of 476 names in project repository spell the token \u0060JSON\u0060 (468 of 476; unit: names in project repository containing \u0060JSON\u0060). Peers: MailSendApproval.sends(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:307); MailComposeTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:316); MailReplyTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:320); AppleToolBase.execute(argumentsJSON) (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:159); repository.AppleJSON (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:325). Rename to \u0060mcpJSONPath\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed2ab83e47473521c36c21c2aa0167f6608388ed243a18f6989b506fea11949"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060mcpJsonPath\u0060 spells \u0060Json\u0060 where 468 names in the project spell it \u0060JSON\u0060: 468 of 476 names in project repository spell the token \u0060JSON\u0060 (468 of 476; unit: names in project repository containing \u0060JSON\u0060). Peers: MailSendApproval.sends(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:307); MailComposeTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:316); MailReplyTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:320); AppleToolBase.execute(argumentsJSON) (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:159); repository.AppleJSON (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:325). Rename to \u0060mcpJSONPath\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"655bdec0b0aa63900d217ee124ba494f2ae9dc00e21d2f99e9093103bd8a9128"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060materializeMediaDataUrl\u0060 spells \u0060Url\u0060 where 647 names in the project spell it \u0060URL\u0060: 647 of 654 names in project repository spell the token \u0060URL\u0060 (647 of 654; unit: names in project repository containing \u0060URL\u0060). Peers: osaurusApp.openURL (App/osaurus/osaurusApp.swift:502); OsaurusLocalClient.resolveBaseURL (Packages/OsaurusCore/AppIntents/OsaurusLocalClient.swift:198); AppleAppsConfigurationStore.fileURL (Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:89); CalendarEventInfo.openURL (Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:73); ContactInfo.openURL (Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift:49). Rename to \u0060materializeMediaDataURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":7941}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde36252edb4e38df88d7e1b1d0be26f287c9477187ed0bff8fae5b03782f5aa"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060materializeMediaDataUrlResult\u0060 spells \u0060Url\u0060 where 647 names in the project spell it \u0060URL\u0060: 647 of 654 names in project repository spell the token \u0060URL\u0060 (647 of 654; unit: names in project repository containing \u0060URL\u0060). Peers: osaurusApp.openURL (App/osaurus/osaurusApp.swift:502); OsaurusLocalClient.resolveBaseURL (Packages/OsaurusCore/AppIntents/OsaurusLocalClient.swift:198); AppleAppsConfigurationStore.fileURL (Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:89); CalendarEventInfo.openURL (Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:73); ContactInfo.openURL (Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift:49). Rename to \u0060materializeMediaDataURLResult\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":7953}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a3a44928556a8fe4401fefe82ae0a07e12f7238458f92a543f13213655c748"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060fromImageUrl\u0060 spells \u0060Url\u0060 where 647 names in the project spell it \u0060URL\u0060: 647 of 654 names in project repository spell the token \u0060URL\u0060 (647 of 654; unit: names in project repository containing \u0060URL\u0060). Peers: osaurusApp.openURL (App/osaurus/osaurusApp.swift:502); OsaurusLocalClient.resolveBaseURL (Packages/OsaurusCore/AppIntents/OsaurusLocalClient.swift:198); AppleAppsConfigurationStore.fileURL (Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:89); CalendarEventInfo.openURL (Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:73); ContactInfo.openURL (Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift:49). Rename to \u0060fromImageURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Provider/RemoteProviderService.swift"},"region":{"startLine":4494}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4d8829c4a1343a11df5be10ce65260765b255a428d73b0a094b97a135f250b"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060currentPID\u0060 spells \u0060PID\u0060 where 18 names in the project spell it \u0060Pid\u0060: 18 of 20 names in project repository spell the token \u0060Pid\u0060 (18 of 20; unit: names in project repository containing \u0060Pid\u0060). Peers: AccessibilityManager.selfPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:224); AccessibilityManager.mostRecentPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:506); Accessibility.swift.listWindowsForPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift:1651); Transports.postToPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/BackgroundDriver.swift:170); ScreenshotController.ownerPid (Packages/OsaurusCore/ComputerUse/Driver/Mac/Screenshot.swift:358). Rename to \u0060currentPid\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sandbox/SandboxManager.swift"},"region":{"startLine":4769}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e47ba2b0decd7ba257e0ce49ffe631015cb73adc02b270f130a36452a8ce53b"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060mcpJson\u0060 spells \u0060Json\u0060 where 468 names in the project spell it \u0060JSON\u0060: 468 of 476 names in project repository spell the token \u0060JSON\u0060 (468 of 476; unit: names in project repository containing \u0060JSON\u0060). Peers: MailSendApproval.sends(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:307); MailComposeTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:316); MailReplyTool.requiresApprovalEveryCall(argumentsJSON) (Packages/OsaurusCore/AppleApps/Mail/MailTools.swift:320); AppleToolBase.execute(argumentsJSON) (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:159); repository.AppleJSON (Packages/OsaurusCore/AppleApps/Support/AppleToolBase.swift:325). Rename to \u0060mcpJSON\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"1203e7b59ef9fe51e34fb9906e864a0974b0ce2c9e27c7744dc1298300aba93e"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060licenseUrl\u0060 spells \u0060Url\u0060 where 647 names in the project spell it \u0060URL\u0060: 647 of 654 names in project repository spell the token \u0060URL\u0060 (647 of 654; unit: names in project repository containing \u0060URL\u0060). Peers: osaurusApp.openURL (App/osaurus/osaurusApp.swift:502); OsaurusLocalClient.resolveBaseURL (Packages/OsaurusCore/AppIntents/OsaurusLocalClient.swift:198); AppleAppsConfigurationStore.fileURL (Packages/OsaurusCore/AppleApps/AppleAppsPluginMigration.swift:89); CalendarEventInfo.openURL (Packages/OsaurusCore/AppleApps/Calendar/CalendarService.swift:73); ContactInfo.openURL (Packages/OsaurusCore/AppleApps/Contacts/ContactsService.swift:49). Rename to \u0060licenseURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Management/AcknowledgementsView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7464ab5d799a1218029a8ed3ae3cfb57d98e5878ac1f023f68c902d32d98a6"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060isDirInPATH\u0060 spells \u0060PATH\u0060 where 622 names in the project spell it \u0060Path\u0060: 622 of 623 names in project repository spell the token \u0060Path\u0060 (622 of 623; unit: names in project repository containing \u0060Path\u0060). Peers: MailMessageSummary.mailboxPath (Packages/OsaurusCore/AppleApps/Mail/MailService.swift:50); MailMessageContent.mailboxPath (Packages/OsaurusCore/AppleApps/Mail/MailService.swift:71); MailQuery.mailboxPath (Packages/OsaurusCore/AppleApps/Mail/MailService.swift:77); MailSearchQuery.mailboxPath (Packages/OsaurusCore/AppleApps/Mail/MailService.swift:89); MailServicing.read(mailboxPath) (Packages/OsaurusCore/AppleApps/Mail/MailService.swift:112). Rename to \u0060isDirInPath\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Settings/CommandLineToolSection.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"48813231f65b272bb3e20f17f8bb2f3e7d5ee72754b3c95230787cc9924de4d1"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060caseID\u0060 spells \u0060ID\u0060 where 134 names in the project spell it \u0060Id\u0060: 134 of 135 names in project Packages~OsaurusEvals~OsaurusEvalsCLI spell the token \u0060Id\u0060 (134 of 135; unit: names in project Packages~OsaurusEvals~OsaurusEvalsCLI containing \u0060Id\u0060). Peers: OsaurusEvalsCLI.runFinalistLane(censusModelId) (Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/ContextOptimizeCLI.swift:279); OsaurusEvalsCLI.runMergedReport(censusModelId) (Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/ContextOptimizeCLI.swift:338); OsaurusEvalsCLI.runArguments(modelId) (Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift:633); AgentLoopRegressionCaseSnapshot.modelId (Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:145); AgentLoopRegressionLabSummary.baselineModelId (Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift:228). Rename to \u0060caseId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalSuite.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab10629ebc564da42cc7600a3a67b029869b58a319c20f64bfbe358038a7dea"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 3 of 9 project(s) overshoot their size bounds, lowering Project Cohesion to 4.3/10. The most over is \u0060Packages/OsaurusCore\u0060 (776133 LoC, 7479 module-visible types across 212 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":"739f1bc35b08bd038ec32eaa8bae676b365f74c080b11c8e5f806e29ab054283"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1b05ce23ec4284c0004736e4ff9fa8e72342a55f990ebe04165aa539e91e69f0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ed391f6f38f837a9886156bb74a9bdf2020c54c0959535add12e935d2c7e22f6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a5d05371427edd614582615af923206a748fa869cba666c0dc2a4541da173863"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f52ea3cebc710385b4826b62cccb09c8675e6ac6afb54169daacb28551a83c35"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9b7c4449153045838b977eb10e0d1f68be88363f0e926d8d6cf2f8f603daa4a9"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3a5737ae7e7446dea4a48052e59582403bd38121c6a774fffc42dcc3ae3ad39c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3c9fd4ea06bcceb044a464dce41d93942dd28c4ab41171803f26244e4baa7f3e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"824faed765fd9888b7ff606adbb294973e86219a274e984d838682214869dec7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c0756e089cee317aa1e35946dcf924bda6da7ee3b954bbe4f0c90bf5871aa575"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8bb9e9f3af445ae7270a16b65551d560a837f0798c9dd39e53c90e440e940932"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f095d9f3b26da7f2d4354b0074b3a2a1177b952d287b8e0059c979661a4ae2c1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"21c258eb8a7925ddeecd32260f599cd550eedf2255d25d66fd2703011b9368a8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5e1bcc9a25353e9708160d566ecaf31e14e6d2c2b84f03eebe92b99016f123bd"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e9482d4ab658559f0f1ccb63ea30f37e27e33f22c155c232eedfbd658f13fcf8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"171a843b995488a7ce98a44d5a4aece9a4d84bbbb0d21a23c3d7a572cd2e4b16"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1103453254d09c31afef7b8f303a54e83aa289bfdf414cb1758fd1b2445055bd"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"be4cd49dfc1bda5f2c84d8c2137364de4c789f47705c57b7dd1b2dd1c7d991d8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"dec26e509af7181a83c02cfd2e4954b86e8147e01cc86226288fb347076c6ae5"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"25172a33619aa78ff03af4998b7ec315cf43b3ad9588a39b2339c93e9aea0c72"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8a20921ed79e96238aeeb985e48344c15eb08d347b245044f3fcc9371f4c48ed"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b6789bef239d5f8ce9be761e3fbd7370c3ca72958472813fc2f42ab34479d3a0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"bc4cf83c7d2feed7b1689b586091c8c8de79e08a713609eeb2b956ee74cf3e0c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f450732d5289c331a30ad918cbc4bdbf574a73878cf19596f3eb6b7cf4c1fb5e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"80528912bcdddddee3ef954fe223d080aaacb210790c963c9fefc2591e3434f4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"851c72a33a81663406c93ff4eafeed2eaca03d79c1d44ae385fdbb27eab03ebd"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"125876d98c1037ff514f614ffca73488f8e925f16dbfff57a97159e64100bcc4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9f831cf41f24829c7052dd4cb037b9ec6e63174e5a96e0ac94d46b2ce72b157e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a615852b2d268ad379acac12827ad932cdb4129ea84c902eabc1353a28b62901"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"76e62b1671298323abb0ffdb08042f7788e61e3e8729674e3e1583812c566cff"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e2a5c30bd44ffeb17bd37304e65d65a076816976dc10aea4656b401e93fc2b03"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"19dcd3ddf201981b4ebc22c784159d99f40fb680ef83e97c476ac89d1359df68"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"0bb58dc8f5d4f1622ad5f0483edb99b35c6abc5bd0a788e7799b8bc5895ec0d0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a6023de582320c005d0684b8e526fb57ebe4c31bf8aee1dcf51c44609fd8b93a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"91a029a2d9f61f8b9cd86a03aa56a7bbd90f55bc3d7d3bf43c63a0e44057e2fd"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ad1b43bb6ef3a6ec5b6291de05478a74f2246d9dac968ebf74ac1e8eaba75b8b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"6efe746093d643391bb3089726f909a46e563e671ae766249a60585aefcfb8eb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3cebd2e2a22a18af13c5fe520f33c862f2ab4f055f52ab6b2337d26e8746408d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9ef432de16d12060cdbbc12eaaa9d0b27c04f89384854f81f196385597919a4a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d585b110ceaf2516bbd62e6291a1c8e34c495ffd6ba2cb0e4a58c2d751530a50"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5911f0dc310e96131b5f3e530e2bc1c4e818b632bcad47856aa3e0a0b53ab993"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9bfa39c7c71cca34882b9a88100ba128983c21e01f477c542f4e90bbd0e9d288"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"88ab037e05b3b0c004445e7cd4607f62dc12fcfc35a0808259248d234b336fa3"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5a57cd7234a70f85498e53a986839a6d795f20ee5905d33d44444337e423ed0f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"930f1f40c54bc1808b12bc9dc2308d78d8428f653cb7edc062f7b9c794ecf780"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ec2c938acb61981363db54141ce7f5a9bb25aed82bbc652f13d89d427b077996"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"abb34376c4f459f718adc1b1919313dbe08033d9ba9f6e6bf1a24f21c691ee58"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2655514ecdfad66d571b21c48035d56a820526cf9e346fa39303e879efb02bdc"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7dce6c61c687555252a5907a29b5bc5a4beec2284be34eed44bd89c8c3226958"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e79875c52e0368bb8cffa4d8d64b6345c00676c5b959913cdb5ba5e03276ad4d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8408c6b2d15915026e84b82f3c77b94b91424a211390dcd71bd6e3e52da7585a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e57c43eb797936d4fe110391daa8ea318e5cf63080dddfe9eb5fb5fdbec65cd5"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3b9d5695c640808b5f0cdee3ce9a8c710ea3fad36e777c4d79e26f7eba496fce"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a08847336fa53fd772a6ad9d56609c14ef50a52bfe18b6941bf5bebb4e93b2b0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e97efe28e207e1256d27be9ca1149831876df8244dc651b811abc7595e5f8d3a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"864ce2b3c35e8394320b5548ff6296ee446e43773b9fadc3cddc1874e82f20d8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"968a3146c6a9cffe975f66bb7fb7ef279fe394a8381c2b2b77a0a531a73acf1f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3379cfb06f13bc94ed227673c1535412c94771fe579971bc33ebb42024922a8b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"4d7a6f2e3e5363d0097e4afd255a2e953a92bdee4360835e0c46e55c073b4267"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a1d9ea1820ed003596a458a349098940e793ea93d26e989b1c94a2ace10fd5b2"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"725121c90e1eeaad89453383f758280201e895503d6663038e078a67c50ea01b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e6dfdcc83c462aed113f04ef5aab383e17948d258fbd801b1be9f3b3d7eaaea1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"11a5225c7076112beba1780450dac541a4bd6a85a2e6b091c22175b32c80faf6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8f3eca541b2bd5ee2cd41d8c94c07f6a3b6d4caaddd3cb3306854e04d03eddbf"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c0f12750fa46e29e250f48150cd7a2a76dc539a1e871c41542164930d0cc31c1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"80196004d93e1e69235ec200924744fe1c382c493786a8f2f7fb20e9a59214b2"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c6da0bc04e2f92384a0a3dd86cd74e7f5ffbf0b3d60a554048c1c9499b7b2688"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2d661a078b6caf8506c3a3acab8e1ba2fc1614630fe3991a0c1a70a3bbf6f58e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"554a76b1dcf8abce6f8a94c87d6c1ae514b52262dae614f356afff49a842de32"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7f9a1145a45d3fa56937faaf999b3cb4328f46ceb68b2bc382fe5f0c7403c50a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f446a0acf4ce591fa413ab7d4d2a6b49fbec9064db6e2fbd0136eb542c984423"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d1e881128ea06707902067a354554ec39b41dc18d3137f9ce0f70044396747c0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"eca6e7f78e416627b570f339965ed520ea05c9624a2163127cb1f5164aef2e15"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8f3d3ec14f8f0ceb968d94618a1dfc85f4524bf69cd85f7ec62c0380b772d144"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2d0dfba1a65ef6cd9490b187830b81636c0350de4a6d5f9fce978488f0d4df29"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b5fa997a720b239b29b8e960ef251a3a4d4d404caecca19776ea4b18ec84a55d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"71ff7b0a5fc8cf296e6ea7c0cd97baafac9d0b7362dc7b21599c3b9927dcdab4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"458d4de137c0958cc011a9ed7bb92f9d8a4dcdee2da91e7dd97233405a6199af"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5a8a2107b580461fbbb1dbb1ff02e7f1c2b101ddd2fcc6dc534cdb5657fd2cba"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"0d0fcd27d1c20844b3641ba8d14f05e975ade9a390ce8fe2ad73cce4c9c5c23c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1920c4ca17969b4400bd99f500b8047e29fd131cc70f5814f156f7e9cbf8e106"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ee4ca7a45aaba530e58a6d32a3af7bf25e0142e96d6b6e076b8c23c7592647a7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"030a9ea4f67c971fed552377c198217d40456e4df8efd3a4f54b49bd67548ac1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"698076fe60571052dc51827574a68678965eeb6dc80dbab06fdf6c77819626f0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"82e5cb0c9abf38c2798acbd8184081e5f5cedf6b02841a2f3ad7c2247af1f37e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7a6e4dfa7acccb6115e2f7d80fc4bd5be4210ecd6600d23f396cb245f259ad6d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5b9aa5d3c20503e922ec0c58f198d89929b1aecdbba9e72cfb893eadb2ad5442"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5f72d328cfbb4b093fe70353c9ab96a8c59ef8bb5858e1d8344d7052632900b5"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"fa8f784dc96746dade8c692cdc9d5c7af4f924035bf3f8964ebff3d1ce941aa0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"80fc97cdda06501776cc87e36592f03d19a08f5e01519a9c03e8eeebfbb840bb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"6b4938ae95c09d6f270bcd7d786eb51c7c1ac33964e41ceb45714939b380d2ea"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"cf3fae2d39ba40425da63b2ee529fe3356c13f715e981e1d219f07c1944e425b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8ab89d25c1785d5abecd6ddca0362ed4e4ca4ecad24b6d796262f502cb6ce43e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2098b1bf757781c515694c76e5ce93527287b6ca2c9d415ad6950d760163a89f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"06fed4904be5326f56f3fa61305280d823045778ed53cb67cca9d7d4a841679c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"668dbb3c40b3ec345fbf76d6bb3993308c08d82c14b54bd1b11212fcc22e93af"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"357387a62c45b02470eb5673df31bf4fd380b4e65c5875d80693e4498db816c7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1eda68e41db0daf46054e47e18f0faf505308addbde9a52beb6f399cbc86e756"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"fa60906bd60a93c2b59f3ebcd822c6f96668f954f3150439bdb0f24b965ead43"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"31229916dcf45a9752861b75ca91430144f4fcfd87330838de82f707b60bd95f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d007b0263fcbbed0a9dda26dcfba88b6e28b72b7c3685ac46bc979a3c7713353"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d46c2acf1addc08ea8bd7e10fe1e4d953730c90ccee210edf12aee245df4c0c6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"af5a5366e3eb85e07d73fea848d66810261ee42a7099605589f2b84d385b68d7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"579ccd6a6d033e370deb36420911cb90fef3a34ae0d7a20151c9fb49cd2fa183"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e42b693677c31f9490b6a7cb4fe107f87c4e45a40d6c7149d3fd031e43f18023"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f6d565766d957b4e9748c644d635ab2f99ae12fc3038ba271c9e2129781f59a7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"69ce21abdab30653c9958dd06612e0706bf5352a932cfacf33924deaa08769cb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f34022cb10bb80790a0902bf2f7050c0e1dc80022c9e7998c4a3ea658f5b6dbd"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f6c66d388d0672b4c9228d83cfcb9477833f676233f465b8fa07be63ed50950e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f67eaf208dafb00622edece49467bd462f758f9eeefc6e39d5a675b8f2f94a82"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7da5f09a0ec2894dd7aafc64ce994af5f13ea4a7a866ad83df2b664111638696"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"620563f1d7960a4814c13fcbc17ed667cd8c7f3a50fe2fd87654ca7c9c3d9972"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c9914ad3ff3d179b794d99e97c7d7f47c84210d316a381e52b5dca9082a55f62"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f3a563a85b6c525a15cef10210f2b8875773aed34a553a63d4cea96d6c9f22dd"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"de082c333124ed2e1add2a1535e48ca43d257826c3e2ce2c59bdb3ba6a19e60d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"36cd32feb42e39e28e1d48d8d0a7eeae170f23bcb59104e02972413d47f3fd4c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"237f87794120a2f55d8f5bf824154c8ae107d7b79902e74ec11b7c583becfd45"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8cd2f090e87c339213a1eb3c4ea2ef35ab4675838c34bd389ef2098fa63e4f2e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"58ae223d34e5e8baa79b2cac1e9b7a13d8a846b81acf4c3339f9ac2899924482"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ce3d48778a7e69dc2d8964066759690835b5069fb49e9d6b711d3ce0b6fd73e0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9f04903f8aec8cc0ef5e69af6e99b53eff4714315b5dd9c4023b3dd35beb76b9"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5176392228d17f620fa4f2cf30d02183a0042c9f712672a312205c5b78191939"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a99387c75026e9efd2d29fb124b98ee35bdbbaddcc6d7843099ad6da17408d33"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"98233283fe979ac81bd30a8fccbf0f020bdfe8d948f83f025187e0dfe530b5b7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"fd0b7954d2fd7de1c6462852601fefbde576865b6b79062a4b0683a7c0eedd4f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d884edff6d67804b907a24f6b3bb340f8d5ce24c206801f759b8f15485ea46b6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b43693db26d2500e626f75d1b0352ccbf0bef31cb9ef505525243e6ccc9d14e0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b53da6aa28a275c43fecc6489cffb5190756ec188426a33818b8a7c478aae6ce"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"06a991638b629bf8345dc319cf028c5e653a2eecb96c3ecfae17f02640210770"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"89d75f51eab723b8f7cf0ba10f060b0214138cb95fa50266d5cdc7c50567ca72"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"294dcb4bbb597d04f71e98d30f66efebaad674b670149f583ed7d2d1dfa02799"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e29c73dfd65e5ce4d79ade6b03a669eda9b5b6439ee6e6e0ce7ad750358606d8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"31563b148fea357baab3fc1eeaf48c1a2057552cd299ef58f5cdb2d56aa1a3d0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"73c4e9654463f4bc98ea7692aaf4cd2f266565c1a35f280cf8369529f60dabbb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ae057b9266e9ca20705cf33ea3d5a259bf8c45ee78fe7518ba13a652bdca738f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3813088b24601a3e3167553ea55a1c057b0afc22c65edf6d5598ca50a49ba9cb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"31585407facb1ef47369ceab311854b4574ed0e780770f22881b8832a6ca42aa"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"07c61acddd57507700b36689b7a0a318640c9972a37e48435ee2ba6664c09925"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2aa66e3c495e84a2d5a2aacb53b6aad1f98b3e7b1a778568cf3c84efdbf8a557"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ee49400479ae1463566a8a6e61eaa098f4fbf8d0f1e619b2a1dff62c8391b65d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e67a63d12020c3034cd87b6793ebb0fc738d798df8c46b452f02db28fad7b8c3"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ec6af73712a92a15e5dd5a0de06ff31f906241bcd8e84be6b8ded8d7631ebb40"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9b2ae5f4792fafcd9c5959569184e3142f782aefc5048997386f135fc014c7c1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7fb3a868365538db65208d7592f3342b519bed83414bd8316e4f2c08c7cd75c2"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"dcc4e1a707c7360ad97440cce5a8750c7ec63740796a99f21743d53f514b78b0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3a0c3c75df61588c93769685cde9bd063cf537ad8a920bffe20b254cf431a555"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1b0f9b594beb515773e2dda34d675e57de60ec7e7d80e6e2af394d72a2bd8329"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b43432b30aaf44782ef176e6cf56e372bd26563f5e22bc48727d9d76ba0f49c7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1691fa1670e9a5e695770c757bf00bf336b7132bef04de47b7244256e55aebaf"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"6306f8f70599643fe2411574997ff99874b15f01db07150f790590a7492f6d6c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5b8a3f9259739cfd20753281ed2dd774939b729b92b84fd7a72e008b37ce9c5f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ff2dee026509608cb6e8190d416ed520bd4aab85404f3027b5cc30b3a00c578c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"38f46cb549b1f5a73cd1d4ac95fe9d55d7d3ac7066f33c6ca3714c24ef009ff6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ec1b37979df62aec86a43fbff2e5332d66277258e9701411d4073d31e458f5aa"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a5383ded62799b694fb23fc439335413bf400b88a9bdfe1dc69449eb6c9540c1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"0bcfbf6c50723d8fc72b95d50585bfb023f695f6ce34616315da8cdfdaab534c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d03366b00c7f1ad597ee3e4924fc6e9f0e01c627fb421dcd8621e8bcde6f12a9"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5f49f6f9ce53cfe5df9ef51676f90b3e2382b91b0e89c51b3529b361efa633a5"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d3a3f07cc8973b54464fb3cd99b7d2ef197d4ad21ddeaa9d646017a33a845555"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5486c1c76df216d7353aa015c21ab980b18a8c9a10892fa92929811b1b93f61e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e4e906f277dadff81e522b5def6c0ce9f07e60f4e54738bffad5ff417d2a5ba8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"6fd7f80cf9dbd445ca21fcb325e016d5ac94acbb0ca42365a4b328dc0e76934d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"93126363ac14f5d783c4ee0e0f6516c8caabc60321499c7eee32924c7d7f77c1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9ee90e9684fd7015b94b737bbe50849d152a988c66e720f7fa51db9797409397"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f543dd7f7062bfe109ec20ffd3bf96a58d67a424ec2a0b428c6e2e4dc06a5730"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"49b9f4bc9615b9f54db3bfb1d965ed81f1bdf349c45b12b49dfa3ec146b63221"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"bc4deed707c5e330862a70730cb765896719d520a45fb3b95dfe047df36470e4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"570329f1618381be3d59176afa2202f3cfa92c911f3b32b2b97a505591918203"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b52c6e6fdcbf6707903bc11ced0149b67424c67bb7b94f03625e2677c2a5928a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b64fb5c635df037b0b2c42320f3b1f3e7fe013105f4a90f58714450ba5d841bb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"70bbd47f0dbeb16ab76b35b2598c590aad9e71f2242b709acfefa2d01a023f63"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7188737cc012699204b02c7c2a02329bfc68f951936a391388a64a572155acb4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9b0b6a4eb9befb7a517b212e00dcf0b7c3df17429bc2cc86e98a46c69400ed36"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"4e1ec9514d4be5001392dab275b7d705a207a0ecb33bbb60791b387ea71b96df"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e9abdd5df22056b18ee6abb5d81a4d1967d5ff8ed0047be99db441941d2de28b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"6070e34f688b5cac9ec72ae10bcd4ef892186fc38615f636a4f7c6bad2a956fb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3b4c55d1b90cc8af521c28e927bfd467e40f599231393ae318d82e7fc330aac8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f150d421c5bcfab633ad600f8a92a3ac2c21bbd9c08b493dd794beb8405a71d7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9ccac5f1ee9edea16c966d286bf591a69ff3c8482dfdd03e4153be7c49bbbe7f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"162f8a27c6f0b1c326017e3e1a100ebacff17522eaa3bc81c74b667eb62c2cd8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"48029c347fbb3e631061e64326850ff26cddb858ea42d68744efb7e7131141cb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e75aa49dcd3aa9ff4e88c0824c8a23edd49e5c0bc6cfe1e5b9c7f1561d949da3"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c5529b070940a2156ca7552a51c4d4b806b8d4e91299e665a0711f23c505cb8c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d37fdfb0ad08922ff3ecffc28aaa47902e831c6c45356494a3fac4d09042920f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7edffb16734ceaed0d5f440d474d24a018b5ba7557a29cb5be79d7dca0599ea0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"fe61cf00b0af89c6529ddddf7644f721cbf2b25fca74fb763ab45a03732bbd6a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3828ae0025829f67a70481041e3eb6eb55511233e915c3a051beca409ccab9e6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"737fa6c256efcf14cf5cc5d88ed70b0b05a834086caf56d525f31e4f600d3381"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"fbd5f6f1af61b1b574340013000b0773b3f2b6b5515ca015a84d7cb23ab878b6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"092f05488340e6de24789b4b39a37cdad5d84091ad9a2bcc90f91c786da16b65"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f33096f037744bf81004fc5247c8fdaaacf219e61dc466aaf633929d42de2bb4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"0871f2fc693761ffdfe5e186579cb9477d1a6dc7204ded0966c10a566ab476b5"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"14f03be71574452217bc60b6ec0a0f67daf6a7504282278227cc8744a70c9d09"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"36f2de6012b1af2ae1fce1dd04f7e03ee669947c1acb076a3b41f46fd7016320"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"34823c43cb57ba7a337eb7bb9f06f3eaacbd5b23de497589104c6b4bf2c17c49"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c86a1533411a1959fa7c6c7e46e416a4d8fd5d108d7ba1bb7e34d856fe85ea46"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f007162f3ffc20ebe917dffa6440ca737fca6b9b27d173139eceaf20110c904f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2ef1a3f4d2510c6268a67f50f794349eca649d22efd4f286753bac644a3755d3"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"154f38d5a9822b94ceda7ff66ea59020c460c302496a10a69db110ad96ecf72f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"672edefd1c20d3f5a89eb39edc2b6547c8b90a9cd61b585a7d346601a8f10fab"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b6f55a2f24ed57f6b298d3b465afcd42aa6e795ed75bab3260a554a850cb76cb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"fbde7ba21b53458c543cd6041c042d85a14b2080b804f91c1fe25ab180c417db"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7fb2e5828d5ab69a16071be8d1a9e05468140b4c75ebcdffe93cfabd5613bfd7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"80dbcabf2acc3bad6a69228b734d76c77c853e77c1e9c32205da86ba3d0787a2"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"51825617e7a9abdf0e5a704329c27e4512654140f56326a318db6b2fedf0da29"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"bdf0f11bd05760236906323c07d4b903165e5049c953132fcc6c6099b4bbfb52"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"140b699b23db64b1970575c3484027f98a7677d02da3928430f6cfd1c7353642"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5ebdec821ae0e800dcedae54a0fd92b28f07f4423ad013aa080b08245945f71c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e3db6aa277331c12d626a95a881ae2b1b5b7f6e52d6900219212f95f3b634936"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"89fd0abed93bc689ee7a74a72cb4e96cd9cc2b820a85e573fb2c59253550fd20"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7444eac2f31072b57eb23bb9915e1cce6b40b15b077bf7409202b3bc546e7e59"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"0ac463bff7fc0dd383e1f6dc2f0f256e4cbe1a475c55d08390ced35cabe9c637"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f2436ee8c2ed4a9561d070a6c883a2823819f56751ded65a7553b87945f38f62"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d93d62e107ad259d8ff64bb98d5954160029bf58ebd42e88341a10c6bc41c5f5"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ed1d04a42b17dee70330c5568b3cf219e16014dcdf9d9f8fc9c37813c56ccfcb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7bed82babf2f225f7f9a329520db1b39085da63b45411bfdc5a039cd3d936996"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1b1a8fa5a3b522b2708ca3402831521cc1361ba692afdc2e28a53f5f1b6c64fa"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e68074156d2252514c77061a871d9882b78c3ba5f14a0e2c883c0d19b7113eca"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3f056e84d5a4640aaaf9c8ab124982425f9e79ccf9522ea996bf85e0b6d58807"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5bdcfe6b23b67543ee2db76546a556b2d6d74b8c173f00530cb555cb105b268b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"11a84a0a21d86ad3ddc0e8ff0e69e594b45ad2b8d775898b7923a5170c0a9c80"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ef1dd738ff4d15025d1a2551488e6a9e15895e6b8252323ec86a877c4774379d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d6d6d0df4d10b502a9dcde663a5129afd6fc5600476abd37eb7844558b443f42"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"daddea50c7d2d486988be57e13c29474f35c7bbfbd7da98de06672ca544bc890"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"0cb9f16e78b373110e88454e206c3bac9be67a407e850ce25562edbe7da63e98"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"bc66bc7fada8ff966fde8d4fc8970c81ac4b067b6f4ab375ce34aac5f72501ba"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"62fbc0ba185c2b56911745cc5745119f4f3d0974e2bb5a166f5be72d886b15de"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"937e8b745ef84bcc5fff025c8a117ae6fdeb55f0e005fbd6c37bb28cf4356298"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"bb94c080993780f24b99e7d9621be46d450add1f74c4452d5e4627c397c4b4ba"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a75b63a8835049dd89ca916e9e42e74e12420cb9a281be9545720a444434c913"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1bebbbba94cb795b2a8940f109fa0a528961d301be1a509f251930b7e6eb6ea8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1a3f060c61bf91e39d4646fbbe965cb1e6439361a910ad06e7923a8f96ef5862"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"59f92492c3e728b2251fb1e097a3f3fa85237c3f69cd46d1c66f385d709bf9e2"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"15bee0a8d3b6c034c6a564a60ef80bc3f87c446c12a37cb4f5e7f89e56e6ecab"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"0cb0c28c54ab2bd333d9cc0d88db053418244c99e079b9b0b653d22aabe3643b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1a4af709d70fce03038825126adf4ccc8f454b1c7fa9aecb8fc154d93fca41ed"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b4b88bccd0fca1b31db40043c92beb5d50da3d9e8af9c69507ea3a12db1145e0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c2d6605d58284a7096c46dfcb135c53ee8a5a244ff536d349e497d945f31c743"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"43a8c6c54bd426301a0d36cab7218593912f07170a97cdfd8ab9a5a167c0a10b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"00e66e5387b20d9afa3da9f5b60106f418ad4add23b2424afb212f4340c1df9b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"83583fd37a549b88ab65d852db7290bcda41e82ecd91013d0109ccfdeade17db"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"55cec59ba516f3ca4e825c1c5c02b5e0fa6f9046024f01494128efbbb040f9e6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"24dc3cc519ac2c8bf93affc5a2705e05cd6f818aeba63aa0a1437ee0e02ba8c7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d88c310742a14b2834f0421ede42be67f685cb97b92a0a431ac3ff7f4dda4103"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d6b7dc0b1af5180ee9a4e6e336163e559dea0beb8333d4fc20f18f10590ed862"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"89c1ea9961456e023c1a10e95a4c7b2bc6281d1ea8315aed6f66bc6e7e70db21"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"405d4e2e66ab4db03ff33b7acbef0e97d47a3ac9ebc4042acf5bec6c3a94eac2"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1d7af24b1227748d6cb5ea38bea693954b8ff768d79663fb1c9744a30c751db1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c8950e88a8d0bc20bf3a869c627a124e3244a8832f4ccef9e125f991e587b731"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a1e7b8a6a86807bfe05fe4d8b75c90c84f0a63f2eddb6455a0afee95e21b3d28"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c3de9b43c0ee5bcd2c455cbd03226fcffe7cb24e2b3275165e6ac4b8d21c1f5f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2071878d6c555fb0ecf94533fdc9b4798f01b25de89047cbcd5128954c3c85e4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b0b3e5f0aacbc0d4307e119baac498cc5a0dbe081bfbde65d4d9f91f67531307"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2317dd198d29136b232ce88635a89c01bf9a6466b0ba7d2d7bf0a4c908a39323"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c8e237a8ddf6b3c19e81fd71ee33c8501a74197545aa64bdcb9a016b56902bc6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7ac3c7679c8441a58bfd6d9dadce65354daf6ecc2605738c2c3275accef4863b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8e65ac07a8b5654ddfbd2846d36b54d2b0ffecc11124045f2ff686966723b17e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"45f6ef1c21fee47e9c0049f2b8cbcc9ec991075efb291b2e04fbb96aa808db03"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9d4bf723ade56ba3990ba1f2ec8d77bdb7cc4a93a10980c3dd18985dccef7b06"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"6769d71509c6739e5e4c0e6b71d7d84cb87514a0172c923fb5f650967c1becd0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"63d8ffadfee617442fc80ab996b5c19cdb318e90fe5914250dce779a60c65dcb"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"836dde747982a579abf9053f50e1cb4882c1e84b409d132b337b8cef36773eb8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"dfef04807c928e68620117f7d94b101ddcfcfcfb3efb28993244b3484dedd186"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"1b0903ac0709984a75a41c3b6042933c5154e346626f1c5c225031d6f61bdf48"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"577c40bcc1c0a016f6267e18be079a26043379e4cf63c595dbf08c678a3f335e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"049ab98c59ae1c529473fcc19d6468c002f63f3980ae4d3cfac82fec063aa6c1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"57372eeebd3e5f79fca03be73f5d0c3ebb8913c0e669c69e1232535eec8b356a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"184ebf3833f6f0536b36ab0f93de14b857f553fc9922905d5387fe8e58eebacf"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"745343b148d8f04ef60499889b3dceef242d8a4eacc9c45a6e7cf3d5111d0613"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"bb95ca5657f0ce7b9f3f22b20fec1a9d28304c9cce25b59d3bdd973f06716344"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"675f586dc8ea61e22ac38154ddca037808ec843e764192d7a6a5d6f2439967b8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"03788e6a581bb3c7a7da6cbdc8bf1d9e27943c1561c3ec297da9d3b787fc044b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3e263eb614c15d42d4c6b0ba2111915a31d0ebc4c9080231701b94cd349009b3"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"936224d99affa1402be4a9a337065750e2afd95cf7b5b4673d79f3c3d5144807"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7042788d05ad184de3db901529d32fe0788c7f7715ddaa87cbbab0e4d2429585"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"bc1cbbc4b1c92889b5c5f1a201dfe97681512cdcfc2cbeda44106ddee9a9b62b"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"6a5bcb64252213bee9d950a4ba27c708ac50cd79fb45decc7f2f5c28846ac15f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3749914ac3485de8d1da67560cdf68ff98712263cc8a2e41ef2069cb1a764339"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"bf48a931823674394cb6fe31be1f5cf4a73aee0adb35a9c2431f83e9f9d79058"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ac64b50837dd772ecb5cf90a8ab188865f4004e7c2b7819626ddc9e0bd43dbd9"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b3d9cb59facdf53be77d771408922ae9ae18518eba483894453ff34893c27293"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7d16476fcd471c6fa0e9f35114df7ab0adb2f9f5d65630bd9a3f324e6580ebe2"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b4e72366f6b63cbca53af00dd78d9d430c02658692492c8a41c31e93bde296cd"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"62317dc326727dd256bb065fa2ea9c7bd2c30b9bce2ea18b6af35665c8330a74"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c12b3d8251221f1d016b8a650b4fe37e28a85a50eaa91f41212a7e5065f5ab59"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"4e26ee457fb72b6d79efdd855f0d7bc9af546b5926186fe02469c110c5b01ae0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"74ae35f27989b3f51f5098045dc6e218ead60f58680b0787c704df11a531ed49"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"375997beed1eb0b2d789ec6fa41830426d4136138f7df8542eb08193a21feaa5"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"019d7e42af547e1b29a0e37369507d32f74c9f674b9bc06e3caefd1aa8a583ea"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"78f5c8bcc4461fa741072e5ad9574ba470908c229e7c99137de53d360c7eb775"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"81e7a34bdc3ce6aed25c8b538aa43bf7c2cd62015f448aa7e72a47e10edaadc4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c06d8e8c1102f2bc728c5b2e6653905b20182a267b2a2db758be50601c457776"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9b2a2f019d99970c34cad479c8e4e270738bbe7b85f209fdc374fd10488b4d0d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"6cd50107cf596a65c336bc799cde93f617d64e139526086887e2b2b272cc92c6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5362e0b4285bd49a41f314c6ee67198fab51810402b14cf34eee833f8f312204"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"649f2fe061ed90fb16393a8c663d935ea0ca3d2753b29c448e68df66d976926e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ad57dc10f8ec2f64f8334aa07a28293b80cc195f8cd5eb921697bea24b2800f3"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"05172ad6caf1b1f0fe8c113853f855620922a7e799b8e28604baffdcd0e6f045"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b54208e508f34bcd13ee86b46fda31b9d0bcdfd7c5027dd0382f710e84b084f5"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ce5d0ff9449a8fae6c945206e2877d464df51e11ce2e391a3eb9bc647d821167"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"fd605522516e945df8eed04d7672adddd16c8aef69ca90524cab29218d3a2dc4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"aceb1b65990005d5b3972504225f8e5f9e5f14e53e9f23eb01a30f3778db35f9"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"4a0f73aff3d606b5646f1bba7e0251069f387d86baf85b3fcdb857feec214419"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"7f0e071b22c49fb7252970273c0438edcc0143e4aaae0e8bf678c2968dbd1936"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8fe75ab132ec0b24d55500fe930ad5cc4774e321db0db3798910b958a55fcbe9"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"caffcc64e617803f341ccfaec977aa72b9efd6569bda152a139ec5fb35746988"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"791f0201e8ffb41a5a79b1ba230d7b2578c4ff4b3772bc9a2e0a373f53e8e4a8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"41ec90de270de1205936b9842463370ad30b8ac05d32285531418173d3347838"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"75dcfcc399d39d9f5352934a38145ec3c66fa54761f0abfd49222c2f8ae6e5f3"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"fe3d71110d2dfed8e69bd13b6f5925f898fcaaa91ab1afda56388a79288e306f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"086d72315f240a529a8ed2e4c1b29f353ee1055186f7327a0117e32d23b55562"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"fa6f64516115e621cea21659cff39e7c6d2d5baf50242485fda0deec9eb7184d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d8153fab6aff56b3fc9ff7ee9c4661e67e50db9177e3959c0e09b3a0a582f651"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"07db49302cbe30decb635795e8e2492be5dfbf7d11a92b66386e816bdcc0058c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"c8497f83da0da91c054ae291f66a2b37f8a790ce2a7593a5508a104c4012b8b4"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"49fad5baa9c9f9eeae3ed9d3cb6e9fde75538c3038043337aa4c1cb9f6ede682"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3a1e90a621a7ec13bb818d2d3ccdf6c9a8199c82b37ac5c1e43c1cc1b6d56609"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f83d64c688ae88ad04d0fb00b8a3df0556af31ec769c44df222b04c6be1ed5ff"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"745f4348306a00c46201b13bd7d8c57100f40069bc38e4dc0f95aca486289f90"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"bbae0a6c9222871b4e447572cb60da0aa02e164ec5e3047d07832bf82796f486"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b345a4868740acec899aafd67f28f17c938c889e86e8557e655b6b53a96916a6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"82ae0af9e6f004545e527b81f3dcc45dd7cfce39ac2208e65e374a8943f26c1f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e850e4092108a6d2bc6461c7b8d159700402bd91778f6d7479d500167b05da78"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e454af3eb9b7f72a81705b7bcb7d39dd13aa31d175220593250d9b1aa04e758c"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f5d1afedb1687f0460c8dd30563b60a39ad46d1f853baccc5c7486457d3f7795"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"f2996a8c59a4aa52d30d7d1ba855978c966d9daf4f20aa47579820b9b414d65f"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"473dec2f9ce02fa08ae4dd678ec3e54e5d6655e1b06b15f14f0ebd6e0813e5a3"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"dbec79abada6069293670cfc9774b5a9481936e1e02ff35ca4e6fc92c6a98843"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"4c47b80f17a2f2aaa5f96c3a6f2d2a5c8bf801bd5d5021ed5e2d9944d4c11b6e"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"8b94e955df3201322ce302ad7e19593eb493a99fca7c9a7ecef6ddf5c5bc36aa"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3c08296bda305e0fea20eb8de3a02ca31bdf84c9eeadd62efd73c6d487def575"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"a4d2400f65d153d845a13b14f445e5b25f0729a0a568dc20eee9a3c085aaa79a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"37fc3b4fbfc58eaf92b29ec83f994dfe802bae01bc2f90bff3fc6ff8f6ceb8d7"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"45c396c3a0abcba7a6d83c6a08c824ff19a85a5a8d9050dcff7658652c55c327"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"b3fec9adfcad93283b086dc4ae6acb4af6a1aa8f7d1a02d317c9850e63ed5fd1"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"9ea882328e77123dd5a1de31ecbdd2f426fa0b2add114bf18c3ece3ce2cd0df6"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2e523e973a1fe648c09843248b564e82e1eaec6dc9650dcf742301884a849376"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"83ee4bcb33ba88cb80658111d0e77fea05064c14ad410060f26f4b1b93592bb2"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2716055ecda38daabeca1943c1e8525487aa38dcb7eb7099925d50d605c4ed89"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"e12537a069910f54ea91ad82d06c630dddc1062b09c123c3c59b51ae2e723dce"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"139c968fa3fcc798a284aff19391537eb31a406339284085e59bed5cfab3b426"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"482e9908cae72563bb595513547b8ebefe0bcb9b92cb7600eb084926bcc5667d"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"d0d2942ff78e42fcc10b993944c9959f3f13b2601fa36ba31b5f95fd0d5b11be"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"28c75618e533dbc6071f4e969e091656fd3e012f405d9e42b3c55b8896298767"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"ce2295f61413c1e0f0d531e7141482c3c78037694ef720b9f060db916134c19a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3366cca575cc09e165cad45d8203d489199c1532ef7c497cb68818ba5dd23482"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"02cb2580e3e732446dc8b0c0453b3d95d3f4b1daf125382095b485d0177f7329"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"259a2659e9e004bc61fb698dc0dde011352308ae5f5699237188b6a5bb5ade25"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"2166dec35243c5f0d109f323a681b3d151d30da704057f7f25fe202984521ac8"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"5fadb91bd31109c4218a9897f9add842f201de71a2c260994be6f8c4769e963a"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"3b59a0d59bd12e0c50cd3c70ac9f5919c67937e5cba8a98feb4fb28d56325bd0"},"properties":{"commitSha":"15d4089fe83f52610e5414bea7388c87c4927da5"}},{"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":"0a1910b1ceae311f3875945959c6df87a5190fea1d5f2479d738d77c97b097cc"},"properties":{"commitSha":"fa47416a8df879ba2fa3a6e7e51794fcb41b180b"}},{"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":"b2ffac6027788da990d2932fe5982ac9538da798f0a239c4b7cabe35160288f2"},"properties":{"commitSha":"409ca03d6fe428073ab7795a155735a7d2503520"}},{"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":"2421818e2cb4d8cbef1db088513638174124bf518433abb3b9c4859b2132fc9b"},"properties":{"commitSha":"409ca03d6fe428073ab7795a155735a7d2503520"}},{"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":"edbc273334d83e1b0877c7db5aceeeca51ae6820b2dc23fabde0c19f74ba157a"},"properties":{"commitSha":"a609acdb558fbba985782b3b598fd340ad665d4e"}},{"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":"76309b48d1551d2653af4912ac475b1f59ffda984fded34612e0c321ee3ef93a"},"taxa":[{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9196c169725b33c88ac57737bbfe8ae7416abb814d03761ca5d4f16e666788e0"},"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":"bc2d1b827b28177ac968bcb857eea0503634cf83ba7f4eb62f29efa9ed70a144"},"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":"8d815fb3d1d8622dd70397aa1cec08a3940abe9e5737e0e9207d2eeffd79fabf"},"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":"d5feed3f24857580a02282afd7eb859e5c2c990687beb879685c53039b927e85"},"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":"ce16063237359f153528b270e27e55bbeae9b7d509d9e3a5a9afc5eb71db89e8"},"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":"e162f04bc02f69e61738ea294ff7e49be59d2aa13bd91b188137b50a784689ea"},"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":"0c266985efcdf76bb9a6e09ca5c4f3cdeb1c939f73a6dba00b98c26966fb9070"},"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":"43c6e75421c602a078582dc49f256e0913ac15ce808c364f3d9bae855357c076"},"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":"f4badf048676dc41dbc2b58683b251a65d0fc5a58a39b8652f7aa8c41a86c410"},"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":"ed05ec758e255902b457d1d0035446c29194f4bfe031235b7cffa9ba300f3eee"},"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":"2b50d6185f231a28fa9959e31861b0be76667502f1a2f794cc5c60d4fa797cb7"},"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":"703b990f6d9a60db46de372b4bc3713bc769740b61be7dfed2b23b523664ac12"},"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":"3c0a8f3d2fb4ea9e982c77834835d706f804000a24385f722fba66f456b5b2e1"},"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":"ccbfb6a1039aecda13be04d02000308edbd0b6429bec6db4839aa907d9072c5c"},"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":"3cced85c13fe58844971496fb4a9e0b3f7c8dbbad7164a570963db434248a800"},"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":"c8381cdd9539330ccdf5f2819fb2f0ec8e0d20d645b1467a3e5e48700a37b69b"},"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":"ebac61d292e4757946ff83f15293e2fa751db1ae0044345ec1ca160a7804b230"},"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":"e6942333a97986851f3511526f60be94a1ee8ecf15ea9834b7d0d1506bf672a4"},"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":"4f26088914371cee9ec2bdd0bc881fcf0e645bcc2c3e901baa1fb1830ea51332"},"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":"bc26593caf509b487cb3dff9d1a587737a02c72fc5e13e59c1a151f7d6412ad4"},"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":"eaf76f8bdc068161462a4940f91721920400e27b484a881d6517a7c5e58cb735"},"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":"6697da3b2939cbcf901a777f5a24bd801502016d5915f04b926e15ae287c6795"},"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":"17c766048720a8335fe9cee4b5c94d175d687786ce4fe5ac15a7d88cc7deda62"},"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":"cc4313e08c448232f318be35b7241d4b93cdb38b46607e6d9e1235238dd8f561"},"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":"958d4abe0376dbd29ad22deac42da4dd1c7272133d26a369ed188ff72a75e6fb"},"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":"6bc3b539f953f180f304780b633bbb65e6d2911ce57503f2f0e4a05dfd504060"},"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":"28fb95c74cf7e51a3f6e58d6d5d9aaba698bdc10ef21fbd45c72dc90736c26c6"},"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":"a5ff6c36cc77c52281fa395ac6b9e1e18754b22fb93caffb8d30a7715d1e22e8"},"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":"2fc96334d05493fb5d8935dc5a45107f4fb73aecec08537b057f8eb8b7f70be1"},"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":"e8b55c163f8f3795e04a16e8012752aa571af73ad2b461235b8f9653dc13b42b"},"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":"cd09cc696afa20c7d7a448dac8d955679c5e0e74111ab1b48d697d92557b41d5"},"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":"1375048b9ca8ef192c23faf83af425d2e99a11eb2f6e7951f3d837d8c63c990e"},"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":"a38be72d14e8ccab0492e5eb56e5aa04e76169504f15c31da2d3a3c05d04533f"},"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":"ded78c7f44f929539ace678901856f7879ba7fff2ed25187d8a84f30ca55568b"},"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":"5f84086b5721d48576ffebb290a0288ebb01dec1e6690bb911a97aa90f5292f8"},"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":"e9b79a42c1353f66f0a4d39600ecafc51a05b89031e98896312f2acc981a4331"},"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":"dba947422e5342f3ec1c8c79cd0d382f193ca875a3cf3b831fb3cd646cf4c808"},"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":"7205317fc4307744fd9abdaec5a93c99047e2b3dc6e771c88b80b57760d42c9f"},"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":"a52c8330b56c464876ba5f411f971bd93c633028e031af8d7646a19282e88022"},"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":"0bcb1b075b675da40ce155e22e101567473764e92bfa95e4027acb2aa0a44136"},"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":"e78d76760a06eeb960eb39b0ec770d7d11a481e47061151aa9852aa8f9657e6d"},"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":"20db78a658befaa213d418f4fa1c02609a3675466070b5987a83cb49a4bd6e6d"},"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":"160e2c022b6238ef52ff3ad183b76fd0a9989579e03525741548023e42401129"},"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":"5c1b27f444ee9d48ae76463cfd1bb763c2d0286df94968144ab53792bf5c9449"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"241b508673ab70d40d0d5735ea912d601a928f1c2cfe1ca344c1212fb0ce2389"},"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":"5156d0ca146bb5203ede9ac390650b185fb03fa4431437998ea032ab2d0dcdbf"},"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":"acfa0c410f88e1ae1881415925b3ff0bc99b4b5d22bae27e3b9b16c155f90cde"},"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":"bdd196369f8a7504aae20f36669eb965b3e9df98166601770c5bc11eebb389cc"},"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":"052aa9bd04845b3c40c9614e9245635bfb18aa9802de4ac77d18e09da858e909"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"7b113ac3a3ae66357e84f3d2347feb14ac535f6027b413f3d9f12a509e735273"},"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":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b637583e9e173593d9cc5d77423821df1d6122e43490bc6e0055de327dc66fe"},"properties":{"dependency":{"package":"github.com/apple/swift-nio","version":"2.99.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"91f17784db6f8cddf81a1c83e476ee28754b5d35c4aae367d4c71c9d3a3f6be2"},"properties":{"dependency":{"package":"github.com/apple/swift-nio","version":"2.99.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b0881b351d87c56bcbfd2c6d6db7fba6b2ac32957e4bd5a81c8e92557db741b4"},"properties":{"dependency":{"package":"github.com/apple/swift-nio-http2","version":"1.43.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f9f04523b180334c0e1c8a76707b8e6791931196df8c97d8db67a1aad8c961b"},"properties":{"dependency":{"package":"github.com/apple/swift-nio-extras","version":"1.34.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fc31d7375aff5e2d0fe6dc72c5b3734467d2990c70e563a96f513bf734972d0a"},"properties":{"dependency":{"package":"stdlib","version":"1.25.0","advisory":"GO-2025-3955","aliases":["BIT-golang-2025-47910","BIT-golang-2025-47912","BIT-golang-2025-58183","BIT-golang-2025-58185","BIT-golang-2025-58186","BIT-golang-2025-58187","BIT-golang-2025-58188","BIT-golang-2025-58189","BIT-golang-2025-61723","BIT-golang-2025-61724","BIT-golang-2025-61725","BIT-golang-2025-61726","BIT-golang-2025-61727","BIT-golang-2025-61728","BIT-golang-2025-61729","BIT-golang-2025-61730","BIT-golang-2025-68121","BIT-golang-2026-111943","BIT-golang-2026-25679","BIT-golang-2026-27139","BIT-golang-2026-27142","BIT-golang-2026-27145","BIT-golang-2026-32280","BIT-golang-2026-32281","BIT-golang-2026-32282","BIT-golang-2026-32283","BIT-golang-2026-32288","BIT-golang-2026-32289","BIT-golang-2026-33811","BIT-golang-2026-33814","BIT-golang-2026-33818","BIT-golang-2026-39820","BIT-golang-2026-39822","BIT-golang-2026-39823","BIT-golang-2026-39825","BIT-golang-2026-39826","BIT-golang-2026-39836","BIT-golang-2026-42499","BIT-golang-2026-42504","BIT-golang-2026-42505","BIT-golang-2026-42507","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2025-4006","GO-2025-4007","GO-2025-4008","GO-2025-4009","GO-2025-4010","GO-2025-4011","GO-2025-4012","GO-2025-4013","GO-2025-4014","GO-2025-4015","GO-2025-4155","GO-2025-4175","GO-2026-4337","GO-2026-4340","GO-2026-4341","GO-2026-4342","GO-2026-4601","GO-2026-4602","GO-2026-4603","GO-2026-4864","GO-2026-4865","GO-2026-4869","GO-2026-4870","GO-2026-4918","GO-2026-4946","GO-2026-4947","GO-2026-4970","GO-2026-4971","GO-2026-4976","GO-2026-4977","GO-2026-4980","GO-2026-4981","GO-2026-4982","GO-2026-4986","GO-2026-5026","GO-2026-5037","GO-2026-5038","GO-2026-5039","GO-2026-5856","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"helpers/osaurus-wa/bridge.go","line":9}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0bfad465e6ef302855438c84a4ac10978d6e2178a82e24e581354216b098e47c"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.54.0","advisory":"GO-2026-5932","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-6303","GO-2026-6354","GO-2026-6355"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0868272eed70b177b5f1edd0698639cb4c14f02692d0eb987e841ee10cf8cb0f"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.57.0","advisory":"GO-2026-6603","aliases":["BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78669","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6617","GO-2026-6860","GO-2026-6866"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b1c40db193b3ba754f981666aa7cd15dfd2bef0c7799d3eb820cfce7e91ea103"},"properties":{"dependency":{"package":"golang.org/x/text","version":"0.40.0","advisory":"GO-2026-6629","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"435f78cf40a7955389d067f2b41e922b47588aa4ab78412a21793a54c63e33b7"},"properties":{"dependency":{"package":"github.com/apple/swift-nio-http2","version":"1.43.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"99fbf0370b33a5a357aeead80e0b27aa19c7164228579300a3bd2be63ffdd6a3"},"properties":{"dependency":{"package":"github.com/apple/swift-nio-extras","version":"1.34.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5c84a972b911aaa61c0f4b772f356b693bf4f7cf4f9c28947d56121a91668d7c"},"properties":{"dependency":{"package":"github.com/sparkle-project/Sparkle","version":"2.9.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 1940 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 1940 of the 2189 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/MCPBundleManager.swift, Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/BundleLoad.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/MCPBundleManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f86ae80d59c61e36cd4a4972395507ff2e725735e1796ac24cc5b898be63d2c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Bundle/BundleLoad.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9601c0a660e38d372f964c4c79b4f90480a1fa981fe91c10c48d8592409dc14d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: Package.swift \u2192 LocalVisionEvidence.swift, ModelFamilyNames.swift, ModelMediaCapabilities.swift, GenerationEventMapper.swift, ImageGenerationService.swift, MLXBatchAdapter.swift, SwiftTransformersTokenizerLoader.swift, ImageGenerationPanelView.swift: \u0060Packages/OsaurusCore/Package.swift\u0060 changes together with 8 other files \u2014 \u0060Packages/OsaurusCore/Models/Configuration/LocalVisionEvidence.swift\u0060, \u0060Packages/OsaurusCore/Models/Configuration/ModelFamilyNames.swift\u0060, \u0060Packages/OsaurusCore/Models/Configuration/ModelMediaCapabilities.swift\u0060, \u0060Packages/OsaurusCore/Services/ModelRuntime/GenerationEventMapper.swift\u0060, \u0060Packages/OsaurusCore/Services/ModelRuntime/ImageGenerationService.swift\u0060, \u0060Packages/OsaurusCore/Services/ModelRuntime/MLXBatchAdapter.swift\u0060, \u0060Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift\u0060, \u0060Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 8 separate couplings, not 8 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 8."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Package.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d710afb8d9834ab99d0c402bfd06e15340ac7e113796621b1e39e85e3d2725"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SystemPermission.swift \u2194 ConfigurationView.swift: \u0060Packages/OsaurusCore/Models/SystemPermission.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/ConfigurationView.swift\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060b9dfd795\u0060 mic configurations (at that commit the file was still \u0060Packages/OsaurusCore/Views/ConfigurationView.swift\u0060); \u0060ac495606\u0060 added whisper support (at that commit the file was still \u0060Packages/OsaurusCore/Views/ConfigurationView.swift\u0060); \u006029f43307\u0060 added location, notes, reminders permissions (at that commit the file was still \u0060Packages/OsaurusCore/Views/ConfigurationView.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/SystemPermission.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8e98746d47bd14f59bc53cc72d0251b9f6612da9f1a382767a7c0858fda512"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ChatConfiguration.swift \u2194 ChatView.swift: \u0060Packages/OsaurusCore/Models/Chat/ChatConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/ChatView.swift\u0060 change together 57% of the time (23 of the 40 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 23 shared commits counted here, the most recent 3 are \u0060a4eb0bb4\u0060 Lazy chat model loading: selecting a model records the choice; the fi\u2026; \u00605523962d\u0060 revamped settings (#2517); \u006064f54a67\u0060 Delete the persisted global Disable Tools switch; tool availability i\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Chat/ChatConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f28e5d432e1b51c27ecba548617cfffeb00b94fbb1490ffc6a0b09e7a6af150"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: NativeBlockViews.swift \u2194 NativeThinkingView.swift: \u0060Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift\u0060 and \u0060Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift\u0060 change together 54% of the time (7 of the 13 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 7 shared commits counted here, the most recent 3 are \u006003ea4c93\u0060 resolved crashes and hangs (#1575); \u006010dd0e91\u0060 chat improvements (#1259); \u0060d011207d\u0060 performance improvements (#914) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05ce66fee9d30d4f2140f0bba8aa7ff3f80fd08547370b78bc2d0787d795a9d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MemoryConfiguration.swift \u2194 MemorySearchService.swift: \u0060Packages/OsaurusCore/Models/Memory/MemoryConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Services/Memory/MemorySearchService.swift\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00600f26f944\u0060 updated memory results (at that commit the files were still \u0060Packages/OsaurusCore/Models/MemoryConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Services/MemorySearchService.swift\u0060); \u0060af37b227\u0060 tuning optimization for locomo benchmark (at that commit the files were still \u0060Packages/OsaurusCore/Models/MemoryConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Services/MemorySearchService.swift\u0060); \u0060e99759f5\u0060 updated memory implementation (at that commit the files were still \u0060Packages/OsaurusCore/Models/MemoryConfiguration.swift\u0060 and \u0060Packages/OsaurusCore/Services/MemorySearchService.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Memory/MemoryConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88e28ee713946cd965a1b796d565f1e2e7e4aa5c6ded10340bf6c9a3fd98030"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SettingsSearchIndex.swift \u2194 AgentChannelConnectionCenterView.swift: \u0060Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift\u0060 and \u0060Packages/OsaurusCore/Views/Settings/AgentChannelConnectionCenterView.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 \u0060a2dd43d3\u0060 Keep channel chat tab live across follow-ups; add Focus Chat on Incom\u2026; \u006033842593\u0060 Guide n8n setup so pairing codes only issue when they can work (#2775); \u00602fa86dbb\u0060 Redesign channels UX: name-first destinations, DM identity, intent-ba\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5339dcfb5ffb3863702711462a178fba1fe2e86a7b1a3794d6787df626ccc5fe"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D37","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e284d3bbf93588a79a783f39ac9ed67e8118ea9345e651a0ebd19e4742d208f"}},{"ruleId":"DM4","level":"error","message":{"text":"Anemic domain model: Color: \u0060Color\u0060 is a data-only reference entity whose behaviour is DELEGATED to a foreign utility (static methods that take it as their first parameter and hold its logic) \u2014 the anemic domain model. Move the behaviour onto the entity so it enforces its own invariants rather than being driven from outside."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Models/Theme/CustomTheme.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbd75964bb6c6b2e88081e0f286239c16bcf80ede384c989f0ed6c27828867a"}},{"ruleId":"DM4","level":"error","message":{"text":"Anemic domain model: Error: \u0060Error\u0060 is a data-only reference entity whose behaviour is DELEGATED to a foreign utility (static methods that take it as their first parameter and hold its logic) \u2014 the anemic domain model. Move the behaviour onto the entity so it enforces its own invariants rather than being driven from outside."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sync/SyncError\u002BOsaurus.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4ca6a76840baff045be9b7ae975b02eb982925935732fa65c3c583f0696b6b"}},{"ruleId":"ED1","level":"error","message":{"text":"Blocking wait inside a handler: ChannelReplayNonceStore.consume: \u0060ChannelReplayNonceStore.consume\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":"Packages/OsaurusCore/Services/Channels/ChannelReplayNonceStore.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d93879ca1d43c569fc307d195aeed4defb2c90ba3be4fd197dc47ae5a8409c"}},{"ruleId":"ED1","level":"error","message":{"text":"Blocking wait inside a handler: Keychain.onWriteQueueSync: \u0060Keychain.onWriteQueueSync\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":"Packages/OsaurusCore/Services/Keychain/Keychain.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"b762397ca601018a65c9a7c4a24f2c1e56e693e7cad4c89d116a281ef980e200"}},{"ruleId":"M2","level":"note","message":{"text":"ADRs not easily discoverable: 1 ADR-shaped document(s) detected by content \u2014 \u0060Packages/OsaurusEvals/Config/capability-search-sweep.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":"P2","level":"note","message":{"text":"Logging is not universal: Only 4/7 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060Packages/OsaurusCLI\u0060, \u0060helpers/osaurus-wa\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 6 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060docs/examples/login-with-osaurus/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/examples/login-with-osaurus/package.json"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"23924d7243f0cdb8ed9c02093c1d11929d5c036d1edf383f0acd4d13d219266e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060launchAppIfNeeded\u0060 is async and calls .waitUntilExit() \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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/AppControl.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"70300f82e1d6149acfe9fabcd541b9d4cac016e3b6f1fc22014c7ff8a506a9ea"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060shutdown\u0060 is async and calls .wait() \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":"Packages/OsaurusCore/Models/Plugin/ExternalPlugin.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b74a2c5fa27306bccd7f0c6aea15d563252363548aa1dcab3dc6f77dada02a"}},{"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":"Packages/OsaurusCore/Services/AgentChannel/AgentChannelTransportRuntime.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"283abab94ba68e1a8add8f7c75f703e0e2a3aeb7ad30d9568f57a1a202c3bf25"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readUntilDone\u0060 is async and calls .waitUntilExit() \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":"Packages/OsaurusCore/Services/Workflow/CodeNodeExecutor.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a8190dfa3a355ae3bb4311718fd793d9b4690374c2e14d5971a542a3b0c78c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execute\u0060 is async and calls .wait() \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":"Packages/OsaurusCore/Services/Workflow/WorkflowNodeExecutor.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e42f3ec2dc5408ee8991c66107c7c71a34b25c3dfb02815a0123d731a3884b0"}},{"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":"Packages/OsaurusCore/Views/Onboarding/Stage/OnboardingScene.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a8b28bb68ad3bfa17b6d4435616c6ce5c8d4d2a5423803325aa3a39000cc42"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060callback to createServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/examples/login-with-osaurus/server.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b9a0f3fe6c63ef02f4e31f318fe8cfa5f7e5b1203197b263e70cf9d69f1158"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: docs/examples/login-with-osaurus/package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/examples/login-with-osaurus/package.json"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a22c4a764b948c89376dd315461ff156ed9e5bb69be615b4a294dacd97d759"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(left.get(key, 0), int) and isinstance(right.get(key, 0), int)\u0060 appears character-identically in 2 files \u2014 scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py, scripts/live-proof/run-local-vl-media-cache-proof.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/live-proof/run-local-family-multiturn-tool-cache-proof.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f2b56ad26181c6e2059d70b2c9482ea13c5aac36cac305fe6456b55c2cc045"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060unit and isinstance(unit.get(\u0022value\u0022), str) and unit[\u0022value\u0022].strip()\u0060 appears character-identically in 2 files \u2014 scripts/i18n/apply-ko.py, scripts/i18n/export-untranslated.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/i18n/apply-ko.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"667d743de841773a7172414efa4265a1eb3ec46971960e74d70d75cf99cd25ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!$0.isBuiltIn \u0026\u0026 $0.name.caseInsensitiveCompare(value) == .orderedSame\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Configuration/Declarative/ConfigChannelRouting.swift, Packages/OsaurusCore/Configuration/Declarative/ConfigEvents.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/OsaurusCore/Configuration/Declarative/ConfigChannelRouting.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19890003fe1215474101e68dc931a1c84164f1a1313f17ec13e672b4e2ae9e7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!$0.isEmpty \u0026\u0026 seen.insert($0.lowercased()).inserted\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/Event/OsaurusEvent.swift, Packages/OsaurusCore/Tools/CapabilityTools.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/OsaurusCore/Models/Event/OsaurusEvent.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"7feb597dd0986690175fca15ffba05123a51022fd535c0943a58889f649b2319"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!$0.isSelf \u0026\u0026 !$0.revoked \u0026\u0026 $0.devicePlatform.usesMacFeeds\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Sync/SyncAttentionFeed.swift, Packages/OsaurusCore/Services/Sync/SyncPhoneDevices.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/OsaurusCore/Services/Sync/SyncAttentionFeed.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b192017b8406c543f6abbe025afef709f6c891b526dff7d0bb25d159f551ea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!agent.isBuiltIn || agent.id == Agent.defaultId\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Networking/HTTPHandler.swift, Packages/OsaurusCore/Services/Sync/SyncHostRunner.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/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5718}}}],"partialFingerprints":{"codehealthFindingId/v1":"18310a42d824b565dbf6f48c07a15d12582229e46cddd0d7140451a85cda7451"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!config.readableChannelIds.isEmpty \u0026\u0026 !config.senderAllowlist.isEmpty\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/AgentChannel/AgentChannelTransportRuntime.swift, Packages/OsaurusCore/Views/Settings/AgentChannelConnectionCenterView.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/OsaurusCore/Services/AgentChannel/AgentChannelTransportRuntime.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2f1e42f8371f0992b69d39e30a5901876e60824ad64c72ebe3f16519e31e9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!current.isEmpty \u0026\u0026 !builtIn.contains(current)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Agent/AgentsView.swift, Packages/OsaurusCore/Views/Voice/TTSModeSettingsTab.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/OsaurusCore/Views/Agent/AgentsView.swift"},"region":{"startLine":6978}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e9ac766190e919fbb5add661ea4e3b885f5a8c56966b4bc1607150093422eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!diagnostics.failures.isEmpty || presentation.tone == .error\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift, Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift, Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.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/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d23c846156202925cb2ab80c07390d3a9b77ea2f886c475c9afdaa4dddf790"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!helperVerified \u0026\u0026 helperDownloadAvailable\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift, Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.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/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ab7c649e3c96dde480e304aa745cd9d484296bcb794682ef2ff091045591ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!parseIds(readableChannelIdsText).isEmpty \u0026\u0026 !parseIds(senderAllowlistText).isEmpty\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift, Packages/OsaurusCore/Views/Settings/SlackSettingsView.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/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e253eb505a8f38babdbe2f23bd14a803e3d1ce0001074bc4d3cbc2f749de0508"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!parseIds(readableChatIdsText).isEmpty \u0026\u0026 !parseIds(senderAllowlistText).isEmpty\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift, Packages/OsaurusCore/Views/Settings/TelegramSettingsView.swift, Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.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/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d299ef8649ba7158d70e25e71de9f0c6c732ed6d56b9f5e290c648e9a9d294"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!regressions.isEmpty || !newFailures.isEmpty\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.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/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaabfa93b9ba1a12657bbd9612c3452b31a16ecedb462cd5f15dff03e4c8c541"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!rubric.isEmpty \u0026\u0026 verdicts.count != rubric.count\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerAgentLoop.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/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"157c258ec587a7f3d96f0ab50d77c479697d233ff3abbd458bf679c0c3c0ee25"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!trimmed.isEmpty || !attachments.isEmpty\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/IMessage/IMessageConnectionService.swift, Packages/OsaurusCore/Views/Chat/ChatSession\u002BHostedRun.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/OsaurusCore/Services/IMessage/IMessageConnectionService.swift"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"542895a0f0dd79a8ce69838194e2b0563172367cb0ff3cd7ea68d9ead4487c25"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.enabled \u0026\u0026 !excluded.contains($0.name)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Context/CapabilitySearchHealth.swift, Packages/OsaurusCore/Services/Tool/ToolSearchService.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/OsaurusCore/Services/Context/CapabilitySearchHealth.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"514ac5bb178ad89aead139e6f7551464d8f1cf831857891cdc1c137b0f717c99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.isASCII \u0026\u0026 ($0.isLetter || $0.isNumber || $0 == \u0022-\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Sync/SyncNetworkDirectory.swift, Packages/OsaurusRepository/OsaurusBundle.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/OsaurusCore/Services/Sync/SyncNetworkDirectory.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c2eb3ad25c9267923dadbde5ca9733be8dfb38a73782292fd138ae89f63a8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.isDownloaded \u0026\u0026 $0.id.caseInsensitiveCompare(model) == .orderedSame\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Inference/StructuredOutput.swift, Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.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/OsaurusCore/Services/Inference/StructuredOutput.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef819737b98625a52680542ecaa0f35169dfd7999e150960fd2ccf26de349c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.isLetter || $0.isNumber || $0 == \u0022-\u0022 || $0 == \u0022_\u0022\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Sync/SyncKeyStores.swift, Packages/OsaurusCore/Services/Workflow/PythonCodeNodeExecutor.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/OsaurusCore/Services/Sync/SyncKeyStores.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"02620a4b91960ef95293841f8624ea188d1941ebffdb7dff0001a69bf11ee630"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.outcome == .passed || $0.outcome == .failed\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalMatrix.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/OsaurusEvals/Sources/OsaurusEvalsKit/ContextOptimizer.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b2087d21340f762de0a05cf4b785b5344d479965062f6309325834b8201e09"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.providerType != .osaurusRouter \u0026\u0026 manager.exposesModelsForInference($0)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Settings/RemoteProviderReorderSheet.swift, Packages/OsaurusCore/Views/Settings/RemoteProvidersView.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/OsaurusCore/Views/Settings/RemoteProviderReorderSheet.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"134aece4270e812d659e09857015f27da7c61c775eb618fd14313342f1bd4c5f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.reference != nil \u0026\u0026 $0.reference == account.reference\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/AgentChannel/ChannelAccountRemoval.swift, Packages/OsaurusCore/Services/AgentChannel/ChannelAccounts.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/OsaurusCore/Services/AgentChannel/ChannelAccountRemoval.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7862bcc42cebf693482bf5eb9d77a4f47554a57a28b2fb2e9a88225228e39c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.role == .assistant \u0026\u0026 !$0.contentIsBlank\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift, Packages/OsaurusCore/Services/AgentChannel/AgentChannelWebhookIngress.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/OsaurusCore/Services/AgentChannel/AgentChannelInboundRelay.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e8f574b5c25610d66d5e70ed3124af68844c96f6ac3b445fe956c70abf4edb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.status == .running || $0.status == .awaitingUser\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Workflow/WorkflowRunService.swift, Packages/OsaurusCore/Views/Workflow/FlowViewer/WorkflowFlowCanvas.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/OsaurusCore/Services/Workflow/WorkflowRunService.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73bd9a25f5e7ef39e074518b1efaf6deebbc7d7f3b5fc4f205c47847a4f488c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(baseline == .failed || baseline == .errored) \u0026\u0026 current == .passed\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.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/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e4394929d34ff15cecefa8b5e57d88da0f7c18f372912aa72227d2d85429d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060CharacterSet.controlCharacters.contains(scalar) || CharacterSet.newlines.contains(scalar)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Attention/CallerDeclaration.swift, Packages/OsaurusCore/Services/Attention/MultiPartyTranscript.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/OsaurusCore/Services/Attention/CallerDeclaration.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed704ed84cca50e53ef5685fbf94e60f54369a38392ce0f828faa7a65425663d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ChatExecutionContext.denyUnapprovedToolPrompts || ChatExecutionContext.isUnattendedDispatch || (ChatExecutionContext.isExternalSurface \u0026\u0026 !C\u2026\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift, Packages/OsaurusCore/Configuration/Declarative/OsaurusImportTool.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/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"4880ada7b870035be254419e7a3efef6ec277090e3e28fff7ab01304b19a26b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060RuntimeEnvironment.isUnderTests \u0026\u0026 presentationOverrideForTests == nil\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/MCP/MCPElicitationPromptService.swift, Packages/OsaurusCore/Services/ToolPermissionPromptService.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/OsaurusCore/Services/MCP/MCPElicitationPromptService.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40e99159c4f9f0b0091aee62a3e1182391f7e507bd52fc67d2af3af5de98e39"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Thread.isMainThread \u0026\u0026 !RuntimeEnvironment.isUnderTests\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Services/FeatureTelemetry.swift, Packages/OsaurusCore/Services/LocalGenerationDefaults.swift, Packages/OsaurusCore/Services/LocalReasoningCapability.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/OsaurusCore/Services/FeatureTelemetry.swift"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e9e7444ffca45fa5ef77a3923dff3597c9da9b84285bae2cfc78cfb546a80e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060agent.agentAddress != nil || agent.agentIndex != nil\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Managers/AgentManager.swift, Packages/OsaurusCore/Services/AgentBridge/AgentBundleService.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/OsaurusCore/Managers/AgentManager.swift"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6b1ef6673868e83d1b47727645682da69211430e1e33e50cf4019c03fd706d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060agent.agentAddress == nil || agent.agentIndex == nil\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Networking/RelayTunnelManager.swift, Packages/OsaurusCore/Views/Workspaces/WorkspaceSheets.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/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9431c3c3da62207655f119e6c8b6c1427c1136f72396e0f515719ea33e645cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args[\u0022old_string\u0022] != nil || args[\u0022edits\u0022] != nil\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Folder/FolderTools.swift, Packages/OsaurusCore/Tools/BuiltinSandboxTools.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/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":4028}}}],"partialFingerprints":{"codehealthFindingId/v1":"78599c13bca41ec68c89a75afa53d89bc3aad5cdefbf47d85c03e91303bced7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060author.kind == .owner || author.kind == .ownerDevice\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Services/Attention/ConversationMailbox.swift, Packages/OsaurusCore/Services/Router/InboundSharedRunBridge.swift, Packages/OsaurusCore/Services/Sync/SyncServedChats.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/OsaurusCore/Services/Attention/ConversationMailbox.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a8a64feeec3299d5f6a6808a21896dcad1861a519b3e89b1d37ffe0dbf17dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060baseline == .failed \u0026\u0026 current == .errored\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.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/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f3e22c8352138b39f55f7f1da284b51ed5b447c8d2c87b3173e5dd344c7b5b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060baseline == .passed \u0026\u0026 current != .passed\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.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/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6527f9001ce8a6df27b0d35b01e0abef4e1c8e5db3a58494d0e3a6abde195e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060baseline == .skipped \u0026\u0026 current == .errored\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.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/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7ef6a4eaf61d7b08d5ed8b76217e44cf88f7e6788e652978775cedaff3aa9c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cancellationRequested() || Task.isCancelled\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Subagent/OwnedSubagentOperation.swift, Packages/OsaurusCore/Subagent/SpawnPermissionGate.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/OsaurusCore/Subagent/OwnedSubagentOperation.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18b68b7f1fc1921082e66a1288d2c0a07aa2582b8641568bc5daec2d74618ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060candidatePath == rootPath || candidatePath.hasPrefix(rootPath \u002B \u0022/\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/Chat/SharedArtifact.swift, Packages/OsaurusCore/Tools/Database/DatabaseFilePathResolver.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/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c63b060d064c18fedee0bd2bf915b56dc710a502f17edf1169458936bfcb68a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060character == \u0022.\u0022 || character == \u0022!\u0022 || character == \u0022?\u0022 || character == \u0022\\n\u0022\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift, Packages/OsaurusCore/Services/Chat/GroundedFileSideEffectCheck.swift, Packages/OsaurusCore/Services/Chat/GroundedKnowledgeClaimCheck.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/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4459de71bdb7ab1f145c5e3c3b3f3cc568da01ebc696b7621a25dab67853f40"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.writeEnabled \u0026\u0026 config.writableChannelIds.isEmpty\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift, Packages/OsaurusCore/Services/Slack/SlackConnectionService.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/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e5cc2bcd0f224dd136abd9c5c286e7a92bc9447dde550e4ec5cc8d5ce1d56d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060control.values[option.id] != nil || (option.id == \u0022reasoningEffort\u0022 \u0026\u0026 control.reasoningValidationMessage != nil)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Model/ChatModelPickerCard.swift, Packages/OsaurusCore/Views/Model/ModelPickerView.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/OsaurusCore/Views/Model/ChatModelPickerCard.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7136db19383cc7c1953df086a7e829a552c6c83f9c0ffaebfc2244b3a4923c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060crossSelectionEnablesCopy(item) || super.validateUserInterfaceItem(item)\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Views/Chat/NativeBlockViews.swift, Packages/OsaurusCore/Views/Chat/SelectableTextView.swift, Packages/OsaurusCore/Views/Common/CodeBlockView.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/OsaurusCore/Views/Chat/NativeBlockViews.swift"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fd8f0d3f4e7bdd134d96d33ed285e78d65c57a6bf6678c77163fed0c5ec95e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentX \u002B size.width \u003E maxWidth \u0026\u0026 currentX \u003E 0\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Plugin/PluginsView.swift, Packages/OsaurusCore/Views/Settings/ProvidersView.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/OsaurusCore/Views/Plugin/PluginsView.swift"},"region":{"startLine":1993}}}],"partialFingerprints":{"codehealthFindingId/v1":"616b54681d45b6a378982619b4eb268223f1c2e0ca50bc6cf262cab9ea25151d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ending == .finalText || ending == .iterationCap\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Chat/ChatToolChoicePolicy.swift, Packages/OsaurusCore/Services/Chat/SessionStateExtraction.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/OsaurusCore/Services/Chat/ChatToolChoicePolicy.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75d50716c3b9fa24a6c14410d11466f07ad1e5c3d9dbd20991c7ec28fd3d67c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060endpoints.count == 1 || endpoints.count == 2\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift, Packages/OsaurusCore/Services/Documents/XLSXEmitter.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/OsaurusCore/Services/Documents/WorkbookWorkflowService.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03cfc0753f7224107af0b188477e1067dd4961c4571b543cd4de95f8c04048f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error is CancellationError || Task.isCancelled\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Inference/CoreModelService.swift, Packages/OsaurusCore/Services/Workflow/WorkflowRunner.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/OsaurusCore/Services/Inference/CoreModelService.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"381e40739ecb52d915de58d38f10b905bdbab270eb010d4384af73d206c0a445"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fileComponents.count \u003E= baseComponents.count \u0026\u0026 Array(fileComponents.prefix(baseComponents.count)) == baseComponents\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Managers/SkillImportPolicy.swift, Packages/OsaurusCore/Models/Agent/SkillStore.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/OsaurusCore/Managers/SkillImportPolicy.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb700fb87f377c479a85654ac8bc8a930ce807392625bb55c7457ab129d6ffb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fm.fileExists(atPath: legacyPath.path) \u0026\u0026 !fm.fileExists(atPath: newPath.path)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Utils/OsaurusPaths.swift, Packages/OsaurusRepository/RepositoryGlobalProxySettings.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/OsaurusCore/Utils/OsaurusPaths.swift"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"1203cca76404db812e4600409e4fb3f8a2b8106372bebe879e9d79cf0516417a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasBlockingRegressions || hasRunFailures\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalScoreboard.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/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"54774d6bee944b9c27aebe0a1421cf58a213a0d21261fff9ba1a4429936e4c5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasTokenizerJSON || hasBPE || hasSentencePiece\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Managers/Model/ModelManager.swift, Packages/OsaurusCore/Models/Configuration/MLXModel.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/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":2390}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f15e56c3539bac2d1538767bc8eaeb01b633e3970fd2806ca8237620bc731d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host == \u0022localhost\u0022 || host == \u0022ip6-localhost\u0022 || host == \u0022ip6-loopback\u0022\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift, Packages/OsaurusCore/Services/Plugin/PluginHostAPI.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/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1849}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5981b0d4726ddbf1d8e431bf253971f605b25f4ec9ce53a1096fe837d75dd01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host.hasPrefix(\u0022fc\u0022) || host.hasPrefix(\u0022fd\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift, Packages/OsaurusCore/Services/Plugin/PluginHostAPI.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/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83d337c478436dab06579eed57616f8ede50c3553dcf4c8d56fc2b3a707cadc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index == selectedIndex || index == hoveredIndex\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Chat/AtFileMenuPopup.swift, Packages/OsaurusCore/Views/Chat/SlashCommandPopup.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/OsaurusCore/Views/Chat/AtFileMenuPopup.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b43d8f7dac74e0aa23e9f4a9e2011a580bfc2acf6aafbe78be9a468778c1b8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060info.disabledTools || info.disabledMemory\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Services/MobileConnect/PhoneContextUsage.swift, Packages/OsaurusCore/Views/Agent/AgentAbilitiesOverviewView.swift, Packages/OsaurusCore/Views/Chat/FloatingInputCard.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/OsaurusCore/Services/MobileConnect/PhoneContextUsage.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"478f5c676eb9855c0f765b25e903e8c8e871778f5b6ba6a1a6628734b2676eed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060interrupt.isInterrupted || Task.isCancelled\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift, Packages/OsaurusCore/ComputerUse/Loop/ComputerUseLoop.swift, Packages/OsaurusCore/Subagent/SubagentSession.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/OsaurusCore/AppleScript/Loop/AppleScriptLoop.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef3325ddc1b8445f9b889980d79577ef16eec4fa4719cc88b40f02f962df0c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isDiscovering || (!tokenSaved \u0026\u0026 !hasPendingToken)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift, Packages/OsaurusCore/Views/Settings/TelegramSettingsView.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/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"4268a2e1bb1199f9296ad56c6b231d2c68accbf2260c8fbb22fa67dd35f77ba9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isExpanded || toggled || heightAnimation.isRunning\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Chat/NativeThinkingView.swift, Packages/OsaurusCore/Views/Chat/NativeToolCallGroupView.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/OsaurusCore/Views/Chat/NativeThinkingView.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"4670edf4cdbeed04e5de9284c9fa79b00aea665c645d71dec43e06be145c9518"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isSameBlock \u0026\u0026 isExpanded \u0026\u0026 !self.isExpanded\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift, Packages/OsaurusCore/Views/Chat/NativeThinkingView.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/OsaurusCore/Views/Chat/NativeCompactionMarkerView.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc775d4284b6ded588a03c479738d79809f7385072c416e6f6d226f830845b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isTesting || isSaving || (!tokenSaved \u0026\u0026 !hasPendingToken)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Settings/DiscordSettingsView.swift, Packages/OsaurusCore/Views/Settings/TelegramSettingsView.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/OsaurusCore/Views/Settings/DiscordSettingsView.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"477de5c1f66121f5344fb7a183289f1b5caaa2b5eb6b2d6d5949d91081e40444"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.hasPrefix(\u0022\u002B\u002B\u002B\u0022) || line.hasPrefix(\u0022---\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Knowledge/KnowledgeWritePreview.swift, Packages/OsaurusCore/Views/Settings/ConfigDiffView.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/OsaurusCore/Services/Knowledge/KnowledgeWritePreview.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"43247c9fc1c2da9edc9dbc10e5c800dd43fac38723e248f51e446b81d8445f72"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lowered == \u0022foundation\u0022 || lowered.hasSuffix(\u0022/foundation\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Inference/CoreModelService.swift, Packages/OsaurusCore/Services/Inference/StructuredOutput.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/OsaurusCore/Services/Inference/CoreModelService.swift"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d13aa137d5a4ab08066da0bbf13676006ccf5e54c6fab86976e2e217b3b925a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lowered.contains(\u0022invalid_grant\u0022) || lowered.contains(\u0022invalid_token\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Managers/RemoteProviderManager.swift, Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthService.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/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbf24f334ceb2082bfade4c597f31030b308b1f2f497ad90996e12c9432dbfd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060migrated.tokens == legacy.tokens \u0026\u0026 migrated.primitives == legacy.primitives \u0026\u0026 migrated.colorAliases == legacy.colorAliases \u0026\u0026 migrated.val\u2026\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/DevelopmentDesign/DesignAgentSurfaceChecks.swift, Packages/OsaurusCore/DevelopmentDesign/DesignCatalogLayoutChecks.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/OsaurusCore/DevelopmentDesign/DesignAgentSurfaceChecks.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a77a39b0f4bda3bd81072979622053978a688b9e4cb3eb6f22ba76f55158cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model.externalSource != nil || model.bundleDirectory != nil\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift, Packages/OsaurusCore/Views/Model/ModelDetailView.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/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b0f8fc251419ddfd4adf9286aa6fb75c9e013b89e9b2efe60f6b6520968a1c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized == \u0022localhost\u0022 || normalized.hasSuffix(\u0022.localhost\u0022) || normalized.hasSuffix(\u0022.local\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthHTTPTransport.swift, Packages/OsaurusNetworking/Sources/GlobalProxyConfiguration.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/OsaurusCore/Services/MCP/OAuth/MCPOAuthHTTPTransport.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d780c13ca18dbb5ed7aa81b28a755fe15f56bde7dd78a2d27e1c629deb05647b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.contains(\u0022mimo-v2.5\u0022) || normalized.contains(\u0022nex-n2-pro\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/Configuration/ModelFamilyNames.swift, Packages/OsaurusCore/Services/Inference/MLXService.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/OsaurusCore/Models/Configuration/ModelFamilyNames.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3cbf882b9a09c51f3ea0ad97dbef993dfde0c337c9cd1a354c702939989a47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.hasPrefix(\u0022[\u0022) \u0026\u0026 normalized.hasSuffix(\u0022]\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Tools/CapabilityTools.swift, Packages/OsaurusNetworking/Sources/GlobalProxyConfiguration.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/OsaurusCore/Tools/CapabilityTools.swift"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f0f25c9f4f43b410801539cfba283b78bb1f9fc273c7cab9d6db7b1f4e79a5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060op.bool(\u0022replace_all\u0022) || op.bool(\u0022all\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift, Packages/OsaurusCore/Services/Documents/OOXML/PPTXEditor.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/OsaurusCore/Services/Documents/OOXML/DOCXEditor.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa5bb781de96681de53f94b4ce1f7b8883350d6a3ad1a0aad34c7f9fbfd26ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060outcome == .failed || outcome == .errored\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReviewReport.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/OsaurusEvals/Sources/OsaurusEvalsKit/AgentLoopRegressionLab.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c0e4fdd03c7848e34c5fd864880903ad867a7155c860b3d9f0c162c253516f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060overrideDirectory != nil || OsaurusPaths.overrideRoot != nil\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Models/Agent/DefaultAgentConfigurationStore.swift, Packages/OsaurusCore/Models/Configuration/ModelExposureStore.swift, Packages/OsaurusCore/Models/Configuration/ServerConfigurationStore.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/OsaurusCore/Models/Agent/DefaultAgentConfigurationStore.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc89c80b8d84dfda7af961ba7150d146de9541cc908f97b008c58014c688da04"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parseIds(senderAllowlistText).isEmpty \u0026\u0026 !parseIds(readableChatIdsText).isEmpty\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Settings/IMessageSettingsView.swift, Packages/OsaurusCore/Views/Settings/WhatsAppSettingsView.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/OsaurusCore/Views/Settings/IMessageSettingsView.swift"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a110d85ed086765edfb93c11ba565f1474ba14155518a3cf0c4385f3229034"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path == directoryPath || path.hasPrefix(directoryPath \u002B \u0022/\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift, Packages/OsaurusCore/Services/HuggingFaceService.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/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"365a9fddfd2615a86bbaeb0705f03a43e2ee53ffc973842cb20b42df9619c3cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider.authType == .openAICodexOAuth || provider.providerType == .openAICodex\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Managers/RemoteProviderManager.swift, Packages/OsaurusCore/Services/Provider/ProviderNetworkDiagnostics.swift, Packages/OsaurusCore/Views/Settings/RemoteProviderEditSheet.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/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca502bbf1dd2763b30cda7cccb2052d0e42baa25183cacf853a8401ee70267e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060query.isEmpty || $0.localizedCaseInsensitiveContains(query)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/DevelopmentDesign/CatalogPrimitives.swift, Packages/OsaurusCore/DevelopmentDesign/DesignInspectorView.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/OsaurusCore/DevelopmentDesign/CatalogPrimitives.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"731f7dda67965b9cd1c09a4e4dbc6dcfb1d50fc3bd25718dcbaba62ee3bb4c79"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060real == rootReal || real.hasPrefix(rootReal \u002B \u0022/\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Folder/FolderTools.swift, Packages/OsaurusCore/Services/FileHistory/FileChangeJournal\u002BRevert.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/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e0564b959a31a4f1ef18fd6132ad2c642b2686a9575533887df9c8d472c81a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060requestedMode == \u0022overwrite\u0022 || requestedMode == \u0022append\u0022\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Folder/FolderTools.swift, Packages/OsaurusCore/Tools/BuiltinSandboxTools.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/OsaurusCore/Folder/FolderTools.swift"},"region":{"startLine":2845}}}],"partialFingerprints":{"codehealthFindingId/v1":"057c6feff0450711953291bf4315e2c735c07bd0a245410ab384c1dd7634222c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resolved == resolvedRoot || resolved.hasPrefix(resolvedRoot \u002B \u0022/\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift, Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.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/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"2574f9f67e63acf10c2a7e4e1e4052efa2bb0d971a8f92319bcbe3f11a838167"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode == 401 || response.statusCode == 403\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/MCP/MCPAuthFailureProbe.swift, Packages/OsaurusCore/Services/Provider/RemoteProviderMCPDetection.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/OsaurusCore/Services/MCP/MCPAuthFailureProbe.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"830b28a30880a381825df1450c727e1908167c0b306265a7b70d35c8bf5c4537"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rest.isEmpty || rest.hasPrefix(\u0022-\u0022) || rest.hasPrefix(\u0022.\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/Configuration/ModelOptions.swift, Packages/OsaurusCore/Models/Configuration/ModelPickerItem.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/OsaurusCore/Models/Configuration/ModelOptions.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2320c7c4b6474b14202e576ab885acd250e7dd5dce8962749a1d04f07f79c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060row.description?.isEmpty == false || row.parameterCount != nil || row.quantization != nil || row.mediaPrivacy?.isEmpty == false || row.media\u2026\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/Theme/InspectionAdapters/InspectorModelPickerStyle.swift, Packages/OsaurusCore/Views/Model/ModelPickerTableRepresentable.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/OsaurusCore/Models/Theme/InspectionAdapters/InspectorModelPickerStyle.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a392343656719f47bcc6e83d2140f69d2f85b1efd2df1a70e166cc196619776"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scalar == carriageReturn || scalar == lineFeed\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Documents/CSVRowParser.swift, Packages/OsaurusCore/Tools/Database/DatabaseImport.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/OsaurusCore/Services/Documents/CSVRowParser.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfc4f45d574f72586ff79b52d929fd9cc9500f8c54b1d235eb305cd77202cbc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scalar.value \u003C 0x20 || scalar.value == 0x7F\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/Configuration/CodexCLIConfiguration.swift, Packages/OsaurusCore/Services/Provider/RemoteProviderService.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/OsaurusCore/Models/Configuration/CodexCLIConfiguration.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49c5c7458e961333cb95e8842f6281a36c840ba23f5af363d3a0258a7d4379f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session.turns.isEmpty \u0026\u0026 !session.isStreaming\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Managers/Chat/ChatWindowState.swift, Packages/OsaurusCore/Views/Chat/ChatTabStripView.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/OsaurusCore/Managers/Chat/ChatWindowState.swift"},"region":{"startLine":2247}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f31213b24332bbd1418e84d7259669d97a4ae8897afb419093d7c33dbc098c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060spec.required \u0026\u0026 !PluginCredentials.isSatisfied(pluginId: pluginId, specId: spec.id, agentId: nil)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Configuration/Declarative/ConfigApplier.swift, Packages/OsaurusCore/Services/Plugin/PluginRepositoryService.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/OsaurusCore/Configuration/Declarative/ConfigApplier.swift"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9bc4610c15f79f5536419066dfb03bec4125d01ca86b6ecf6887fb1e1ed182"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060speechService.isSpeechDetected || hasNewConfirmedText || !currentText.isEmpty\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Voice/TranscriptionModeService.swift, Packages/OsaurusCore/Views/Chat/FloatingInputCard.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/OsaurusCore/Services/Voice/TranscriptionModeService.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ac20cff3200592985920bbfca1cd63acac0f324568d82933735101ed79d221"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060speechService.microphonePermissionGranted \u0026\u0026 modelManager.downloadedModelsCount \u003E 0 \u0026\u0026 modelManager.selectedModel != nil\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Views/Voice/VADModeSettingsTab.swift, Packages/OsaurusCore/Views/Voice/VoiceSetupTab.swift, Packages/OsaurusCore/Views/Voice/VoiceView.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/OsaurusCore/Views/Voice/VADModeSettingsTab.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bdd73f3306de4632436785c07b3b2d93acf5cc78cfa62033fdc5a22e41294b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == \u0022applied\u0022 || status == \u0022applied_downloads_running\u0022\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift, Packages/OsaurusCore/Tools/Handoff/ConfiguratorHandoffTool.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/OsaurusCore/Services/Chat/GroundedConfigClaimCheck.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2fda6406364a272196e61971ed43867c6c5e2fb11df981e6a81ada623e150f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == errSecSuccess || status == errSecItemNotFound\u0060 appears character-identically in 3 files \u2014 Packages/OsaurusCore/Identity/MasterKey.swift, Packages/OsaurusCore/Identity/MasterMnemonicStore.swift, Packages/OsaurusCore/Services/Keychain/Keychain.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/OsaurusCore/Identity/MasterKey.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1717958edecb32843a5ab984d2c38498946b0e7ca8ce0a469bf673db190d942"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060template.requirements.usesSandbox || template.workflow?.usesSandbox == true\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Task/ResourceArbiter.swift, Packages/OsaurusCore/Services/Workflow/WorkflowRunner.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/OsaurusCore/Services/Task/ResourceArbiter.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6574820c28e4c8aa8601c641b9c2ebd722b85e3a4733b9851cbb5eea7834d93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060totalBytesExpectedToWrite \u003E 0 \u0026\u0026 totalBytesWritten \u003E= totalBytesExpectedToWrite\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift, Packages/OsaurusCore/Services/ModelDownloadService.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/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b17b7ae3563f23d2c4c85d41506189a31cf4360b134ef30916bae5e53c230b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trialsPassed \u003E 0 \u0026\u0026 trialsPassed \u003C trials\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift, Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalReport.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/OsaurusEvals/Sources/OsaurusEvalsKit/EvalDiff.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"0482d1d6bb7040e001aac89ab8ab61027c3a293bc607e7513a00c581053d379f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.hasPrefix(\u0022/\u0022) || trimmed.hasPrefix(\u0022~\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift, Packages/OsaurusCore/Models/Workflow/WorkflowAccessScope.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/OsaurusCore/ComputerUse/Driver/Mac/Accessibility.swift"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dae26e135eedadd54802a35aa51826d93f72d8fce3f86e28c17702da51ac313"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.hasPrefix(\u0022\u0060\u0060\u0060\u0022) || trimmed.hasPrefix(\u0022~~~\u0022)\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Documents/MarkdownRichTextRenderer.swift, Packages/OsaurusCore/Services/Knowledge/KnowledgeDocumentParser.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/OsaurusCore/Services/Documents/MarkdownRichTextRenderer.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c599a0232015ce47c53c39ee960c9f86cca7429cfc7f28a88c93c45fa8265226"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.isEmpty || trimmed.caseInsensitiveCompare(\u0022default\u0022) == .orderedSame\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Services/Inference/ModelService.swift, Packages/OsaurusCore/Services/Plugin/PluginHostAPI.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/OsaurusCore/Services/Inference/ModelService.swift"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"9065eb94cb3c132fb77a91383ab3fc0b665e6ee99020ab1255247c510e353f4a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060view === separatorView || view === contentContainer\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift, Packages/OsaurusCore/Views/Chat/NativeThinkingView.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/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"93580da8c2656fe3adf8b8c631751971d2f3ebe7db6aeb4c7a3fd1fa47e8b75e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060view === titleLabel || view === shimmerLabel\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Views/Chat/NativeActivityGroupView.swift, Packages/OsaurusCore/Views/Chat/NativeThinkingView.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/OsaurusCore/Views/Chat/NativeActivityGroupView.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"8198b80e5f8125a0e4efebfe064f86d5acbdcb59231ba7b5db28c20d5b38dccb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window.isSheet || window.sheetParent != nil\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedSheetCommit.swift, Packages/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedSheetSurface.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/OsaurusCore/Models/Theme/DesignLibrary/InspectorAssignedSheetCommit.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfae9319e779f6fe4f80080c9c076170fe9dd6c3a5357e3f05915d37fc71990"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060writeEnabled \u0026\u0026 writableChannelIds.contains(Self.normalizedId(channelId))\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift, Packages/OsaurusCore/Models/Slack/SlackConnectionConfiguration.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/OsaurusCore/Models/Discord/DiscordConnectionConfiguration.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e652bf4cc1441387226af885653c002e36a94c64e9ac7db203d56be20cfdda96"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060writeEnabled \u0026\u0026 writableChatIds.contains(Self.normalizedId(chatId))\u0060 appears character-identically in 2 files \u2014 Packages/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift, Packages/OsaurusCore/Models/WhatsApp/WhatsAppConnectionConfiguration.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/OsaurusCore/Models/IMessage/IMessageConnectionConfiguration.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"35022bd79db64c509ab18e205f8ab0dc4b6781ec97b1076c498491aaeb05ba10"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\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":"helpers/osaurus-wa/rpc.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"de516aff6b8f7614ad69d1277a83cf3558638365364640b6064f828b49ca7d0b"}},{"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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalDiffMatrixCLI.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea0ebff09beb847ce87ee7952734fc0f5645bd8733afe3d72a5b9e1ec309c42"}},{"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":"Packages/OsaurusEvals/Sources/OsaurusEvalsCLI/EvalReviewReportCLI.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91c9886e42ac72819f1def662017cf3ab3cf6ddc79b4644a4115e5127b4e115"}},{"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":"Packages/OsaurusCore/Views/Settings/CommandLineToolSection.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c5714c7ecfc7d40bb7f6291e2e510b1e86e151cfafe2c8221abb82258b4e5d"}},{"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":"Packages/OsaurusCore/Views/Onboarding/Dino/DinoDirector.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0daa5077e69923f83f2671f3e2848402d1c4fe7916b21a8dbe65771c7919fea5"}},{"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":"Packages/OsaurusCore/Views/Model/ImageGenerationPanelView.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f8d24a04920ed27e96eb830d6cc8d03df693da8b7001663fb976c27e8fe76a"}},{"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":"Packages/OsaurusCore/Views/Model/Catalog/LanguageCatalogSource.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a47ab77376842bc5cafb00958385b49990387490cc7fe8932f429b1cd9a97f"}},{"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":"Packages/OsaurusCore/Views/Model/Catalog/LocalModelsCatalogPage.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdacbe58feb631fc00a65737baedc2ca80641f7950ab1e2918a3fbff589f7d65"}},{"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":"Packages/OsaurusCore/Views/Identity/IdentityView.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"512efc51797b0816dd0c316a1e96f0f741f2761f80eb445a86043c60b0f88c68"}},{"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":"Packages/OsaurusCore/Views/Identity/RecoverFromMnemonicSheet.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8058545c2495ee6fb3558e07681fdc95c7413dbd8ebd1b49c57d60a587d771"}},{"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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"113842cd449f22803fc7bfe90a0952b12d659443a23900ccca2a0c6696377158"}},{"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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":6132}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cd9fc5ec57ce048e5cc8939fa9ccf0fbe8b24176d32b931e98e52e71c951cf"}},{"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":"Packages/OsaurusCore/Views/Chat/FloatingInputCard.swift"},"region":{"startLine":9179}}}],"partialFingerprints":{"codehealthFindingId/v1":"21962428309b02c3c3cd4150d856af602e8b968a750c8d8ed17c5a53e5b5920a"}},{"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":"Packages/OsaurusCore/Views/Chat/MarkdownImageView.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"772dcaf919d97d8ac8a63a61a45c053873f54d831efa82746ecc1e3f3079829f"}},{"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":"Packages/OsaurusCore/Views/Chat/NativeMarkdownView.swift"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9308fc933b3a8ba5be62301ad8d22beb10aee69bbdb3387f83802160f57edd"}},{"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":"Packages/OsaurusCore/Views/Agent/Database/DatabaseHistoryView.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0e6bc9509e28622fbc5d0067f5683ce46f3973ad1e9c5a08f53e796522434b"}},{"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":"Packages/OsaurusCore/Utils/LoginShellPath.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d6c686ca31192abf8b85f6c89ed59393697eecd5a94738de5b5e85feb9e178"}},{"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":"Packages/OsaurusCore/Tools/ConfigurationTools.swift"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2683dd72b5873d8c5eb77e0076eca68dc1106e2ad55458e7dba6a348e0a2e87"}},{"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":"Packages/OsaurusCore/Subagent/OwnedSubagentOperation.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea719b59a562bc565b8ff7c531166bfe35f01dbc8dc013f8c11ecb89d6d2ac5"}},{"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":"Packages/OsaurusCore/Subagent/SubagentBatchAdmissionPlanner.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fa6952a910d9bd346fa6e39d9cda2f87655226a7e7252683912dccc16a2ea0"}},{"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":"Packages/OsaurusCore/Storage/StorageExportService.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d824f29eaa3230c1e57f48c05f7f8436307e9f7da5ed6733b299493dd9e05d"}},{"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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"91dced39582956e68ae31ccb2f9dc8c777360122be2506c3302cc35769570fe8"}},{"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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabc3655e1fc04f9e5ed903fa63a2bc1e5f4b8e51d60be2b7dc6e7ac1c01d70f"}},{"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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"a142210aa0234f5e527f47ad9c24d4944791e64568943faa1df4bc496a9df0fc"}},{"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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1b11d40caa571afd7755a50c297b7c80da0973d550166fab4b265679b00dad"}},{"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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1919}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7756f4a3c852501d98621f7af16aa6a9e1c65a7bc21e7c1ea2ed9089e5a698"}},{"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":"Packages/OsaurusCore/Services/GitHubSkillService.swift"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cf5d82a6a1594d2445bccb3c35e05f0f5d9afd601a805edc14ec3aefb98d64"}},{"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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce38b6df0e6138a48c727efb1d52c176f367888ba637d3f2b04e0ddd460aa88b"}},{"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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4345188c42d0412af328ba9d0770e32c8975aea4b5a8c1f560cb30c4da1b5b"}},{"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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"116f67a1d4fa4a92c0bf90ec419f9a75e5323cee384ff1c2c514e7aeb8e04823"}},{"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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"de74cb1bca1d5a74fc4e87ea1d6a91edcbdacfb9a0fa7683d0c3443f197256c9"}},{"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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9cde5ae75d78f9f399a2f410fa9b9c0264e67bbc1a6cf3b9b71ac088115199"}},{"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":"Packages/OsaurusCore/Services/HuggingFaceService.swift"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"95247f775e3879896a76073cb150f3a4c991610b2395fef0bc1bf562c6c27983"}},{"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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a9263eaf73204da854853ec4eda541cf687a07bd5218e4dcc03ed72b006387"}},{"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":"Packages/OsaurusCore/Services/ModelDownloadService.swift"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"09010aecef89a7518c2c0e967989b201cb2d3491abfedd06ba2c2f641777b298"}},{"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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e247b5392986a922b433f1cb1a1c53476eb4a3cd0a9b5fcd6503e8994115161d"}},{"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":"Packages/OsaurusCore/Services/ModelRuntime.swift"},"region":{"startLine":8006}}}],"partialFingerprints":{"codehealthFindingId/v1":"30212f79c6593f1eae331b38e867ef69c01fba4cf70aa48bd394ad3c9f694e4f"}},{"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":"Packages/OsaurusCore/Services/ModelSSDResidency.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f9e232b3e096f281e825e45dcb5564b43119c0ca09f57e474ff2435350d960"}},{"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":"Packages/OsaurusCore/Services/OnboardingModelsProxy.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e910e337ed641c46699186616da4da1430fd63aad47c11c8aabc88dad7f485be"}},{"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":"Packages/OsaurusCore/Services/SystemPermissionService.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"47033bfd86aa74489ecd429373849813952285ab2b7b8cdf86509fe1896bd227"}},{"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":"Packages/OsaurusCore/Services/WhatsApp/WhatsAppWatchTransportRuntime.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d04adfef70d09f5360f87f1828d70ac76fff4036b45f8220eec5ecd42c8a91"}},{"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":"Packages/OsaurusCore/Services/Tool/ToolSearchService.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e879c7462428bcf24d41be2db42590c5211581305594733fd1f37c8326fa0e86"}},{"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":"Packages/OsaurusCore/Services/Template/RegistryReviewWatcher.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41b037ef503a3b048324a38f193fc2927eee1696791bc47c2abbcacfb75eb39"}},{"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":"Packages/OsaurusCore/Services/Template/WorkflowShareService.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"8057f927e4dffe365f7ded73ff8b3fddec45441a406dfefca23ef538485cf317"}},{"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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"899ff65d38d84f349d7555f00e6e8e5a5b42e57042255838364c1f92c9f8dec5"}},{"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":"Packages/OsaurusCore/Services/Telegram/TelegramConnectionService.swift"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"642875bff9547f3e7621041142696c854584779c1d2868d2d19aecf956f06205"}},{"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":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d330469ad6878f64a5e3c8ccb7bd3b5687c5015283f5255c8e106135949034"}},{"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":"Packages/OsaurusCore/Services/Slack/SlackSocketModeTransportRuntime.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"088bbf18443f583c08eb051c294930037145e047092b601e1c3f29d9a2e0d3a7"}},{"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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf00f0374642b27bca32186b59edd807e5b3f63d24f70ce1ddd5379107ff37c"}},{"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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eaa8191d6157c99802ae376626c2821f4d9981e2d0d983a0d47a67e53fb10cc"}},{"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":"Packages/OsaurusCore/Services/Skill/ClaudePluginManifestStore.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"6298690155c48034c6ed6f82f848626a2430cb6622821071df1b423c94e43244"}},{"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":"Packages/OsaurusCore/Services/Skill/ClaudePluginManifestStore.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b3d572da57603423036f27164f72b283b74130d0e2baea35d6d499d3289d52"}},{"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":"Packages/OsaurusCore/Services/Router/RouterBillingLedger.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e355c3035f339079a5bd4e6de30777b1a2a15e5c5738eebd70db584dccad5e12"}},{"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":"Packages/OsaurusCore/Services/Router/RouterBillingLedger.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"47aa348796c4855cf6841b0fed36ea3b8add76ef2c397881903b02133a695810"}},{"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":"Packages/OsaurusCore/Services/Provider/OpenAICompatibleStreamParser.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b74d55cdedcdcc696f58e7cfe53ad1cb6623ab133039a2cf880c1f8d9631b4"}},{"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":"Packages/OsaurusCore/Services/ModelRuntime/InferenceLoadCoordinator.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"2991d4bc939388f9f3602c1c4f656b959a0cbba8d6c575751882b41ea8a071c2"}},{"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":"Packages/OsaurusCore/Services/ModelRuntime/SwiftTransformersTokenizerLoader.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e81e2ea91fde43cf11cf08279f5c6b04beb8f2c529026104505681378f0604a"}},{"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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b238e218dd7955c0f9ace0e15c94c13b22078894bf9363fe7094bc2a5d173ba5"}},{"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":"Packages/OsaurusCore/Services/MediaGeneration/OsaurusCloudMediaClient.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83eac8b3e815833146fd45cc193fcf96ec6e0db661fd3351a260de290d52677"}},{"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":"Packages/OsaurusCore/Services/MediaGeneration/VeniceMediaClient.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"8302b420e380b19b5cf61c300c3d5d20aecdad297c4c4eafe4d7180981279b74"}},{"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":"Packages/OsaurusCore/Services/MCP/OAuth/MCPOAuthDiscovery.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ac8f15c71263f7b4671de6e689856a90e5fa5a860dc890a7f81558288c22ab"}},{"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":"Packages/OsaurusCore/Services/Knowledge/KnowledgeVectorIndexer.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99818e5a66460521f680dbf56514be4b5b85737ad1204df667cbb67c5ba2ab3"}},{"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":"Packages/OsaurusCore/Services/IMessage/IMessageSystemIntegrityProbe.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab4a69bcb4c0d9a7cfb941909b8ba76d6d57685e8659966978e632b4c876594"}},{"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":"Packages/OsaurusCore/Services/IMessage/IMessageWatchTransportRuntime.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"389705925fc45828fbc538337d760a2e84cab3488d089cf3d2abd3c65bf028f9"}},{"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":"Packages/OsaurusCore/Services/Harness/HarnessRuntimeProbe.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb193d859109cec849295b7e84af76cbbb560dd966f696caf16e7e6f6bf65995"}},{"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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7047d4eef460af0df887f5b1f42c745aab72a59399bbcbf09214c2856b09d6"}},{"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":"Packages/OsaurusCore/Services/FileHistory/FileChangeJournal.swift"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ca6e0e75dc18c8ee365dbfa25f7a3bcca045fce906356a42e602fb60cf630e"}},{"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":"Packages/OsaurusCore/Services/Event/EventStore.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb63bcf50e5e808648ab6ded739bece9269691d88e578ca3d676cc0a1818677e"}},{"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":"Packages/OsaurusCore/Services/Event/FolderEventSource.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7017db68f891914f7fb78724d74584c8712d62c2db6b4ea56aa5c396abbc39"}},{"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":"Packages/OsaurusCore/Services/Event/ScheduleEventSource.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"df97e828d3a2d34b34bb09aa277ee8da14d7ba7ce8130f40c5187119bb4fa095"}},{"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":"Packages/OsaurusCore/Services/Discord/DiscordConnectionService.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dcd5215cc53162927f06c9b1fbfcc0b8c8147a12b54d34c2edcce2f7dda96b"}},{"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":"Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"636318a699a95b83b3c89e1e89577ee9527d6524cac59a09430cf4722e631948"}},{"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":"Packages/OsaurusCore/Services/Discord/DiscordGatewayPresenceRuntime.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60a3540f60f1305163e648f401c18104a8724763d63ab5f7ba3d7f29e97a10b"}},{"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":"Packages/OsaurusCore/Services/Discord/DiscordPollingTransportRuntime.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f0d38a78d8368219fba44b98db2cc94783817e559ebbc9ed897eec4b2c2e9b"}},{"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":"Packages/OsaurusCore/Services/Credentials/CredentialReveal.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ad2a20c2bc49e6d01ecc37c9f590dd2abe96402eb5d8efc94a04799d0ff933"}},{"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":"Packages/OsaurusCore/Services/Channels/ChannelWriteKillSwitch.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6b27a43ba5493f7249b5a9f68ad22b2934dfa66dc51c39a8d3b964cad22a8d"}},{"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":"Packages/OsaurusCore/Services/Attention/AttentionFileIO.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"66682c34c99e637baa24d4df62d5c9316cfc7785fc2c798eaa4bb286591488bf"}},{"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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Resources/Harness/osaurus-pi-extension.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa103d7c670e647110246b8cefce2e77d8959fbde8a5d158f1ed55177adf94c"}},{"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":"Packages/OsaurusCore/PrivacyFilter/Rampart/RampartPrivacyDetector.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"632f6b9f81930272630b7d243b62e51cd90a36a281b8c649a05db82d6ad5cab2"}},{"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":"Packages/OsaurusCore/PrivacyFilter/Model/PrivacyFilterModelDownloader.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1222282ac13f1dda662660af7f712295ee1878670cf6b6e8d1e9cd43e2eea72"}},{"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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterEngine.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b37df9bce3af3258e74be1e6006fef64b411f621625c8257f1997f62dee0a8"}},{"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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":5914}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b8c6c7cb39c8e728790272da27baa93241ced9daf4c7996f20e6febc711376"}},{"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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":6387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07c5a9a79ecc1f466b87888af9b98d60e9c69ae38776a1441dc086d9cf0bffe"}},{"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":"Packages/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":13550}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d5c6f659ce8c70ca3ceac71445bd72f41d3cded4031fe79ac079346e5cf5a1"}},{"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":"Packages/OsaurusCore/Networking/RelayTunnelManager.swift"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"1352c7e746d64fdd977333eddc2af3fb0746f0f660ae4fd237d30cc8cc937706"}},{"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":"Packages/OsaurusCore/Models/Configuration/ClaudeCodeConfiguration.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab83da42921dbcbb61e736c40f7e5c48fc13c0b7a718e717b2adf158356e60e"}},{"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":"Packages/OsaurusCore/Models/Chat/SharedArtifact.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66ffb14e439ef91e3f3ce73dba5d88c695932ba1523b8e20e83b9f43822e3ef"}},{"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":"Packages/OsaurusCore/Models/Agent/SkillStore.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7308e655e01a05466480059f2645c34ada3b264f571995f1a935a3d8c0f04fe"}},{"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":"Packages/OsaurusCore/Managers/MCPProviderManager.swift"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4f1e6854ad2f8c56f8c549208ff41733af24abe8f508d4913d801a4876de1c"}},{"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":"Packages/OsaurusCore/Managers/OpenAICompatibleTTSClient.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3670b2b0276ec39c0c13b57e32a04ee7a1ad1a60bb0e93e5d0bee58211c297c"}},{"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":"Packages/OsaurusCore/Managers/ProjectManager.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5528e2ae114e0823c999c50c30f27dacae5cee1e6dfe1d188e6a47428c08ae"}},{"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":"Packages/OsaurusCore/Managers/RemoteProviderManager.swift"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"945f692d1813581dda36dde8b5412bc57ce6d67e7e3c21d8e53125192d16ee42"}},{"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":"Packages/OsaurusCore/Managers/SkillManager.swift"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"73eff1200b24ba5da03e64dddc9079d1a7623c7d1e26318bfcbe2c3212430123"}},{"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":"Packages/OsaurusCore/Managers/SpeechService.swift"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f6b4444d0d810a925157ca9ba6510264db63aeb8725ae41802ebeab696c042"}},{"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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"a961c047c9490b94945953b52066e8de093b0c2f686ca6add881d9e39219b768"}},{"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":"Packages/OsaurusCore/Managers/Model/ModelUpdatePolling.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe9472285e55642b6ba48545decedda9b7b69c7aa5aa828a6a3f4f719de9662"}},{"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":"Packages/OsaurusCore/Managers/Model/ModelUpdatePolling.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8c8210de3bd2d9555f1bdc51dabbbbe2768190f0667148693ff66805b5ffe8"}},{"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":"Packages/OsaurusCore/Folder/FolderContextService.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a1e845d4cfc16e98cbab2f0e71995f5d3a114d18eb7b60d4802f57a579b725"}},{"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":"Packages/OsaurusCore/Folder/FolderContextService.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb074e17df764e74d29670dbd962238b9392e1830ad31556fba15b33f026edd"}},{"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":"Packages/OsaurusCore/DevelopmentDesign/DesignFigmaChecks.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c576f5ece3106e15648f6ebbdea6c1e3982e2c1067c7f9b0f2d80181f0d4cf75"}},{"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":"Packages/OsaurusCore/AppleApps/Support/AppleScriptBridge.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69800587cb43c9feea6288f37e785d00c14f328af615d703534d4d4db526401"}},{"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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe1dd7c87c77b7daac5452e14ec1da4ef408220fe2bb720a29d3a436eabc5e1"}},{"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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/Configuration.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a33a50ad6c5d9bc1816aa2dd7f7573fe051e8b52dac7a604323fdf3ef12780"}},{"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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/CoordinatorLockService.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d6aae487dea0bc7ed7ce9b184ed6283bbfbad0fc0da345c1a8f12973f1217a"}},{"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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/InstallationDiagnostics.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bb39c384eb0d0978e139473db61771ca11a9e6d37adf9ce8935fdec03475ec"}},{"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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Services/ServerControl.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c7217c6d2fc86d4ce2bdff2244574e4cef59bad65a9dda55fc12975ebd71ee"}},{"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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Pull.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e8515394ae08527e554fa09cbb2743636b261a6b712e408bce9fa7dc24b750"}},{"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":"Packages/OsaurusCLI/Sources/OsaurusCLICore/Commands/Tools/ToolsDev.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"58231f6b3a8913407aa1e7165a669e850ced8fa371d475f75cf73ce64ed1822a"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: This repository commits no tsconfig, so whatever type-checks it uses tsc\u0027s own defaults, in which \u0060strict\u0060 and \u0060strictNullChecks\u0060 are OFF: \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060, and a value that is null is compiled through to the property access that throws. If the build passes \u0060--strict\u0060 on a command line instead, put it in a committed tsconfig \u2014 this check reads configuration, and configuration is all it can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"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":"Packages/OsaurusCore/Services/Workflow/WorkflowEvalHarness.swift"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ff0031a6207e3336ce8186c0659c4fddde2971b2a90d7e02ce75b716ace366"}},{"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":"Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6df12e03352b028e02e8e173959837dc1cb940478c7bad473e97dd5ae2e4be8"}},{"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":"Packages/OsaurusCore/Services/Provider/RemoteToolDetection.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"683d35bc8ab7f811a19762789c9fe04a9aa59c4da385dfe03b42e079becead8e"}},{"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":"Packages/OsaurusCore/Services/Provider/RemoteToolDetection.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d8d43cc27b3b3b6be9bcb6a61a9269aab0a4b9845bcc597bf3fa31e4beeaf1"}},{"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":"Packages/OsaurusCore/Services/Provider/RemoteToolDetection.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98fb3111ef9beda388c904de8cdd56d7dc8e5f4f4a11465366991987539e1bf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060object_at\u0060 returns \u0060{}\u0060 when \u0060(OSError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/evals/plan-installed-vision.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca1d0bd24d00a60d191945f4d101d4e2d370991ec27887660abc21a994cdfad"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060renderJSON\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/OsaurusCLI/Sources/OsaurusCLICore/Commands/Import/ImportCommand.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4538ac51efe176fba2f53a6b91821f5511a4c88b4ec6fc51ff3a44e5ba173d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ungroundedSettingsPaths\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunner.swift"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"538a42f8d2f4b78ba8bebdd555e35aa9ac0136943da602af8092f781be63a58d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060crashReportSnapshot\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":"Packages/OsaurusEvals/Sources/OsaurusEvalsKit/EvalRunnerSubagent.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bab27e746d69b04c5d51407cf450e3bfeb74ee5ccda5ff783074b38cc8f23e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060pending\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":"Packages/OsaurusRepository/ImportQueue.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f040c56168d9dabd5593a58e8d6fbc66a66c61abe72ad32d8d534507909d2eb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060installedVersions\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":"Packages/OsaurusRepository/InstalledPluginsStore.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4b393a138801bb0b516ccfb20ca6a02a778c216b3fd0ed20e33812771639d7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060allInstalledPluginIds\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":"Packages/OsaurusRepository/InstalledPluginsStore.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"393d16411d6f1bbe130dcf54b58216cfa22a99bd79d4586618e9c8fdadce3bd9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060redactedPairInviteRequestBody\u0060 turns every thrown error into \u0060\u0022\u003Credacted\u003E\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/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":9495}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66c27c6db4cac2aba1dd3604238a752cd1a2e5803fbb694f5cca67d95f6d95d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ollamaGenerateJSON\u0060 turns every thrown error into \u0060#\u0022{\u0022done\u0022:true}\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/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16431}}}],"partialFingerprints":{"codehealthFindingId/v1":"394d431d30be76eeb50e3b52514b6dcb256ebff2bafb2af61607167598823ce9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ollamaChatJSON\u0060 turns every thrown error into \u0060#\u0022{\u0022message\u0022:{\u0022role\u0022:\u0022assistant\u0022,\u0022content\u0022:\u0022\u0022},\u0022done\u0022:true}\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/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16472}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4d65148e8cabadfd593a39ee38ae913e8b730f811d456f1ecfab4a440804cb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ollamaGenerateErrorJSON\u0060 turns every thrown error into \u0060#\u0022{\u0022error\u0022:{\u0022message\u0022:\u0022internal error\u0022,\u0022type\u0022:\u0022internal_error\u0022},\u0022done\u0022:true}\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/OsaurusCore/Networking/HTTPHandler.swift"},"region":{"startLine":16493}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9aedf868247f515d33e08001dbfc5d48a9ea31add356d9fe2f0e7a1781ce74"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/FavoriteModelsStore.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb6edd8f305a863bdebe22476ead9ee3356ece7d4aa844710f81b20e87a78b2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060list\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":"Packages/OsaurusCore/Configuration/Declarative/OsaurusConfigTool.swift"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4919fee74685ca9aadae280696e7b54b3cd1ce836bd7faa27dffef4fb21a206"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060requestHFModels\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":"Packages/OsaurusCore/Managers/Model/ModelManager.swift"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d8a5510132341726458fb3cde0768f698a3162c779405cd5664a85b6236a80"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060quarantineEntries\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":"Packages/OsaurusCore/Managers/Plugin/PluginManager.swift"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"d323b93feb1ba9ac04de948befdc9f9f6866022f1f6f45e121b17bc5dac3eac9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060availableVersions\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":"Packages/OsaurusCore/Managers/Plugin/SandboxPluginLibrary.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"31aa78849a53fef26fdf38e9e9e4581969b4d09a6e230f709ea71c815f8d0b23"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060highestVersion\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":"Packages/OsaurusCore/Managers/Plugin/SandboxPluginLibrary.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab25314d5ec3b41736c5c6b229864fb27acc45224dfa7e090864c82be7d6f520"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060compactJSONString\u0060 turns every thrown error into \u0060\u0022null\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/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":2123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea16296debfd12fce5cfd3ee67a9c7d50070403dfbbc5ed168b7156d09af3b7b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060prettyJSONString\u0060 turns every thrown error into \u0060\u0022null\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/OsaurusCore/Models/Workflow/WorkflowDefinition.swift"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ba2b626c722d044eb863b88736722377368c91742a8fdf3f5d3ce27f11abe5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060reservedIdentities\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":"Packages/OsaurusCore/Models/Agent/AgentStore.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"773e1fa0c3e27e038cb52e0b808ef3b9aa21e64709afd19aed5f3312e9d489b7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060recoverableBackups\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":"Packages/OsaurusCore/Models/Agent/AgentStore.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f164548dc7c5bcf8a81ffe8ce6331ed197248fc20192e1b4e2a2ab5d50db86"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadAll\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":"Packages/OsaurusCore/Models/Agent/RemoteAgentStore.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5523afabece6a51b3797b526862468f6abb5b155a7837f765e3906e5457ec6a7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadFiles\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":"Packages/OsaurusCore/Models/Agent/SkillStore.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9ec2ed8ce7a6fc03b421f998c11d701cb86bb2e4c6f51eebb090f435bd23e6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseItems\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":"Packages/OsaurusCore/Models/Chat/AgentTodo.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e79945fff337959e6bbdbefafc6e25fe46286a1f28384235b29b84338a30b3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safetensorsFormatTags\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":"Packages/OsaurusCore/Models/Configuration/ModelFormatDetection.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ae6bcb731eddd4d2f4cf2357d3cac4b08d7da33a1dfca2cb72818d4c00f6f9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadCustom\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":"Packages/OsaurusCore/Models/Configuration/SearchProviderConfiguration.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce3eb2932d03219c86eadfae62b0b4e17fb2476399f20a2392d9716c3e37c15"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadAll\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":"Packages/OsaurusCore/Models/Knowledge/KnowledgeCollectionStore.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f262ea3a5824e9fb4bcd93984effd068f68ba2a4d62a310e82aaaaa039406de"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060contentHash\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/OsaurusCore/Models/Plugin/SandboxPlugin.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b697a06000e8334d621e846d24587be0d06af0d7898df44b8132b4a842b6c777"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadAll\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":"Packages/OsaurusCore/Models/Project/ProjectStore.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebfe3a2a2ab0d3e9149df5caf65b445ced4fa40465810fbd6e06c1b6888f0df"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadAll\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":"Packages/OsaurusCore/Models/SlashCommand/SlashCommandStore.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8ea3c2d807b8f2246e75b0001c9694747bfc43aafda1f6147e9536a0962001"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060pretty\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/OsaurusCore/Models/Workflow/WorkflowDraft.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adb1c4b1475fe807c9c22dd7093d4b249af5c886ed561493fe9f477eb199ccf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060modelSpans\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":"Packages/OsaurusCore/PrivacyFilter/Core/PrivacyFilterEngine.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd81816f5a976d391a2e4085e7fd358a8dfb8791f8c277ddc753fbe601d5a21"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060modelSpans\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":"Packages/OsaurusCore/PrivacyFilter/Rampart/RampartPrivacyDetector.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f15819e65c964f37ec7702a621ec4c46b665853f96201910d8d21edfc15759d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060nextMigrationIndex\u0060 turns every thrown error into \u00601\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/OsaurusCore/Services/AgentBridge/MigrationGenerator.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"be72d0cc6b3876158d86a4225fdf8eabab5a6f489cf2da4adfa9d104a599bb95"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060all\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":"Packages/OsaurusCore/Services/Attention/NotificationChannels.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"618edf2efe5ee809e46cfa6951d92f33e5ddc2b10730d447fb5cb84997059ce5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060jsonCandidates\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":"Packages/OsaurusCore/Services/ChatImport/ChatImportFastPaths.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bedb270a18b22e420703ada970b610ef83cb65fac1930b4e382d0554f8252a4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060links\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":"Packages/OsaurusCore/Services/ChatImport/ChatImportSourceResolver.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6a858c6d196b08be93ba03a6635445755902d99f6065300402afae8091c538"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060bareGitHubLinks\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":"Packages/OsaurusCore/Services/ChatImport/ChatImportSourceResolver.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc38483a5a792204d24c9f1eed228620001f9a498b5ab9d5bf9c350fd8d36cf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractHTMLExternalReferences\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":"Packages/OsaurusCore/Services/Documents/DocumentFileInspector.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0719e921a0e01b8ccac6d18447e53989e7f6ae980f7d8c4d41d8b9ee436bb955"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060json\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/OsaurusCore/Services/Event/EventWebhookIngress.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36f7a152713cd613095236cddcb1a08f784e4bc4c0017528908e06fa993fb9a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060runsToday\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":"Packages/OsaurusCore/Services/Event/SelfScheduleAutomations.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd0eff5ac9ca56dd858442d84d72767d3e67812968a207a275159f1a7e6c994"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060collectGarbage\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":"Packages/OsaurusCore/Services/FileHistory/FileObjectStore.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b97ee14ba2c70aa2ea60c3fbdbdb64105a915563d931f788b1a824ce58617f2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/MCP/MCPProviderHealthSnapshotStore.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6129f96a17d5614ac6aa9cf9e99cb39ded9f44126614706dd2a6270f9e559b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060assembleIdentityOverridesOnly\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/OsaurusCore/Services/Memory/MemoryPlanner.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7947bae4f6e7282f62f3ea59c27082238996ef2b0dfe4f70779547858e1477b7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060assembleIdentity\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/OsaurusCore/Services/Memory/MemoryPlanner.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"881c2d9791e60f7384e9ed47dcb685e9662de138d794d82c7b30411c9fa3e1a3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadToolDescriptions\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":"Packages/OsaurusCore/Services/Method/MethodSearchService.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1d27a2a90816ab59848d4cf9dd5b8ee64457b897f214aef4111a46d7309c59"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060jsonString\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/OsaurusCore/Services/Plugin/PluginHostAPI.swift"},"region":{"startLine":3526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0305b292469e24d7faf543f40732b890d07ecb9e958eae3730a86a0e7e6d2e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060estimatedBytes\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":"Packages/OsaurusCore/Services/Provider/RemoteResponsesPrivacyStream.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ed528e8482e8eb85f8ea9f9b7080cf19c8dc12bec6c04071576ad733eb760b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listEnvironments\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":"Packages/OsaurusCore/Services/Sandbox/SandboxRootfsTemplateStore.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ada2cb3209f6713318d68c36e6f6009bed7f05e11dd8d55c9a1741696b315f0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/OsaurusCore/Services/Sandbox/SandboxStartupMetrics.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9200436c6e924cccc31030a75a182c69a966c1934c4292194bcbead79b7e41"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadFailures\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":"Packages/OsaurusCore/Services/Sandbox/SandboxStartupMetrics.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5c1466489fe6aa0dd27d1d8cd3cd851fdb840031c5a0f5fe9ddbc245d4bbbe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sliceByClass\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":"Packages/OsaurusCore/Services/Search/SearchHTMLHelpers.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ea8a4140f49392299510f0abb45cae193787b3f238ed644ac70101b07c3366"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchSkillAssets\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":"Packages/OsaurusCore/Services/Skill/ClaudePluginInstaller.swift"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"187f94621e1217d1732287d0e456aa6346f8ac44675da2fa655af44b82c9ad42"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060all\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":"Packages/OsaurusCore/Services/Skill/ClaudePluginManifestStore.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa65e324f06ba501cda19bcbf9182f408d7fafcb9ccc651a21c3b69167eba6b4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060mentionedUserIds\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":"Packages/OsaurusCore/Services/Slack/SlackConnectionService.swift"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"296bb2376e535198b1aefacb1eafa5b5bc83f30c02e63a54528f5fcc24a12aa9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060size\u0060 (in \u0060fitTurnObject\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":"Packages/OsaurusCore/Services/Sync/SyncConversationMapper.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"54584773307fe17cf96b6c2f890ae7d7ad8a80106f1839e20fbfacd6623017c8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060versionNumbers\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":"Packages/OsaurusCore/Services/Template/TemplateStore.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5ea756449cafe51a43f5a2908df94c81c84ab92d701b3f4ed1d95cf32b6306"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadLatest\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":"Packages/OsaurusCore/Services/Template/TemplateStore.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"395646a17489cac209fd662a21c56d781dd2133a1adeea29b9252bbe5de2c906"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060unshareAuthor\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":"Packages/OsaurusCore/Services/Template/WorkflowShareService.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c0743f981593d9640f8120a7d87bd458a6c2181c62c02182570cd4c941e89a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060workflowFiles\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":"Packages/OsaurusCore/Services/Workflow/InstalledWorkflowStore.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"722fd4c594d4381ae8192fe0f60ea22b829f40cb1568c16a4e7b65f690fb123a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060staleWorkspaces\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":"Packages/OsaurusCore/Services/Workflow/WorkflowRunStore.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"73857e0ab4c290d8455853e868599da204d8d3feece5f2d88ad023b082946387"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060featuresLostByRegeneration\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":"Packages/OsaurusCore/Services/Documents/OOXML/XLSXPreservation.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd60e8786e738824cf9125ee6bc1a6e49034f865c92b3b9d9e375d26c6fb4c8"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060path.hasSuffix(\u0022/.well-known/agent-card.json\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060path.hasSuffix(\u0022/.well-known/agent-card.json\u0022)\u0060 also satisfies \u0060path.hasSuffix(\u0022/agent-card.json\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":"Packages/OsaurusCore/Services/ChatImport/ChatImportSourceResolver.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c83de27932d598fa787def794d0a7eb6a2e7114e26308e3061c3215415bf79b"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":423,"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."]}]}