{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"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":"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":"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED1","name":"Handler temporal coupling","shortDescription":{"text":"Handler temporal coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/ED1"},{"id":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"main.swift.top-level code (cyclomatic 96): main.swift.top-level code 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":"macos/Sources/OmarchyVMHelper/main.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f789d15dfa2b6b0613bf1c912a277a41331fe9576ace4d10546cc3727bf26f"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeAuthenticationRequest.decode (cyclomatic 33): NativeAuthenticationRequest.decode has cyclomatic complexity 33 (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":"macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a266e021c501ffad0c3acae73d16a7353036ef3a7d90094581ff917d3581ad70"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkLinkStateReader.read (cyclomatic 28): NetworkLinkStateReader.read has cyclomatic complexity 28 (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":"macos/Sources/OmarchyVMHelper/NetworkLinkBridge.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c301b1d27b396101968e9ab4fc520709082fedd0bda8ef5998b96da1587274"}},{"ruleId":"D1","level":"warning","message":{"text":"FactoryImageDownloader.run (cyclomatic 27): FactoryImageDownloader.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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b92bf06723a371abcec286d1170c9a049fedfa8beb6366b557b9f9de3807716"}},{"ruleId":"D1","level":"warning","message":{"text":"VMRunEvent.decode (cyclomatic 26): VMRunEvent.decode 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":"macos/Sources/TryOmarchyKitClient/VMRunProtocol.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ad65605a903aae0b9f042b113573b3a9e48d77d54fd65c89c2156b374252f6"}},{"ruleId":"D1","level":"warning","message":{"text":"pack-app-icon.checked_png_dimensions (cyclomatic 26): pack-app-icon.checked_png_dimensions 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":"macos/pack-app-icon.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc84685518428f28273809861bea8c911e3ac5b5c48e5e95c2e6c1dafc890701"}},{"ruleId":"D1","level":"warning","message":{"text":"StorageLocationPolicy.validate (cyclomatic 23): StorageLocationPolicy.validate 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":"macos/Sources/OmarchyVMHelper/StorageLocation.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5274667e576098f0985c227a86d12312c45aa5e4818040314327f4fc764ee07f"}},{"ruleId":"D1","level":"warning","message":{"text":"VMRunLaunchSettings.make (cyclomatic 23): VMRunLaunchSettings.make 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":"macos/Sources/OmarchyVMHelper/VMRunSettings.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8de41f02a012d47cce9cbd549f60f90b2fa071eb2b4652078439173ed14b3a"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellGuestStatusBridge.run (cyclomatic 22): ShellGuestStatusBridge.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":"macos/Sources/OmarchyVMHelper/ShellGuestStatus.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5947940862cb978d1840800955a745bae645af4553de5750e9a9473c6a38250d"}},{"ruleId":"D1","level":"warning","message":{"text":"VMRunConfiguration.validate (cyclomatic 22): VMRunConfiguration.validate 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":"macos/Sources/TryOmarchyKitClient/VMRunProtocol.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdebab34065501e74d8e2f00cf0746a7b8b3a24f4bd49b2677681df1006520a0"}},{"ruleId":"D1","level":"warning","message":{"text":"network-identity.identity (cyclomatic 22): network-identity.identity 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":"macos/network-identity.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3efb408bd17bff8ba74de4625ac50cca8046cde9e067297af53e632cce2368"}},{"ruleId":"D1","level":"warning","message":{"text":"VMApplicationController.prepareStartMenu (cyclomatic 20): VMApplicationController.prepareStartMenu 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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"8920fa5e738b894727953422c9331484bc41a22878ca957d630dd354e0bb654f"}},{"ruleId":"D1","level":"warning","message":{"text":"VMWorkspaceTransfer.copy (cyclomatic 20): VMWorkspaceTransfer.copy 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":"macos/Sources/OmarchyVMHelper/VMWorkspaceTransfer.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6111a0eeaf07666ffe871791851a64361fa56a4b35b1ab67bbb47a8e1980f40"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkEditor.update (cyclomatic 18): NetworkEditor.update 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":"macos/Sources/OmarchyVMHelper/NetworkEditor.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"52919a3d79ee3c599b90824850ed0a72bbbd9c7902fb9df3678eb0e739f19304"}},{"ruleId":"D1","level":"warning","message":{"text":"VMRunConfiguration.decode (cyclomatic 18): VMRunConfiguration.decode 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":"macos/Sources/TryOmarchyKitClient/VMRunProtocol.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebae0c35e74f0d3dfbb75e1d169d945628bc36bb4d0a5b2e69ef556fe3394796"}},{"ruleId":"D1","level":"warning","message":{"text":"FactoryDownloadManifest.decode (cyclomatic 16): FactoryDownloadManifest.decode 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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4072a25f93fb2d17d590615cf2be1ea7d19ccae8e08b7650f4da05b7cb1dc189"}},{"ruleId":"D1","level":"warning","message":{"text":"FactoryImageDownloader.urlSession (cyclomatic 16): FactoryImageDownloader.urlSession 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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93c70d53e56aba12450a3c688ad71cd93053c74fdacd64bbef83a22788bd7f2"}},{"ruleId":"D1","level":"warning","message":{"text":"SparseDiskZeroRanges.punch (cyclomatic 16): SparseDiskZeroRanges.punch 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":"macos/Sources/OmarchyVMHelper/SparseDiskZeroRanges.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fb320383b83ae39e68334aa1f486370eb81137159bee83f9a00859f809788c"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.top-level code (cognitive 212): main.swift.top-level code has cognitive complexity 212 (threshold 15). Drivers by points: if/else 55 (138 pts), loops 9 (28 pts), boolean chains 24, error handling 7 (19 pts), ternaries 1 (3 pts) (nesting depth added 116). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/main.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa09732bb4a1217433a631cd696d2f94b695f26453d634d647cf0cb3da00361"}},{"ruleId":"D2","level":"warning","message":{"text":"FactoryImageDownloader.run (cognitive 40): FactoryImageDownloader.run has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 3, loops 3, match/switch 1 (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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"e002fa4a783ef1de511f25af4fec64997eaf4610b4afc68fb78c1c18659fdfbd"}},{"ruleId":"D2","level":"warning","message":{"text":"pack-app-icon.checked_png_dimensions (cognitive 37): pack-app-icon.checked_png_dimensions has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 7, 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":"macos/pack-app-icon.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f499373f6e49b239b504488bc933379f0b78b8261b98355e809051b7fb184b"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellGuestStatusBridge.run (cognitive 36): ShellGuestStatusBridge.run has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 8, 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":"macos/Sources/OmarchyVMHelper/ShellGuestStatus.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"489264a71481fc6efc1c84107b0372f60a4369ae3e5469a9417f8deaf09da10a"}},{"ruleId":"D2","level":"warning","message":{"text":"VMRunLaunchSettings.make (cognitive 36): VMRunLaunchSettings.make has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 5, loops 1, 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":"macos/Sources/OmarchyVMHelper/VMRunSettings.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63e2cf30060e28f827d72a59a746d395f1b1821d7760bc4db61b15ad26ef23e"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeAuthenticationRequest.decode (cognitive 33): NativeAuthenticationRequest.decode has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 25, if/else 4 (7 pts), match/switch 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":"macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35f55d9035fed9fe1b4ae3e445652a6de60613670585156849ed4cac63b7a91"}},{"ruleId":"D2","level":"warning","message":{"text":"VMRunEvent.decode (cognitive 29): VMRunEvent.decode has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 10, match/switch 1 (nesting depth added 8). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/TryOmarchyKitClient/VMRunProtocol.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32ed5ba4eec47f16685321d97cca6c291a5443d8817da33e6edb6f7cf15ec29"}},{"ruleId":"D2","level":"warning","message":{"text":"QMPConnection.readJSONObject (cognitive 28): QMPConnection.readJSONObject has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (25 pts), ternaries 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":"macos/Sources/OmarchyVMHelper/QMPConnection.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b98d8b711cac34e08415cef4da59a50f2db9a5286f19a87cd17e7f7cbfc1e1"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeTimeZoneBridge.run (cognitive 27): NativeTimeZoneBridge.run has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (21 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":"macos/Sources/OmarchyVMHelper/NativeTimeZoneBridge.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"77651d555fffcf0bf476eb34c29d53f79f7a18605ec840713a4d4f34620c46ba"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkLinkStateReader.read (cognitive 27): NetworkLinkStateReader.read has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 20, if/else 6, loops 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":"macos/Sources/OmarchyVMHelper/NetworkLinkBridge.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a659042b7965f60fbab805ead53619157d3be73661101ddd44d4211bab3f0365"}},{"ruleId":"D2","level":"warning","message":{"text":"network-identity.identity (cognitive 27): network-identity.identity has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (19 pts), error handling 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":"macos/network-identity.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00faa8b75469e7efd90ff29a7f0af0ba0436c97db17cc73e18d6dc3f3307229"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageLocationPolicy.validate (cognitive 26): StorageLocationPolicy.validate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/StorageLocation.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"befd6756b28885a18866ec32b3911b96a56f8b50a64004533f6af0c8e03ccc2b"}},{"ruleId":"D2","level":"warning","message":{"text":"FactoryImageDownloader.urlSession (cognitive 25): FactoryImageDownloader.urlSession has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, ternaries 1 (3 pts), 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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"390983c88379b52810bde8a396a01dce9acc7e79534501c3d39feae33c646eec"}},{"ruleId":"D2","level":"warning","message":{"text":"SparseDiskZeroRanges.punch (cognitive 25): SparseDiskZeroRanges.punch has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/SparseDiskZeroRanges.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3e3b05e10ac3fcbe3a5fa6edda5ea6be5484f56164bfeadab8dffbfd51f4f7"}},{"ruleId":"D2","level":"warning","message":{"text":"VMWorkspaceTransfer.copy (cognitive 24): VMWorkspaceTransfer.copy has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 4, loops 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, 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":"macos/Sources/OmarchyVMHelper/VMWorkspaceTransfer.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0637897f88933e198ac2de356a52eef25df3266d0d7a5ec4bc869eb7dbfb986f"}},{"ruleId":"D2","level":"warning","message":{"text":"VMApplicationController.prepareStartMenu (cognitive 23): VMApplicationController.prepareStartMenu has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 3, error handling 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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa08f7e6390ee430f8d055fa2c6244d241f84bc27697b4c8d6ab51c5955d6ca"}},{"ruleId":"D2","level":"warning","message":{"text":"QMPVMHostSleepController.resume (cognitive 23): QMPVMHostSleepController.resume has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (18 pts), error handling 2 (4 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":"macos/Sources/OmarchyVMHelper/VMHostSleepController.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"1452e58ddab335324135bf6ab992d1fd34bb90d3b9f6c4117d14354150dbc85d"}},{"ruleId":"D2","level":"warning","message":{"text":"VMRunConfiguration.validate (cognitive 23): VMRunConfiguration.validate has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 14, if/else 7 (9 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":"macos/Sources/TryOmarchyKitClient/VMRunProtocol.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1d62fac504b90651e0e4dd68e2b5508ae4821db4c569b9c9607471e36959d3"}},{"ruleId":"D2","level":"warning","message":{"text":"VMApplicationController.startVirtualMachine (cognitive 22): VMApplicationController.startVirtualMachine has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 1 (2 pts), boolean chains 1, 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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7f6f5cfd1e6a801fa52695b2526e2b6eab4ed9d119eb40386bdae608db026a"}},{"ruleId":"D2","level":"warning","message":{"text":"VMRunConfiguration.decode (cognitive 22): VMRunConfiguration.decode has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/TryOmarchyKitClient/VMRunProtocol.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf4a652f56ce681d180dd72e6f7d64363ab636914bbab34c9debbea823d5ddc"}},{"ruleId":"D2","level":"warning","message":{"text":"VMApplicationController.childDidExit (cognitive 21): VMApplicationController.childDidExit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6ec97331fbc1747101f7e04d57370462b3fc37ca2f1fdabbe556bdb623b910"}},{"ruleId":"D2","level":"warning","message":{"text":"VMProgressStream.append (cognitive 19): VMProgressStream.append has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (18 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":"macos/Sources/OmarchyVMHelper/VMProgress.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6573ec8b41a71e0424297459c1a99a4000fd56987e006bf2b3efb29b64b067a"}},{"ruleId":"D2","level":"warning","message":{"text":"FactoryImageDownloader.urlSession (cognitive 18): FactoryImageDownloader.urlSession has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, error handling 1 (3 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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bee6c6c342832be85aa50f4c0ad0e8447dab47281d6cd363caa77f57fc877d"}},{"ruleId":"D2","level":"warning","message":{"text":"LauncherSettingsFile.readyFolder (cognitive 18): LauncherSettingsFile.readyFolder has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 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":"macos/Sources/OmarchyVMHelper/LauncherSettingsFile.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2707db95b2c81f6c0cee643e0d2e57b64ce2a9edfdd34f338439734ec50355a"}},{"ruleId":"D2","level":"warning","message":{"text":"FactoryDownloadManifest.decode (cognitive 17): FactoryDownloadManifest.decode has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, 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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d04eeda8b8af42a21d3e7229a701577ecf0351f365462087fe9e20b3e2eff2"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeAuthenticationBridge.handle (cognitive 17): NativeAuthenticationBridge.handle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), error handling 2 (5 pts), boolean chains 3, 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":"macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a12c5ad1710d8eaf85f9efc683ae50edf30d940b76d99dda0f9c4636887bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeCameraBridge.copyNV12Payload (cognitive 17): NativeCameraBridge.copyNV12Payload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, loops 2 (3 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":"macos/Sources/OmarchyVMHelper/NativeCameraBridge.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"0955816933e63b997c1a739a4017a6e5ae961d05505f857367689c45ee14ea18"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkEditor.update (cognitive 17): NetworkEditor.update has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, ternaries 3, if/else 1, loops 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":"macos/Sources/OmarchyVMHelper/NetworkEditor.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3272d7203d05508ba86b8a6e8640d85f3247c6e00be5cb58957d7b8d48f4da1e"}},{"ruleId":"D2","level":"warning","message":{"text":"network-identity.private_fd (cognitive 17): network-identity.private_fd has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (6 pts), error handling 2 (5 pts), boolean chains 3, ternaries 3 (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":"macos/network-identity.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b995816fb55f6f59cda556d9e2ead5685ef91e9ec3af3d4dc2dcf2a74968ef23"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipboardMessage.decode (cognitive 16): ClipboardMessage.decode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 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":"macos/Sources/OmarchyVMHelper/NativeClipboardBridge.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd46d3eb560e6c0daeecf3da35ed31b9e854d618c3faf46627d4d29974f9c7a2"}},{"ruleId":"D2","level":"warning","message":{"text":"PortForwardingEditorModel.validation (cognitive 16): PortForwardingEditorModel.validation has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (7 pts), error handling 1, 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":"macos/Sources/OmarchyVMHelper/PortForwardingEditorModel.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"964cba503562b08e014cdfbc2c07718dca8a06b1bc6f3b5647dccac6fefdf2af"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageIO.sync (cognitive 16): StorageIO.sync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), boolean chains 6, loops 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":"macos/Sources/OmarchyVMHelper/StorageIO.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fd78d13a2ffc0a069468fd85d0ababddcc91c848560263c4fe954f097dbe8e"}},{"ruleId":"D2","level":"warning","message":{"text":"VMWorkspaceTransfer.copyRegularFile (cognitive 16): VMWorkspaceTransfer.copyRegularFile 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":"macos/Sources/OmarchyVMHelper/VMWorkspaceTransfer.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"83172ac4eb8447e0fe29c854b17a7a4a8b61ad8e442278a60ab1cd04e6e0715e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.swift.top-level code: FunctionTooLong \u2014 top-level code runs 287 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 187 over it, 2.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":"macos/Sources/OmarchyVMHelper/main.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a516ff95c052f8cd4ca6d2ec119753eafa396c7abcbda76f6cc74dc3ed81722"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VMApplicationController: ClassTooLong \u2014 788 significant lines (blank, comment-only and punctuation-only lines excluded), 48 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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dab8a41ca834411e9417a9827bef859a66d5002118d53b99b0a12a0bdcac512"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StartMenuWindow: ClassTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 296 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":"macos/Sources/OmarchyVMHelper/StartMenuWindow.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"082edd683b0631a4681c086de27dbc45602441d9873862fd31403bc99482b5b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OmarchyVMHelper/VMApplicationController.swift: FileTooLong \u2014 821 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: VMApplicationController (48-1176). The bar is 500 significant lines; this is 321 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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f237c5dc50eb83ca4313bd81286fce39942314d5e9a18f4c07da8923f964b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StartMenuWindow: 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":"macos/Sources/OmarchyVMHelper/StartMenuWindow.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafb234b966fc16052c81a37d9c28255737c7f05d25ad19712b436273ee61a88"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VMApplicationController: 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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0503f3f82ef3ed5810eb8ece26ca48feb5fd1ccf3c545fc75a68e3aecf79f71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OmarchyVMHelper/StartMenuWindow.swift: FileTooLong \u2014 712 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: StartMenuWindow (25-931). The bar is 500 significant lines; this is 212 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":"macos/Sources/OmarchyVMHelper/StartMenuWindow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f3235578d98a5da895889320540399277d0ceb4c00ed27a34a34d788fa8649"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VMApplicationController.prepareStartMenu: MethodTooLong \u2014 prepareStartMenu 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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfbbf05377c894691686a8cf385a519310d424059f3220fd6bd8e5a7beceac6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OmarchyVMHelper/FactoryImageDownload.swift: FileTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: FactoryImageDownloader (280-788). The bar is 500 significant lines; this is 83 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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1857b393e6eccfb3f74888316705dd84da84e1ccf809d1914b92ea922523569"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OmarchyVMHelper/QEMUGPULauncher.swift: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa7f06f84f1ad004fb91992fcc7ed631ed6ad9e85e4db95c84b5f0e61d18c8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: OmarchyVMHelper/LauncherView.swift: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 30 over it, 1.06\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":"macos/Sources/OmarchyVMHelper/LauncherView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3eabb295a8dc2f459e309e4a1ebc29ddb6c8452fb5d18fa1c501f9d89f40446"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VMRunSettingsWindow.makeWindow: MethodTooLong \u2014 makeWindow 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":"macos/Sources/OmarchyVMHelper/VMRunSettings.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1441fb72375eec121190e20636067251be5b2bc0cbc630139e9df9d59e9a431a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift:8-61 | macos/Sources/OmarchyVMHelper/QMPConnection.swift:207-269 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddf404972cb8aa6b924d003f725142944d001cebc0fa01323dfaedd007112d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): macos/Sources/OmarchyVMHelper/VMApplicationController.swift:809-851 | macos/Sources/OmarchyVMHelper/VMApplicationController.swift:876-902 \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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5862296aaaa48555462607ffdf249aa86f8c0270c097d79d9abc960d8e95c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): macos/Sources/OmarchyVMHelper/VMStorageEditor.swift:173-198 | macos/Sources/OmarchyVMHelper/VMStorageEditor.swift:244-271 \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":"macos/Sources/OmarchyVMHelper/VMStorageEditor.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"413b2a774f0364cad8b120a67a485dbde2c99a1bdb533219353a11acf0df4522"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): macos/Sources/OmarchyVMHelper/LauncherView.swift:406-440 | macos/Sources/OmarchyVMHelper/LauncherView.swift:450-487 \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":"macos/Sources/OmarchyVMHelper/LauncherView.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"5890853178acb774959719ca57d5bfc008f2aca2411dde3f0e05e704c8113fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): macos/Sources/OmarchyVMHelper/VMStorageEditor.swift:221-240 | macos/Sources/OmarchyVMHelper/VMStorageEditor.swift:273-292 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/VMStorageEditor.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"01435d23743dfb6c9f5b51d978fdf9a1e9a96f6615f9cd51b28ecd663b813619"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift:64-79 | macos/Sources/OmarchyVMHelper/QMPConnection.swift:271-292 \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":"macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d79f6a24ae98cc5af96a82f81fa21fea36b7504968c2d849ca51e5c6de39ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift:58-78 | macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift:83-99 \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":"macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3755f499fa1d66389942730e347c492b44a968c7f05eacf176a71f94e650d5f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift:391-411 | macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift:418-438 \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":"macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d20c98dbf2af7297d03a5cc34d3914a318b6c2e22c66bb6838fcf39af5212b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): macos/Sources/OmarchyVMHelper/SharedFolder.swift:32-42 | macos/Sources/OmarchyVMHelper/StorageLocation.swift:34-44 | macos/Sources/OmarchyVMHelper/USBPassthrough.swift:89-99 \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":"macos/Sources/OmarchyVMHelper/SharedFolder.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dea4e65eee0188e0d35cdd9ea7fef4c20184b51c51f592754ad140d1a0bb23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): macos/Sources/OmarchyVMHelper/QMPConnection.swift:27-44 | macos/Sources/OmarchyVMHelper/QMPConnection.swift:49-65 \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":"macos/Sources/OmarchyVMHelper/QMPConnection.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d968ffc9198da5a26165fc3c326a08d4315a685d23f9fff72e25aaacce54be1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): macos/Sources/OmarchyVMHelper/VMApplicationController.swift:853-860 | macos/Sources/OmarchyVMHelper/VMApplicationController.swift:864-872 \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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f4772fbfefa435ae10a53a0e8383c449c9f8f5722993157e2e9465a4550676"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): macos/Sources/OmarchyVMHelper/StartMenuWindow.swift:581-593 | macos/Sources/OmarchyVMHelper/StartMenuWindow.swift:595-607 \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":"macos/Sources/OmarchyVMHelper/StartMenuWindow.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"a435af9571f168c03d7fcf63b9db14606a9585d94ac55ff1f8c7e9adffa1d12e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): macos/Sources/OmarchyVMHelper/StartMenuWindow.swift:808-820 | macos/Sources/OmarchyVMHelper/StartMenuWindow.swift:822-834 | macos/Sources/OmarchyVMHelper/StartMenuWindow.swift:836-848 \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":"macos/Sources/OmarchyVMHelper/StartMenuWindow.swift"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39b3498170552201853c06dc1fac09abed8b7820b4667ed69c637a1dbb2a949"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): macos/Sources/OmarchyVMHelper/NativeClipboardBridge.swift:130-141 | macos/Sources/OmarchyVMHelper/NativeClipboardBridge.swift:144-153 \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":"macos/Sources/OmarchyVMHelper/NativeClipboardBridge.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddab166fbc06e44d2ea31c634567e7c1daeaee1326aa9291496808917ac1028d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): macos/Sources/OmarchyVMHelper/NativeCameraBridge.swift:76-83 | macos/Sources/OmarchyVMHelper/NativeClipboardBridge.swift:211-223 \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":"macos/Sources/OmarchyVMHelper/NativeCameraBridge.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"13af4cf5092b1f5345dab6637ef744bc74bfd3439a0669c11e02d11ca0f35729"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): macos/Sources/OmarchyVMHelper/MemoryPreferences.swift:77-84 | macos/Sources/OmarchyVMHelper/PortForwarding.swift:112-120 \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":"macos/Sources/OmarchyVMHelper/MemoryPreferences.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"61579f8393253f15b2dba6b77b83f47fb2ddbcff904e0e89cd31463fa171f44c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 5\u002B corresponding lines): macos/Sources/OmarchyVMHelper/FullscreenPreferences.swift:43-52 | macos/Sources/OmarchyVMHelper/MemoryPreferences.swift:86-93 | macos/Sources/OmarchyVMHelper/SharedFolder.swift:44-52 | macos/Sources/OmarchyVMHelper/USBPassthrough.swift:101-109 | macos/Sources/OmarchyVMHelper/VMResourcePreferences.swift:130-134 \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":"macos/Sources/OmarchyVMHelper/FullscreenPreferences.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8595bc750b199f7a5766a2fa2a18a64c2124f7bde0604cede60c159408529cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift:177-184 | macos/Sources/OmarchyVMHelper/StorageLocation.swift:363-370 \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":"macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"8497f0c83484d589e56158fccb3192cc92137ad7161d66334a2fad4887213653"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift:86-88 | macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift:249-253 \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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ae365b5ed2a5d9ec2e8755c9081dbf2ac20fbce9338c7f0e3e5cca0667cebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift:226-237 | macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.swift:527-538 | macos/Sources/OmarchyVMHelper/NativeBatteryBridge.swift:232-246 | macos/Sources/OmarchyVMHelper/NativeClipboardBridge.swift:255-267 \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":"macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb31dace21902d940b7a4ad9b831e4ad0da5967374860462ea5d898ddaf1f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): macos/Sources/OmarchyVMHelper/PortForwarding.swift:123-127 | macos/Sources/OmarchyVMHelper/StorageLocation.swift:58-64 \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":"macos/Sources/OmarchyVMHelper/PortForwarding.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a50423f0fa10183a321e5772882efa575b1caad491f5dbcaf232447a722bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): macos/Sources/OmarchyVMHelper/LauncherSettingsFile.swift:101-104 | macos/Sources/TryOmarchyKitClient/TryOmarchyKit.swift:57-60 \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":"macos/Sources/OmarchyVMHelper/LauncherSettingsFile.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b1e41cca9b78c15f884b002390b5819e1828735cb4827e83d0f2b87d1d647f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): macos/Sources/OmarchyVMHelper/VMResourceEditor.swift:39-45 | macos/Sources/OmarchyVMHelper/VMStorageEditor.swift:78-84 \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":"macos/Sources/OmarchyVMHelper/VMResourceEditor.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e378cfca37f1eeff6fee24f182a6178b85df13bbc38bd1245a3bb86c9f6e6831"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): macos/Sources/OmarchyVMHelper/HostDisplayCutouts.swift:45-47 | macos/Sources/OmarchyVMHelper/HostDisplayLayout.swift:73-75 \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":"macos/Sources/OmarchyVMHelper/HostDisplayCutouts.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba715e1aa446a1bfd452c08686324b10df7f4d5cd52b2a8e6b54c955d54610df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 5): macos/Sources/OmarchyVMHelper/main.swift:125-146 | macos/Sources/OmarchyVMHelper/main.swift:150-169 | macos/Sources/OmarchyVMHelper/main.swift:173-192 | macos/Sources/OmarchyVMHelper/main.swift:196-215 | macos/Sources/OmarchyVMHelper/main.swift:219-238 \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 \u0060macos/Sources/OmarchyVMHelper/main.swift:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/main.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f146629428ae43ad7ff67cd9378c00e13f41b9f95fd3b593df005d9de17d64aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift:204-224 | macos/Sources/OmarchyVMHelper/NativeCameraBridge.swift:91-111 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift:204\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":"macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"92356c5d4f1aa401b606c5d4044910156c6ac3213df2733fc3bc2739b72ec85e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift:89-102 | macos/Sources/OmarchyVMHelper/QMPConnection.swift:274-291 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2616a6a7e69738ee671c9ebd77ac61a02c9ccffc1e208bc325714668dba9b221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 3): macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift:89-98 | macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift:65-74 | macos/Sources/OmarchyVMHelper/QMPConnection.swift:274-287 \u2014 before extracting anything, compare \u0060macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift\u0060 and \u0060macos/Sources/OmarchyVMHelper/QMPConnection.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift:89\u0060 it does not close everything it opens, so those exact 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":"macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea8b4e5f07115ba435a15e160e0b5a30e3fd291ff7fc050c49f66dc36e34e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift:59-70 | macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift:84-95 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift:59\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/QEMUGPULauncher.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1db525c722f53046ec2840b17b3aa05b6918b7df376a0fb61d848db721a8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift:204-212 | macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.swift:505-513 | macos/Sources/OmarchyVMHelper/NativeCameraBridge.swift:91-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 all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macos/Sources/OmarchyVMHelper/NativeAudioBridge.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift:203\u0060 calls \u0060publishEffectiveRoutesAndCatalog\u0060 and \u0060macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.swift:504\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8d656ee9cad8b228367a9b3a2eb9844189fd37b78cd9c7f40e7493520f4c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift:48-57 | macos/Sources/OmarchyVMHelper/QMPConnection.swift:256-265 \u2014 before extracting anything, compare \u0060macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift\u0060 and \u0060macos/Sources/OmarchyVMHelper/QMPConnection.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d3d3fc48fc21138da10cdc070374bf9643e01111540d3c0d0df53323a9c0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): macos/Sources/OmarchyVMHelper/VMApplicationController.swift:822-830 | macos/Sources/OmarchyVMHelper/VMApplicationController.swift:886-893 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macos/Sources/OmarchyVMHelper/VMApplicationController.swift:822\u0060 it does not close everything it opens, so those exact 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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a88765746b0ba2bc2b3213d30be1d503a03e32af1b5ec8d6ea8afe1dde1f86a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift:34-39 | macos/Sources/OmarchyVMHelper/QMPConnection.swift:235-241 \u2014 before extracting anything, compare \u0060macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift\u0060 and \u0060macos/Sources/OmarchyVMHelper/QMPConnection.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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":"macos/Sources/OmarchyVMHelper/NativeBridgeSocket.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"242e1b06298e888dc670b0a446ad13fb7a5c227216f535c6911cd4aad920da4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): macos/Sources/OmarchyVMHelper/NetworkEditor.swift:86-91 | macos/Sources/OmarchyVMHelper/USBDeviceEditor.swift:67-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"macos/Sources/OmarchyVMHelper/NetworkEditor.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5573a1e8de3b27d2f26e1f80bf508cd87001d7cad506053c5ff982856c49cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): macos/Sources/OmarchyVMHelper/NativeBatteryBridge.swift:182-188 | macos/Sources/OmarchyVMHelper/NativeTimeZoneBridge.swift:75-81 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"macos/Sources/OmarchyVMHelper/NativeBatteryBridge.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a2dc45075a4947812a5ec3f515bce296d57fc6d86c93e43e7191166c0b91f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): macos/Sources/OmarchyVMHelper/SharedFolder.swift:141-149 | macos/Sources/OmarchyVMHelper/StorageLocation.swift:351-359 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"macos/Sources/OmarchyVMHelper/SharedFolder.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea2724297e122459c9509162d1a212c53b8a747b16c9e1050d255de525a7149"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: TryOmarchyKitClient: TryOmarchyKitClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a69925716a5787617e1ceaefc12a1756bba2741ea40ab85b1df4d60cc7f34114"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aCancelledDownloadNeverStartsTheVM: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Tests/OmarchyVMHelperTests/VMRunModeTests.swift"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef5931d1ae18546fbf1b6da7381ffefe235e46a944f3cff40b77671351f5bb0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: pickerMetadataChanges: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Tests/OmarchyVMHelperTests/VMWorkspaceTransferTests.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa22432c15ba00223ad9a8aba59cf71a745648161a4fc2bf98230fb89d1acaf1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/OmarchyVMHelper/main.swift: macos/Sources/OmarchyVMHelper/main.swift changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in main.swift.top-level code at line 6. 4 of those changes were fix/bug commits, and the other 38 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 16:28:45 \u002B00:00\u0027 --until=\u00272026-11-13 16:28:45 \u002B00:00\u0027 --full-history --no-merges -- macos/Sources/OmarchyVMHelper/main.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/main.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"867a9fbcd3aaa3df37d158e773f045db6795c20496c4ee6237baf07e51d11dba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/OmarchyVMHelper/VMApplicationController.swift: macos/Sources/OmarchyVMHelper/VMApplicationController.swift changed 54 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in VMApplicationController.prepareStartMenu at line 216. 7 of those changes were fix/bug commits, and the other 47 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 16:28:45 \u002B00:00\u0027 --until=\u00272026-11-13 16:28:45 \u002B00:00\u0027 --full-history --no-merges -- macos/Sources/OmarchyVMHelper/VMApplicationController.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":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f29bea87995706b326dc2acd70cff79dbbd7936f9a23a86e7e3482dd735e861"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/OmarchyVMHelper/StorageLocation.swift: macos/Sources/OmarchyVMHelper/StorageLocation.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in StorageLocationPolicy.validate at line 248. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 16:28:45 \u002B00:00\u0027 --until=\u00272026-11-13 16:28:45 \u002B00:00\u0027 --full-history --no-merges -- macos/Sources/OmarchyVMHelper/StorageLocation.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":"macos/Sources/OmarchyVMHelper/StorageLocation.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b361eef26710d27f016fe42b0b05d926a5b198c4f29ad65248ed0ee80656f2a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/release.py: scripts/release.py changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in release.verify_release_artifacts at line 106. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 16:28:45 \u002B00:00\u0027 --until=\u00272026-11-13 16:28:45 \u002B00:00\u0027 --full-history --no-merges -- scripts/release.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/release.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a83726dcf3a8ae7d0c0b28e5916d75d952cf7839f902ee0030610f0b7fdcb7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/OmarchyVMHelper/VMRunSettings.swift: macos/Sources/OmarchyVMHelper/VMRunSettings.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in VMRunLaunchSettings.make at line 29. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 16:28:45 \u002B00:00\u0027 --until=\u00272026-11-13 16:28:45 \u002B00:00\u0027 --full-history --no-merges -- macos/Sources/OmarchyVMHelper/VMRunSettings.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":"macos/Sources/OmarchyVMHelper/VMRunSettings.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e9a083d4368d03da398454b7e5b0d45aab6b1e406288076766ecbd0c1e54fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/TryOmarchyKitClient/VMRunProtocol.swift: macos/Sources/TryOmarchyKitClient/VMRunProtocol.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in VMRunEvent.decode at line 271. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 16:28:45 \u002B00:00\u0027 --until=\u00272026-11-13 16:28:45 \u002B00:00\u0027 --full-history --no-merges -- macos/Sources/TryOmarchyKitClient/VMRunProtocol.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":"macos/Sources/TryOmarchyKitClient/VMRunProtocol.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d52a8ee7f484f3098bd6f04f95053086821a7a0e27b2a618f16e23f9b09ce0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.swift: macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in NativeAuthenticationRequest.decode at line 43. 1 of those changes was a fix/bug commit, and the other 3 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 16:28:45 \u002B00:00\u0027 --until=\u00272026-11-13 16:28:45 \u002B00:00\u0027 --full-history --no-merges -- macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.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":"macos/Sources/OmarchyVMHelper/NativeAuthenticationBridge.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcb6344243b41f686c87b86c0f58791dff4d456a9778aee7b78c7577a0e0fb7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/OmarchyVMHelper/NetworkEditor.swift: macos/Sources/OmarchyVMHelper/NetworkEditor.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in NetworkEditor.update at line 100. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 16:28:45 \u002B00:00\u0027 --until=\u00272026-11-13 16:28:45 \u002B00:00\u0027 --full-history --no-merges -- macos/Sources/OmarchyVMHelper/NetworkEditor.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":"macos/Sources/OmarchyVMHelper/NetworkEditor.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84bc0adf20eddd0402ffe143648f790031c3a1fb0a73601959f967f38bbdd05"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 6 significant file(s) lose their only recent owner: macos/Sources/OmarchyVMHelper/VMStorageEditor.swift, macos/Sources/OmarchyVMHelper/VMWorkspaceTransfer.swift, macos/Sources/OmarchyVMHelper/VMHostSleepController.swift, macos/Sources/OmarchyVMHelper/NativeTimeZoneBridge.swift, macos/Sources/OmarchyVMHelper/VMTransferProgress.swift, macos/Sources/OmarchyVMHelper/StorageIO.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"13121783e8a5670aa03376d42bc08891be1bfd73c35e001c9a23e47d42b6f2c0"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 3 significant file(s) lose their only recent owner: macos/Sources/OmarchyVMHelper/FocusedCommandSuperBridge.swift, macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift, scripts/profile-process.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f8996701dbe41c2f0c162f34d429c7fda2b2438c3a0d28cb4f4fbbe6fcfc1020"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 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 (11 single-owned of 74 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; 74 of the 88 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)), anonymized user #4 (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/app_version.py, macos/Sources/OmarchyVMHelper/QMPMonitorReadiness.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060macos/Package.swift\u0060 makes this repository a deployable product (line 8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Package.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c2f439d7c55e1262bafedb9a538aa6e9466a0bf99a9a8dff10e18ad24a21eb"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060macos\u0060 (17222 LoC, 312 module-visible types across 3 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":"0f4a92b2f1a023b2a6318cb8acaa9c633a59e8ee2954ab8f7e37b4aea7a706b0"},"properties":{"commitSha":"bfa48d7154b366ae62dc56054ab4877ee1b683cc"}},{"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":"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":"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":"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":"774e84eaf65696bacc627959839c1af1927b88e5fcbe02a78f7a8b8671c240ba"},"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":"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":"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":"311f2b1dd969a2ef73985fc36dd91e65e3d6a6cb49a0706cd68e381199f12c7c"},"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":"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":"bc17439367157c6f6ff8590f4dfe29bc3a0ce4e328d99df310f8a49a2877af10"},"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":"0e8b57b9b0550de1d59b0593a8b4cc325b2a6b9f9e286ccd6346ea3b16f21524"},"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":"363d13af2b83c585602215c1a2607e7320a016bba81f0d99f1e1da0aefb59681"},"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":"67d0df9478d5fe640b0e2295bc180c86cedb56c8c60fbc72829d4902d3357d06"},"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":"a3e9153ead7c703f3fb2c37afb8b826f51b7692ff56ab91d42b242c5662eeb82"},"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":"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":"f8529456b6e49f6a4b4b9271fcbf464e05751a7ff9bdf7478ebcfd228c1e529f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"979089af694370dbed114a3e2d3ad4ef75b034504d64476eb8dfd2bb7148e5bc"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"067c3b958de1da2ffaefd768efe4a5c130251a9ad17bd02f11bcd3db0d2a6cab"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f49e37898908b528321b5aacd8f4a950f78c0c5df8a4ac87518c8d43939d6509"}},{"ruleId":"D31","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":"06f0e56d93f540371771168f699409db1994923f0003a447d88e46d099ebf1ef"},"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":"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":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: VMApplicationController.resolveStorageLocationAvailability: \u0060VMApplicationController.resolveStorageLocationAvailability\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/client). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"e857e452929011be8000903b466caedfa177e5151294f8c4f7965fd206aafc92"}},{"ruleId":"ED1","level":"error","message":{"text":"Blocking wait inside a handler: NativeAudioBridge.handle: \u0060NativeAudioBridge.handle\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":"macos/Sources/OmarchyVMHelper/NativeAudioBridge.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fccb480fc5b49991171f0ab2ac93e3394a0588d9377f546b46e1139d4263174"}},{"ruleId":"ED1","level":"error","message":{"text":"Blocking wait inside a handler: NativeClipboardBridge.handle: \u0060NativeClipboardBridge.handle\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":"macos/Sources/OmarchyVMHelper/NativeClipboardBridge.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8ec909aacddfccfc00be1499ad983ffe8ec2a2d686e769087adaccabcade6c"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): VMApplicationController.prepareStartMenu: \u0060VMApplicationController.prepareStartMenu\u0060 performs two independent DURABLE writes \u2014 \u0060usbDeviceStore\u0060 (a persistence store) via \u0060save\u0060 and \u0060resourcePreferenceStore\u0060 (a persistence store) via \u0060save\u0060 \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ec35a7187853da658af184eaace4c5314c6a3d5d75c209fdf8e0c3962c229b"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): VMApplicationController.resetSettings: \u0060VMApplicationController.resetSettings\u0060 performs two independent DURABLE writes \u2014 \u0060preferenceStore\u0060 (a persistence store) via \u0060save\u0060 and \u0060sharedFolderStore\u0060 (a persistence store) via \u0060save\u0060 \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/OmarchyVMHelper/VMApplicationController.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfff10cc3a1d6d6b02ace50c85e903601e9cb46828f0d23f27e665183b48ed2"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add 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 2 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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060top-level code\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":"macos/Sources/OmarchyVMHelper/main.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5e8fcc642cec283e862e201e5f5b4ccc0a44055c0fb53b8c17f3334161fa58"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060($0 \u003E= 48 \u0026\u0026 $0 \u003C= 57) || ($0 \u003E= 97 \u0026\u0026 $0 \u003C= 102)\u0060 appears character-identically in 2 files \u2014 macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift, macos/Sources/OmarchyVMHelper/QEMUGPULauncher.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":"macos/Sources/OmarchyVMHelper/FactoryImageDownload.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa431f46f6aedcdacd4a2017ddb297d036fa8162c0347fcc0632fd68f2c1262"}},{"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":"macos/Sources/OmarchyVMHelper/AccessibilityPermissionRepair.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"12028cf6926f92d41e914fc52a1b3283c3a771f57906fd757a2448985caca572"}},{"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":"macos/Sources/OmarchyVMHelper/Networking.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"763d18f5ea746d8ccac3d8cccffd650bfc6bc70f5fb643faacb43a86c4222e4b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060report\u0060 returns \u0060[]\u0060 when \u0060(OSError, ValueError, KeyError, TypeError)\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/factory-freshness.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f592493acf8af86cc3a49040cad6134972d6d4e4bd643be0aa4e5d01d4bc6e2"}}],"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-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-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-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-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-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":26,"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."]}]}